#include <HermiteCubic.h>
Inheritance diagram for NSMath::NSCurves::THermiteCubic:
Public Member Functions | |
THermiteCubic (const THermiteCubic &orig) | |
Copy constructor. | |
THermiteCubic (const TVector3 &start, const TVector3 &p1, const TVector3 &p2, const TVector3 &end) | |
Creates cubic from FOUR POINTS!!! | |
THermiteCubic (const TVector3 &start, const TVector3 &startTangent, const TVector3 &endTangent, const TVector3 &end, bool) | |
Creates cubic from two end-points and from their tangent vectors. | |
~THermiteCubic (void) | |
Destructor. | |
TVector3 & | GetStart (void) |
Return start point. | |
const TVector3 & | GetStart (void) const |
Return start point. | |
TVector3 & | GetEnd (void) |
Return end point. | |
const TVector3 & | GetEnd (void) const |
Return end point. | |
TVector3 & | GetStartTangent (void) |
Return tangent vector of start point. | |
const TVector3 & | GetStartTangent (void) const |
Return tangent vector of start point. | |
TVector3 & | GetEndTangent (void) |
Return tangent vector of end point. | |
const TVector3 & | GetEndTangent (void) const |
Return tangent vector of end point. | |
TVector3 & | GetVector (const DWORD &index) |
Return specified item from this cubic. | |
const TVector3 & | GetVector (const DWORD &index) const |
Return specified item from this cubic. | |
void | Set (const THermiteCubic &cub) |
Copy another cubic to this one. | |
void | SetPoints (const TVector3 &start, const TVector3 &p1, const TVector3 &p2, const TVector3 &end) |
Sets cubic from FOUR POINTS!!! | |
void | SetPointsTangents (const TVector3 &start, const TVector3 &startTangent, const TVector3 &endTangent, const TVector3 &end) |
Sets cubic from two end-points and from their tangent vectors. | |
void | Move (const TVector3 &vec) |
Move this cubic about specified vector. | |
void | Add (const TVector3 &vec) |
Add specified vector to this cubic (this move with cubic). | |
void | Sub (const TVector3 &vec) |
Substract specified vector from this cubic (this move with cubic). | |
THermiteCubic | Plus (const TVector3 &vec) |
Add vector to this cubic and return new one. | |
void | Plus (const TVector3 &vec, THermiteCubic &res) |
Add vector to this cubic and result store in second parameter. | |
THermiteCubic | Minus (const TVector3 &vec) |
Substract vector from this cubic and return new one. | |
void | Minus (const TVector3 &vec, THermiteCubic &res) |
Substract vector from this cubic and result store in second parameter. | |
BOOL | Compare (const THermiteCubic &cub) const |
Compare this cubic with another one with default tolerance TVector3::DELTA_COMPARE. | |
BOOL | Compare (const THermiteCubic &cub, const float &delta) const |
Compare this cubic with another one with given tolerance. | |
BOOL | ComparePrecise (const THermiteCubic &cub) const |
This method compare two Hermite cubics very precisly (bit comparing). | |
TVector3 | GetValue (const float &t) const |
This method returns value at sepcified point of cubic. | |
void | GetValue (const float &t, TVector3 &res) const |
This method store value at specified point of cubic into second parameter. | |
TVector3 | GetFirstDerivateValue (const float &t) const |
This method return first derivation of Hermite cubic at specified point. | |
void | GetFirstDerivateValue (const float &t, TVector3 &res) const |
This method store first derivation of Hermite cubic at specified point into second parameter. | |
TVector3 | GetSecondDerivateValue (const float &t) const |
This method return second derivation of Hermite cubic at specified point. | |
void | GetSecondDerivateValue (const float &t, TVector3 &res) const |
This method store second derivation of Hermite cubic at specified point into second parameter. | |
THermiteCubic & | operator= (const THermiteCubic &orig) |
Assignment operator. | |
BOOL | operator== (const THermiteCubic &cub) const |
Compare two cubics with default tolerance TVector3::DELTA_COMPARE. | |
TVector3 & | operator[] (const DWORD &index) |
Return specified item from this cubic. | |
const TVector3 & | operator[] (const DWORD &index) const |
Return specified item from this cubic. | |
THermiteCubic & | operator+= (const TVector3 &vec) |
Add vector to this cubic (this move this cubic). | |
THermiteCubic & | operator-= (const TVector3 &vec) |
Substract vector from this cubic (this move this cubic). | |
THermiteCubic | operator+ (const TVector3 &vec) |
Add vector to this cubic and return new (moved) cubic. | |
THermiteCubic | operator- (const TVector3 &vec) |
Substract vector from this cubic and return new (moved) cubic. |
Represents Hermite cubic. It's composed from four points - [START, P1, P2, END]. It starts in point START and continue in direction of vector [P1 - START]. From second end cubic starts in point END and continue in direction of vector [P2 - END].
There exists two types of constructor - one constructs cubic from four points and second from two points and two tangents!!!
Definition at line 41 of file HermiteCubic.h.
|
Copy constructor.
Definition at line 134 of file HermiteCubic.h. |
|
Creates cubic from FOUR POINTS!!!
Definition at line 149 of file HermiteCubic.h. |
|
Creates cubic from two end-points and from their tangent vectors.
Definition at line 164 of file HermiteCubic.h. |
|
Destructor.
Definition at line 174 of file HermiteCubic.h. |
|
Add specified vector to this cubic (this move with cubic).
Definition at line 318 of file HermiteCubic.h. Referenced by operator+=(). |
|
Compare this cubic with another one with given tolerance.
Definition at line 398 of file HermiteCubic.h. References NSMath::TVector3::Compare(), m_end, m_endTangent, m_start, and m_startTangent. Here is the call graph for this function: ![]() |
|
Compare this cubic with another one with default tolerance TVector3::DELTA_COMPARE.
Definition at line 384 of file HermiteCubic.h. References m_end, m_endTangent, m_start, and m_startTangent. Referenced by operator==(). |
|
This method compare two Hermite cubics very precisly (bit comparing).
Definition at line 411 of file HermiteCubic.h. References NSMath::TVector3::ComparePrecise(), m_end, m_endTangent, m_start, and m_startTangent. Here is the call graph for this function: ![]() |
|
Return end point.
Definition at line 203 of file HermiteCubic.h. |
|
Return end point.
Definition at line 196 of file HermiteCubic.h. |
|
Return tangent vector of end point.
Definition at line 231 of file HermiteCubic.h. |
|
Return tangent vector of end point.
Definition at line 224 of file HermiteCubic.h. |
|
This method store first derivation of Hermite cubic at specified point into second parameter.
Definition at line 87 of file HermiteCubic.cpp. References DBGASSERT, NSMath::NSStdMath::fabs(), and NSMath::TVector3::Set(). Here is the call graph for this function: ![]() |
|
This method return first derivation of Hermite cubic at specified point.
Definition at line 66 of file HermiteCubic.cpp. References DBGASSERT, and NSMath::NSStdMath::fabs(). Here is the call graph for this function: ![]() |
|
This method store second derivation of Hermite cubic at specified point into second parameter.
Definition at line 126 of file HermiteCubic.cpp. References DBGASSERT, NSMath::NSStdMath::fabs(), and NSMath::TVector3::Set(). Here is the call graph for this function: ![]() |
|
This method return second derivation of Hermite cubic at specified point.
Definition at line 107 of file HermiteCubic.cpp. References DBGASSERT, and NSMath::NSStdMath::fabs(). Here is the call graph for this function: ![]() |
|
Return start point.
Definition at line 189 of file HermiteCubic.h. |
|
Return start point.
Definition at line 182 of file HermiteCubic.h. |
|
Return tangent vector of start point.
Definition at line 217 of file HermiteCubic.h. |
|
Return tangent vector of start point.
Definition at line 210 of file HermiteCubic.h. |
|
This method store value at specified point of cubic into second parameter. Point is determined with interval t = <0,1>.
Definition at line 44 of file HermiteCubic.cpp. References DBGASSERT, NSMath::NSStdMath::fabs(), and NSMath::TVector3::Set(). Here is the call graph for this function: ![]() |
|
This method returns value at sepcified point of cubic. Point is determined with interval t = <0,1>.
Definition at line 20 of file HermiteCubic.cpp. References DBGASSERT, and NSMath::NSStdMath::fabs(). Here is the call graph for this function: ![]() |
|
Return specified item from this cubic. Index must be in range 0..3. Returned items are START, START_TANGENT, END_TANGENT, END.
Definition at line 253 of file HermiteCubic.h. References DBGASSERT. |
|
Return specified item from this cubic. Index must be in range 0..3. Returned items are START, START_TANGENT, END_TANGENT, END.
Definition at line 241 of file HermiteCubic.h. References DBGASSERT. Referenced by operator[](). |
|
Substract vector from this cubic and result store in second parameter.
Definition at line 371 of file HermiteCubic.h. References m_end, m_endTangent, m_start, and m_startTangent. |
|
Substract vector from this cubic and return new one.
Definition at line 361 of file HermiteCubic.h. References THermiteCubic(). Referenced by operator-(). Here is the call graph for this function: ![]() |
|
Move this cubic about specified vector.
Definition at line 308 of file HermiteCubic.h. |
|
Add vector to this cubic and return new (moved) cubic.
Definition at line 488 of file HermiteCubic.h. References Plus(). Here is the call graph for this function: ![]() |
|
Add vector to this cubic (this move this cubic).
Definition at line 466 of file HermiteCubic.h. References Add(). Here is the call graph for this function: ![]() |
|
Substract vector from this cubic and return new (moved) cubic.
Definition at line 497 of file HermiteCubic.h. References Minus(). Here is the call graph for this function: ![]() |
|
Substract vector from this cubic (this move this cubic).
Definition at line 477 of file HermiteCubic.h. References Sub(). Here is the call graph for this function: ![]() |
|
Assignment operator.
Definition at line 426 of file HermiteCubic.h. References Set(). Here is the call graph for this function: ![]() |
|
Compare two cubics with default tolerance TVector3::DELTA_COMPARE.
Definition at line 437 of file HermiteCubic.h. References Compare(). Here is the call graph for this function: ![]() |
|
Return specified item from this cubic. Index must be in range 0..3. Returned items are START, START_TANGENT, END_TANGENT, END.
Definition at line 457 of file HermiteCubic.h. References GetVector(). Here is the call graph for this function: ![]() |
|
Return specified item from this cubic. Index must be in range 0..3. Returned items are START, START_TANGENT, END_TANGENT, END.
Definition at line 447 of file HermiteCubic.h. References GetVector(). Here is the call graph for this function: ![]() |
|
Add vector to this cubic and result store in second parameter.
Definition at line 348 of file HermiteCubic.h. References m_end, m_endTangent, m_start, and m_startTangent. |
|
Add vector to this cubic and return new one.
Definition at line 338 of file HermiteCubic.h. References THermiteCubic(). Referenced by operator+(). Here is the call graph for this function: ![]() |
|
Copy another cubic to this one.
Definition at line 266 of file HermiteCubic.h. References m_end, m_endTangent, m_start, and m_startTangent. Referenced by operator=(). |
|
Sets cubic from FOUR POINTS!!!
Definition at line 281 of file HermiteCubic.h. |
|
Sets cubic from two end-points and from their tangent vectors.
Definition at line 296 of file HermiteCubic.h. |
|
Substract specified vector from this cubic (this move with cubic).
Definition at line 328 of file HermiteCubic.h. Referenced by operator-=(). |