Ejemplo n.º 1
0
 public static bool IsOppositeDirection(this Autodesk.Revit.DB.XYZ firstVector, Autodesk.Revit.DB.XYZ secondVector)
 {
     return((firstVector.GetNormalizeDotMatrix(secondVector)).IsEqual(-1));
 }
Ejemplo n.º 2
0
 public static bool IsPerpendicularDirection(this Autodesk.Revit.DB.XYZ firstVector, Autodesk.Revit.DB.XYZ secondVector)
 {
     return((firstVector.GetNormalizeDotMatrix(secondVector)).IsEqual(0));
 }
Ejemplo n.º 3
0
 public static bool IsParallelDirection(this Autodesk.Revit.DB.XYZ firstVector, Autodesk.Revit.DB.XYZ secondVector)
 {
     return(Math.Abs(firstVector.GetNormalizeDotMatrix(secondVector)).IsEqual(1));
 }