Skip to content

Commit 25207c1

Browse files
committed
Fix: getDirectionInv needed to return copy as well.
1 parent 916738f commit 25207c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/math/Ray3f.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public Vector3f getDirection() {
7474
* @return The reciprocal of the direction vector of the ray.
7575
*/
7676
public Vector3f getDirectionInv() {
77-
return directionInv;
77+
return new Vector3f(directionInv);
7878
}
7979

8080
/**

0 commit comments

Comments
 (0)