Skip to content

Commit 08cfc54

Browse files
committed
Add Left/RightHandedBackwardReadOnly vectors
1 parent dd95fbc commit 08cfc54

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/dev/core/src/Maths/math.vector.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,8 @@ export class Vector3 {
887887
private static _DownReadOnly = Vector3.Down() as DeepImmutable<Vector3>;
888888
private static _LeftHandedForwardReadOnly = Vector3.Forward(false) as DeepImmutable<Vector3>;
889889
private static _RightHandedForwardReadOnly = Vector3.Forward(true) as DeepImmutable<Vector3>;
890+
private static _LeftHandedBackwardReadOnly = Vector3.Backward(false) as DeepImmutable<Vector3>;
891+
private static _RightHandedBackwardReadOnly = Vector3.Backward(true) as DeepImmutable<Vector3>;
890892
private static _RightReadOnly = Vector3.Right() as DeepImmutable<Vector3>;
891893
private static _LeftReadOnly = Vector3.Left() as DeepImmutable<Vector3>;
892894
private static _ZeroReadOnly = Vector3.Zero() as DeepImmutable<Vector3>;
@@ -2060,6 +2062,20 @@ export class Vector3 {
20602062
return Vector3._RightHandedForwardReadOnly;
20612063
}
20622064

2065+
/**
2066+
* Gets a backward Vector3 that must not be updated
2067+
*/
2068+
public static get LeftHandedBackwardReadOnly(): DeepImmutable<Vector3> {
2069+
return Vector3._LeftHandedBackwardReadOnly;
2070+
}
2071+
2072+
/**
2073+
* Gets a backward Vector3 that must not be updated
2074+
*/
2075+
public static get RightHandedBackwardReadOnly(): DeepImmutable<Vector3> {
2076+
return Vector3._RightHandedBackwardReadOnly;
2077+
}
2078+
20632079
/**
20642080
* Gets a zero Vector3 that must not be updated
20652081
*/

0 commit comments

Comments
 (0)