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

provide some common geometry judgement and calculate method
ファイルを表示 Open project: AMEE/revit Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return bool

IsVertical() public static method

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