Skip to content

Commit 4e7a3d4

Browse files
committed
Fix: Return copy or normal
1 parent ee790a3 commit 4e7a3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/math/Plane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public float distanceToPoint(Vector3f point) {
7575
* @return the normal vector of the plane.
7676
*/
7777
public Vector3f getNormal() {
78-
return normal;
78+
return new Vector3f(normal);
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)