Exemplo n.º 1
0
 public static IVector2 Create(float x, float y)
 {
     return(IVector2.Create(IFloat.Create(x), IFloat.Create(y)));
 }
Exemplo n.º 2
0
 public static IVector2 operator -(IVector2 one, IVector2 other)
 {
     return(IVector2.Create(one.x - other.x, one.y - other.y));
 }
Exemplo n.º 3
0
    public IVector2 Normalize()
    {
        IFloat length = Magnitude();

        return(IVector2.Create(x / length, y / length));
    }