|
|

In addition to the tangent vector, a planar curve has two important properties at every point of the curve: curvature and a normal vector. The normal vector is defined as the counterclockwise rotation of the tangent vector. The interface defined by this abstract base class gives access to these parameters.
Public Member Functions | |
| Vector2 | GetNormal (real time) const |
| Returns the normalized normal vector at the given time. | |
| real | GetCurvature (real time) const |
| Returns the curvature of the curve at the given time. | |
| Matrix3x3 | GetFrame (real time) const |
| Returns the curve's coordinate frame (as 3x3 TNP row-major matrix) at the given time. | |
| void | GetFrame (real time, Vector2 &position, Vector2 &tangent, Vector2 &normal) const |
| Returns the curve's coordinate frame at the given time in the given vectors. | |
|
|
Returns the curvature of the curve at the given time. If the curvature is indeterminate (which happens when the speed of the curve at the given time is 0) std::numeric_limits<real>::quiet_NaN() is returned. |
|
||||||||||||||||||||
|
Returns the curve's coordinate frame at the given time in the given vectors. The normal vector is computed as the counterclockwise rotation of the tangent vector. |
|
|
Returns the curve's coordinate frame at the given time. The returned matrix is a row-major TNP matrix that contains the tangent vector in the first row, the normal vector in the second row, and the position in the third row. The normal vector is computed as the counterclockwise rotation of the tangent vector. |
|
|
Returns the normalized normal vector at the given time. The normal vector is computed as the counterclockwise rotation of the tangent vector. |
|
Copyright © by Martin Ecker |