Method | Description | |
---|---|---|
AddXYZ ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ |
Add of two points(or vectors), get a new point(vector)
|
|
CrossMatrix ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ |
multiplication cross of two Autodesk.Revit.DB.XYZ as Matrix
|
|
GetHookOrient ( Autodesk curveVec, Autodesk normal, Autodesk hookVec ) : RebarHookOrientation |
get the orient of hook accroding to curve direction, rebar normal and hook direction
|
|
GetLength ( Autodesk vector ) : double |
calculate the distance from grid origin to the XYZ(vector length)
|
|
IsEqual ( Autodesk first, Autodesk second ) : bool |
Judge whether the two Autodesk.Revit.DB.XYZ point are equal
|
|
IsEqual ( double d1, double d2 ) : bool |
Judge whether the two double data are equal
|
|
IsInRightDir ( Autodesk normal ) : bool |
Judge the vector is in right or left direction
|
|
IsOppositeDirection ( Autodesk firstVec, Autodesk secondVec ) : bool |
Judge whether the two vectors have the opposite direction
|
|
IsSameDirection ( Autodesk firstVec, Autodesk secondVec ) : bool |
judge whether the two vectors have the same direction
|
|
IsVertical ( Face face, System.Line line, Transform faceTrans, Transform lineTrans ) : bool |
Judge whether the line is perpendicular to the face
|
|
MultiplyVector ( Autodesk vector, double rate ) : Autodesk.Revit.DB.XYZ |
Multiply a verctor with a number
|
|
OffsetPoint ( Autodesk point, Autodesk direction, double offset ) : Autodesk.Revit.DB.XYZ |
Move a point a give offset along a given direction
|
|
SubXYZ ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ |
Subtraction of two points(or vectors), get a new vector
|
|
TransformPoint ( Autodesk point, Transform transform ) : Autodesk.Revit.DB.XYZ |
Transform old coordinate system in the new coordinate system
|
|
UnitVector ( Autodesk vector ) : Autodesk.Revit.DB.XYZ |
Set the vector into unit length
|
Method | Description | |
---|---|---|
DotMatrix ( Autodesk p1, Autodesk p2 ) : double |
dot product of two Autodesk.Revit.DB.XYZ as Matrix
|
public static AddXYZ ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ | ||
p1 | Autodesk | the first point(vector) |
p2 | Autodesk | the first point(vector) |
return | Autodesk.Revit.DB.XYZ |
public static CrossMatrix ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ | ||
p1 | Autodesk | The first XYZ |
p2 | Autodesk | The second XYZ |
return | Autodesk.Revit.DB.XYZ |
public static GetHookOrient ( Autodesk curveVec, Autodesk normal, Autodesk hookVec ) : RebarHookOrientation | ||
curveVec | Autodesk | the curve direction |
normal | Autodesk | rebar normal direction |
hookVec | Autodesk | the hook direction |
return | RebarHookOrientation |
public static GetLength ( Autodesk vector ) : double | ||
vector | Autodesk | the input vector |
return | double |
public static IsEqual ( Autodesk first, Autodesk second ) : bool | ||
first | Autodesk | The first Autodesk.Revit.DB.XYZ point |
second | Autodesk | The second Autodesk.Revit.DB.XYZ point |
return | bool |
public static IsEqual ( double d1, double d2 ) : bool | ||
d1 | double | The first double data |
d2 | double | The second double data |
return | bool |
public static IsInRightDir ( Autodesk normal ) : bool | ||
normal | Autodesk | The unit vector need to be judged its direction |
return | bool |
public static IsOppositeDirection ( Autodesk firstVec, Autodesk secondVec ) : bool | ||
firstVec | Autodesk | the first vector |
secondVec | Autodesk | the second vector |
return | bool |
public static IsSameDirection ( Autodesk firstVec, Autodesk secondVec ) : bool | ||
firstVec | Autodesk | the first vector |
secondVec | Autodesk | the second vector |
return | bool |
public static IsVertical ( Face face, System.Line line, Transform faceTrans, Transform lineTrans ) : bool | ||
face | Face | |
line | System.Line | |
faceTrans | Transform | the transform for the face |
lineTrans | Transform | the transform for the line |
return | bool |
public static MultiplyVector ( Autodesk vector, double rate ) : Autodesk.Revit.DB.XYZ | ||
vector | Autodesk | a vector |
rate | double | the rate number |
return | Autodesk.Revit.DB.XYZ |
public static OffsetPoint ( Autodesk point, Autodesk direction, double offset ) : Autodesk.Revit.DB.XYZ | ||
point | Autodesk | the point need to move |
direction | Autodesk | the direction the point move to |
offset | double | indicate how long to move |
return | Autodesk.Revit.DB.XYZ |
public static SubXYZ ( Autodesk p1, Autodesk p2 ) : Autodesk.Revit.DB.XYZ | ||
p1 | Autodesk | the first point(vector) |
p2 | Autodesk | the second point(vector) |
return | Autodesk.Revit.DB.XYZ |
public static TransformPoint ( Autodesk point, Transform transform ) : Autodesk.Revit.DB.XYZ | ||
point | Autodesk | the Autodesk.Revit.DB.XYZ which need to be transformed |
transform | Transform | the value of the coordinate system to be transformed |
return | Autodesk.Revit.DB.XYZ |
public static UnitVector ( Autodesk vector ) : Autodesk.Revit.DB.XYZ | ||
vector | Autodesk | the input vector |
return | Autodesk.Revit.DB.XYZ |