IKO_Geom2d_Line Interface
Describes an infinite line in the plane (2D space).
A line is defined and positioned in the plane with an
axis (gp_Ax2d object) which gives it an origin and a unit vector.
The Geom2d_Line line is parameterized as follows:
P (U) = O + U*Dir
where:
- P is the point of parameter U,
- O is the origin and Dir the unit vector of its positioning axis.
The parameter range is ] -infinite, +infinite [.
The orientation of the line is given by the unit vector
of its positioning axis.
See Also
GCE2d_MakeLine which provides functions for more
complex line constructions
gp_Ax2d
gp_Lin2d for an equivalent, non-parameterized data structure.
Query IKO_Standard_Object from this interface to create a copy or obtain the type name
Methods
- Init
- Init1
- Init2
- SetLin2d
- SetDirection
- Direction
- SetLocation
- Location
- SetPosition
- Position
- Lin2d
- Reverse
- ReversedParameter
- FirstParameter
- LastParameter
- IsClosed
- IsPeriodic
- Continuity
- Distance
- IsCN
- D0
- D1
- D2
- D3
- DN
- Transform
- TransformedParameter
- ParametricTransformation
- Copy
HRESULT Init(IKO_gp_Ax2d* A)
HRESULT Init1(IKO_gp_Lin2d* L)
HRESULT Init2(KC2D* P, KC2D* V)
HRESULT SetLin2d(IKO_gp_Lin2d* L)
HRESULT SetDirection(KC2D* V)
HRESULT Direction(KC2D* ret)
HRESULT SetLocation(KC2D* P)
HRESULT Location(KC2D* ret)
HRESULT SetPosition(IKO_gp_Ax2d* A)
HRESULT Position(IKO_gp_Ax2d** ret)
HRESULT Lin2d(IKO_gp_Lin2d** ret)
HRESULT Reverse()
HRESULT ReversedParameter(double U, double* ret)
HRESULT FirstParameter(double* ret)
HRESULT LastParameter(double* ret)
HRESULT IsClosed(VARIANT_BOOL* ret)
HRESULT IsPeriodic(VARIANT_BOOL* ret)
HRESULT Continuity(GeomAbs_ShapeKO* ret)
HRESULT Distance(KC2D* P, double* ret)
HRESULT IsCN(int N, VARIANT_BOOL* ret)
HRESULT D0(double U, KC2D* P)
HRESULT D1(double U, KC2D* P, KC2D* V1)
HRESULT D2(double U, KC2D* P, KC2D* V1, KC2D* V2)
HRESULT D3(double U, KC2D* P, KC2D* V1, KC2D* V2, KC2D* V3)
HRESULT DN(double U, int N, KC2D* ret)
HRESULT Transform(IKO_gp_Trsf2d* T)
HRESULT TransformedParameter(double U, IKO_gp_Trsf2d* T, double* ret)
HRESULT ParametricTransformation(IKO_gp_Trsf2d* T, double* ret)
HRESULT Copy(IKO_Geom2d_Geometry** ret)
|