Line3D Type
An immutable finite line in 3D. Represented by a 3D start and 3D end point.
Record fields
Record Field |
Description
|
Full Usage:
FromX
Field type: float
|
Returns the X coordinate of the start point of the line.
|
Full Usage:
FromY
Field type: float
|
Returns the Y coordinate of the start point of the line.
|
Full Usage:
FromZ
Field type: float
|
Returns the Z coordinate of the start point of the line.
|
Full Usage:
ToX
Field type: float
|
Returns the X coordinate of the end point of the line.
|
Full Usage:
ToY
Field type: float
|
Returns the Y coordinate of the end point of the line.
|
Full Usage:
ToZ
Field type: float
|
Returns the Z coordinate of the end point of the line.
|
Constructors
Constructor |
Description
|
Full Usage:
Line3D(fromX, fromY, fromZ, toX, toY, toZ)
Parameters:
float
fromY : float
fromZ : float
toX : float
toY : float
toZ : float
Returns: Line3D
|
Create Line3D from 3D start point's x, y and z and 3D end point's x, y and z.
|
|
Instance members
Instance member |
Description
|
Full Usage:
this.AsString
Returns: string
|
Format 3D line into string from X, Y and Z for start and end points. Using nice floating point number formatting . But without full type name as in v.ToString()
|
|
Same as ln.Vector or ln.Tangent. The returned vector has the same length as the Line3D.
|
The Start point of the 3D Line3D,
|
|
Full Usage:
this.Length
Returns: float
Modifiers: inline |
Returns the length of the line.
|
Full Usage:
this.LengthSq
Returns: float
Modifiers: inline |
Returns the square length of the line.
|
|
Multiplies (or applies) a Quaternion to a 3D line . The resulting line has the same length as the input.
|
Full Usage:
this.RotateWithCenter
Parameters:
Pnt
q : Quaternion
Returns: Line3D
Modifiers: inline |
Multiplies (or applies) a Quaternion to a 3D line around a given center point. The resulting line has the same length as the input.
|
|
Same as ln.Vector or ln.Direction. The returned vector has the same length as the Line3D.
|
The End point of the 3D Line3D,
|
|
|
Returns a unit-vector of the line Direction.
|
|
Same as ln.Tangent or ln.Direction. The returned vector has the same length as the Line3D.
|
Static members
Static member |
Description
|
|
Rotate by Quaternion around Origin. Multiplies (or applies) a Quaternion to a 3D line.
|