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.AsFSharpCode
Returns: string
|
Format 3D line into an F# code string that can be used to recreate the line.
|
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 ln.ToString()
|
|
Same as ln.Vector or ln.Tangent. The returned vector has the same length as the Line3D.
|
The start point of the 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 squared length of the line.
|
|
Same as ln.Vector or ln.Direction. The returned vector has the same length as the Line3D.
|
The end point of the 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.
|
Full Usage:
this.VectorX
Returns: float
Modifiers: inline |
The X component of the line Direction/Vector.
|
Full Usage:
this.VectorY
Returns: float
Modifiers: inline |
The Y component of the line Direction/Vector.
|
Full Usage:
this.VectorZ
Returns: float
Modifiers: inline |
The Z component of the line Direction/Vector.
|
Euclid