Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <nonlinear_transform.h>
Public Member Functions | |
SphericalTransform (float a, float b, float c) | |
void | SetXZ (float x, float z) |
void | SetR (float rr) |
float | GetR () const |
float | GetX () const |
float | GetZ () const |
QVector | Transform (const QVector &v) const |
Transforms in a possibly nonlinear way the point to some new space. More... | |
QVector | TransformNormal (const QVector &point, const QVector &n) const |
transforms a direction to some new space More... | |
QVector | InvTransform (const QVector &v) const |
Transforms in reverse the vector into quadsquare space. More... | |
CLIPSTATE | BoxInFrustum (Vector &min, Vector &max, const Vector &campos) const |
Transforms a min and a max vector and figures out what is bigger. More... | |
![]() | |
float | TransformS (float x, float scale) const |
float | TransformT (float y, float scale) const |
Protected Attributes | |
float | scalex |
float | scalez |
float | r |
Definition at line 46 of file nonlinear_transform.h.
|
inlinevirtual |
Transforms a min and a max vector and figures out what is bigger.
Reimplemented from IdentityTransform.
Definition at line 92 of file nonlinear_transform.h.
References GFX_PARTIALLY_VISIBLE, GFXSpherePartiallyInFrustum(), Magnitude(), SphereTransformRenderlevel, Transform(), and Vector.
|
inline |
|
inline |
|
inline |
Transforms in reverse the vector into quadsquare space.
Reimplemented from IdentityTransform.
Definition at line 86 of file nonlinear_transform.h.
References UniverseUtil::asin(), M_PI, QVector, r, scalex, and scalez.
|
inline |
Definition at line 60 of file nonlinear_transform.h.
References r.
Referenced by SphericalTransform().
Transforms in a possibly nonlinear way the point to some new space.
Reimplemented from IdentityTransform.
Definition at line 76 of file nonlinear_transform.h.
References UniverseUtil::cos(), M_PI, QVector, r, scalex, scalez, UniverseUtil::sin(), and Vector.
Referenced by BoxInFrustum(), and TransformNormal().
|
inlinevirtual |
transforms a direction to some new space
Reimplemented from IdentityTransform.
Definition at line 82 of file nonlinear_transform.h.
References Transform().
|
protected |
Definition at line 49 of file nonlinear_transform.h.
Referenced by GetR(), InvTransform(), SetR(), and Transform().
|
protected |
Definition at line 49 of file nonlinear_transform.h.
Referenced by GetX(), InvTransform(), SetXZ(), and Transform().
|
protected |
Definition at line 49 of file nonlinear_transform.h.
Referenced by GetZ(), InvTransform(), SetXZ(), and Transform().