feat: transform up, down, left & right properties added
This commit is contained in:
@@ -19,6 +19,11 @@ public class Transform2D : Behaviour, ITransform2D
|
||||
|
||||
private ITransform2D? parentTransform = null;
|
||||
|
||||
public Vector2D Up => Vector2D.Up.Rotate(Rotation * Math.DegreeToRadian);
|
||||
public Vector2D Down => Vector2D.Down.Rotate(Rotation * Math.DegreeToRadian);
|
||||
public Vector2D Left => Vector2D.Left.Rotate(Rotation * Math.DegreeToRadian);
|
||||
public Vector2D Right => Vector2D.Right.Rotate(Rotation * Math.DegreeToRadian);
|
||||
|
||||
public Vector2D Position
|
||||
{
|
||||
get => _position;
|
||||
|
Reference in New Issue
Block a user