#include <CPUUniversal.h>
Inheritance diagram for NSMath::TCPUUniversal:
Public Member Functions | |
virtual void | FindMaxDistanceSquare (const TVector3 *inArray16, const DWORD &inCount, const TVector3 &inCenter, float &outMaxDistanceSqr) const |
Find square of maximal distance from given point to one point in given array. | |
virtual void | FindCenter (const TVector3 *inArray16, const DWORD &inCount, TVector3 &outCenter) const |
Compute center point from set of points. | |
virtual void | FindMinMax (const TVector3 *inArray16, const DWORD &inCount, TVector3 &outMin, TVector3 &outMax) const |
Find minimal and maximal coordinates for given array of points and store it in parameters. |
It must be write entire in high-level language without inline assembler for maximal portability.
Definition at line 28 of file CPUUniversal.h.
|
Compute center point from set of points.
Implements NSMath::TMathCPU. Definition at line 63 of file CPUUniversal.cpp. References DBGASSERT_MATHLOW. |
|
Find square of maximal distance from given point to one point in given array.
Implements NSMath::TMathCPU. Definition at line 29 of file CPUUniversal.cpp. References DBGASSERT_MATHLOW, and NSMath::TVector3::DistanceToSq(). Here is the call graph for this function: ![]() |
|
Find minimal and maximal coordinates for given array of points and store it in parameters.
Implements NSMath::TMathCPU. Definition at line 95 of file CPUUniversal.cpp. References DBGASSERT_MATHLOW, NSMath::TVector3::x, NSMath::TVector3::y, and NSMath::TVector3::z. |