Esempio n. 1
0
 public bool Intersection(Line2 value, out Vector2 result)
 {
     return(Intersection(ref this, ref value, out result));
 }
Esempio n. 2
0
 public static bool Intersection(Line2 value1, Line2 value2, out Vector2 result)
 {
     return(Intersection(ref value1, ref value2, out result));
 }
Esempio n. 3
0
        public static Line2 Translate(Line2 value, float offset)
        {
            Vector2 normal = value.Normal();

            return(new Line2(value.P1 + normal * offset, value.P2 + normal * offset));
        }