Exemplo n.º 1
0
 /// <summary>
 /// Finds if the vectors are parallel
 /// </summary>
 /// <param name="vec1">Vector 1</param>
 /// <param name="vec2">Vector 2</param>
 /// <returns>True if the vectors are parallel</returns>
 public static bool IsParallel(MathVector vec1, MathVector vec2)
 {
     return vec1.Cross(vec2).GetLength() < errorVal;
 }