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