Пример #1
0
 /// <summary>
 /// Returns true if vectors lie on the same line, false otherwise
 /// </summary>
 public static bool IsCollinear(this Vector2 vector, Vector2 other)
 {
     return(Mathf.Abs(PTUtils.PerpDot(vector, other)) < epsilon);
 }