Straight
Current Version
1
Subtype of
GeomCurve
Fields
Entity/Object
Variable
Description
integer
Version.
integer
d
Space dimension.
double[d]
root
The point on the line which corresponds to the parameter value 0.
double[d]
dir
The direction in vector of the line.
double
pscale
Parameter scale.
Description
This curve defines an infinite straight line in the two-dimensional or three-dimensional space. It is represented by a point and a unit vector specifying the direction. A straight also has a scale factor for the parameterization, so that the parameter values can be made invariant under transformation.
A straight line is an open curve that is not periodic. It is parameterized as:
pos = root + u*pscale*dir
where
u
is the parameter.