Public Member Functions | |
| HRESULT | Normalize () |
| HRESULT | GetLength ([out, retval] RtFloat *pVal) |
| HRESULT | DotProduct ([in] RtFloat fCoef) |
| HRESULT | Add ([in] IRdVertex *pV) |
| HRESULT | Sub ([in] IRdVertex *pV) |
| HRESULT | GetDistanceFrom ([in] IRdVertex *pV,[out, retval] RtFloat *pVal) |
| HRESULT | SProduct ([in] IRdVertex *pV,[out, retval] RtFloat *pVal) |
| HRESULT | XProduct ([in] IRdVertex *pV,[out, retval] IRdVertex **pCross) |
Properties | |
| RtFloat * | x [get] |
| RtFloat | x [set] |
| RtFloat * | y [get] |
| RtFloat | y [set] |
| RtFloat * | z [get] |
| RtFloat | z [set] |
| HRESULT IRdVertex::Normalize | ( | ) |
Normalizes vector to unit length
| HRESULT IRdVertex::GetLength | ( | [out, retval] RtFloat * | pVal | ) |
Returns length of vector
| pVal | length of vector |
| HRESULT IRdVertex::DotProduct | ( | [in] RtFloat | fCoef | ) |
Multiplies vector by scalar coefficient
| fCoef | scalar coefficient |
| HRESULT IRdVertex::Add | ( | [in] IRdVertex * | pV | ) |
Adds vector
| pV | vector to add |
| HRESULT IRdVertex::Sub | ( | [in] IRdVertex * | pV | ) |
Subtracts vector
| pV | vector to subtract |
| HRESULT IRdVertex::GetDistanceFrom | ( | [in] IRdVertex * | pV, | |
| [out, retval] RtFloat * | pVal | |||
| ) |
Returns distance from given point
| pV | point | |
| pVal | distance |
| HRESULT IRdVertex::SProduct | ( | [in] IRdVertex * | pV, | |
| [out, retval] RtFloat * | pVal | |||
| ) |
Returns dot product with an arbitrary vector
| pV | vector | |
| pVal | dot product |
Returns cross product with an arbitrary vector
| pV | vector | |
| pCross | cross product |
RtFloat* IRdVertex::x [get] |
Gets x coordinate
| pVal | x coordinate |
RtFloat IRdVertex::x [set] |
Sets x coordinate
| pVal | x coordinate |
RtFloat* IRdVertex::y [get] |
Gets y coordinate
| pVal | y coordinate |
RtFloat IRdVertex::y [set] |
Sets y coordinate
| pVal | y coordinate |
RtFloat* IRdVertex::z [get] |
Gets z coordinate
| pVal | z coordinate |
RtFloat IRdVertex::z [set] |
Sets z coordinate
| pVal | z coordinate |
1.5.5