add some missing direction/axis constants
This commit is contained in:
parent
060b1c7ab2
commit
1ceecdc6b5
|
@ -10,6 +10,12 @@ namespace Blarg.GameFramework
|
|||
public int Y;
|
||||
|
||||
public static readonly Point2 Zero = new Point2(0, 0);
|
||||
public static readonly Point2 XAxis = new Point2(1, 0);
|
||||
public static readonly Point2 YAxis = new Point2(0, 1);
|
||||
public static readonly Point2 Up = new Point2(0, 1);
|
||||
public static readonly Point2 Down = new Point2(0, -1);
|
||||
public static readonly Point2 Left = new Point2(-1, 0);
|
||||
public static readonly Point2 Right = new Point2(1, 0);
|
||||
|
||||
public Point2(int x, int y)
|
||||
{
|
||||
|
|
|
@ -11,6 +11,15 @@ namespace Blarg.GameFramework
|
|||
public int Z;
|
||||
|
||||
public static readonly Point3 Zero = new Point3(0, 0, 0);
|
||||
public static readonly Point3 XAxis = new Point3(1, 0, 0);
|
||||
public static readonly Point3 YAxis = new Point3(0, 1, 0);
|
||||
public static readonly Point3 ZAxis = new Point3(0, 0, 1);
|
||||
public static readonly Point3 Up = new Point3(0, 1, 0);
|
||||
public static readonly Point3 Down = new Point3(0, -1, 0);
|
||||
public static readonly Point3 Forward = new Point3(0, 0, -1);
|
||||
public static readonly Point3 Backward = new Point3(0, 0, 1);
|
||||
public static readonly Point3 Left = new Point3(-1, 0, 0);
|
||||
public static readonly Point3 Right = new Point3(1, 0, 0);
|
||||
|
||||
public Point3(int x, int y, int z)
|
||||
{
|
||||
|
|
|
@ -12,6 +12,10 @@ namespace Blarg.GameFramework
|
|||
public static readonly Vector2 Zero = new Vector2(0.0f, 0.0f);
|
||||
public static readonly Vector2 XAxis = new Vector2(1.0f, 0.0f);
|
||||
public static readonly Vector2 YAxis = new Vector2(0.0f, 1.0f);
|
||||
public static readonly Vector2 Up = new Vector2(0.0f, 1.0f);
|
||||
public static readonly Vector2 Down = new Vector2(0.0f, -1.0f);
|
||||
public static readonly Vector2 Left = new Vector2(-1.0f, 0.0f);
|
||||
public static readonly Vector2 Right = new Vector2(1.0f, 0.0f);
|
||||
|
||||
public float Length
|
||||
{
|
||||
|
|
Reference in a new issue