C# Class Revit.SDK.Samples.AreaReinCurve.CS.GeomUtil

provide some common geometry judgement and calculate method
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
IsRectangular ( CurveArray curves ) : bool

judge whether given 4 lines can form a rectangular

judge whether given 4 lines can form a rectangular

IsVertical ( Line line1, Line line2 ) : bool

judge whether two lines are vertical

Private Methods

Méthode Description
DotMatrix ( Autodesk p1, Autodesk p2 ) : double

dot product of two Autodesk.Revit.DB.XYZ as Matrix

IsEqual ( double d1, double d2 ) : bool

judge whether the subtraction of two doubles is less than the internal decided precision

SubXYZ ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ

subtraction of two Autodesk.Revit.DB.XYZ as Matrix

Method Details

IsRectangular() public static méthode

judge whether given 4 lines can form a rectangular judge whether given 4 lines can form a rectangular
public static IsRectangular ( CurveArray curves ) : bool
curves CurveArray
Résultat bool

IsVertical() public static méthode

judge whether two lines are vertical
public static IsVertical ( Line line1, Line line2 ) : bool
line1 Line
line2 Line
Résultat bool