Vectorized Linear Spline
Vectorized Curve class useful to describe any kind of vectorized curves
VectorizedLinearSpline
Bases: LinearSpline
, DirectedLinearEntity
VectorizedLinearSpline class:
- it IS a linear spline
- it HAS a vector since a vector IS a segment and however the curve CANNOT be a segment. The vector is thus an attribute in this class. The vector does inherit from Vector class.
Source code in otary/geometry/discrete/linear/directed/vectorized_linear_spline.py
cardinal_degree
property
Returns the cardinal degree of the VectorizedLinearSpline in the cv2 space. It is calculated using the two extremities points that compose the object.
We consider the top of the image to point toward the north as default and thus represent the cardinal degree value 0 mod 360.
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
cardinal degree |
is_simple_vector
property
Whether the VectorizedLinearSpline is just a two points vector or not
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True or false |