Exemplo n.º 1
0
        public float GetLength()
        {
            Vector2F result;

            Vector2F.Subtract(ref Point2, ref Point1, out result);
            return(result.Length());
        }
Exemplo n.º 2
0
        public Vector2F GetDirection()
        {
            Vector2F result;

            Vector2F.Subtract(ref Point2, ref Point1, out result);
            result.Normalize();
            return(result);
        }
Exemplo n.º 3
0
 public void GetDirection(out Vector2F result)
 {
     Vector2F.Subtract(ref Point2, ref Point1, out result);
     result.Normalize();
 }