128 cXyz tmp(this->
x, 0, this->
z);
132 cXyz tmp(this->
x, 0, this->
z);
133 cXyz tmp2(other.
x, 0, other.
z);
134 return tmp.
abs2(tmp2);
asm f32 PSVECDotProduct(const __REGISTER Vec *a, const __REGISTER Vec *b)
Definition vec.c:181
f32 PSVECSquareMag(const __REGISTER Vec *v)
Definition vec.c:120
asm void PSVECAdd(const __REGISTER Vec *a, const __REGISTER Vec *b, __REGISTER Vec *ab)
Definition vec.c:14
f32 PSVECSquareDistance(const __REGISTER Vec *a, const __REGISTER Vec *b)
Definition vec.c:282
asm void PSVECSubtract(const __REGISTER Vec *a, const __REGISTER Vec *b, __REGISTER Vec *a_b)
Definition vec.c:34
void PSVECScale(const __REGISTER Vec *src, __REGISTER Vec *dst, __REGISTER f32 scale)
Definition vec.c:53
signed short int s16
Definition types.h:9
float f32
Definition types.h:25
float sqrtf(float mag)
Definition math.h:78
cXyz * operator*=(f32 scale)
Definition c_xyz.h:75
f32 inprodXZ(const Vec &other) const
Definition c_xyz.h:147
cXyz normalize()
Definition c_xyz.cpp:87
f32 abs2XZ(const Vec &other) const
Definition c_xyz.h:131
cXyz operator+(Vec const &) const
Definition c_xyz.cpp:10
cXyz(f32 x, f32 y, f32 z)
Definition c_xyz.h:29
bool normalizeRS()
Definition c_xyz.cpp:102
f32 abs2(const Vec &other) const
Definition c_xyz.h:126
bool isNearZeroSquare() const
Definition c_xyz.h:122
f32 getSquareDistance(const Vec &other) const
Definition c_xyz.h:118
static const cXyz BaseYZ
Definition c_xyz.h:14
s16 atan2sY_XZ() const
Definition c_xyz.cpp:128
cXyz operator*(f32) const
Definition c_xyz.cpp:22
cXyz()
Definition c_xyz.h:17
cXyz(const cXyz &vec)=default
static const cXyz BaseXZ
Definition c_xyz.h:13
static const cXyz BaseY
Definition c_xyz.h:10
cXyz outprod(Vec const &) const
Definition c_xyz.cpp:48
bool isNearZeroSquare(const cXyz &other) const
Definition c_xyz.h:123
f32 getDotProduct(const Vec &other) const
Definition c_xyz.h:144
cXyz(const cXyz &vec)
Definition c_xyz.h:19
void operator=(const Vec &vec)
Definition c_xyz.h:39
void operator*=(const Vec &other)
Definition c_xyz.h:61
cXyz normZC() const
Definition c_xyz.cpp:69
static const cXyz BaseZ
Definition c_xyz.h:11
cXyz * operator-=(const Vec &other)
Definition c_xyz.h:67
bool operator==(Vec const &) const
Definition c_xyz.cpp:111
static const cXyz BaseXYZ
Definition c_xyz.h:15
cXyz * operator/=(f32 scale)
Definition c_xyz.h:79
static f32 getNearZeroValue()
Definition c_xyz.h:120
f32 abs(const Vec &other) const
Definition c_xyz.h:138
cXyz(const Vec &vec)
Definition c_xyz.h:34
~cXyz()
Definition c_xyz.h:18
cXyz operator/(f32) const
Definition c_xyz.cpp:36
void set(f32 pX, f32 pY, f32 pZ)
Definition c_xyz.h:97
cXyz * operator+=(const Vec &other)
Definition c_xyz.h:71
f32 abs2XZ() const
Definition c_xyz.h:127
cXyz getCrossProduct(Vec const &) const
Definition c_xyz.cpp:42
f32 getXDiff(const Vec *other) const
Definition c_xyz.h:109
void zero()
Definition c_xyz.h:115
cXyz normalizeZP()
Definition c_xyz.cpp:93
f32 getYDiff(const Vec *other) const
Definition c_xyz.h:110
void setall(f32 f)
Definition c_xyz.h:113
void set(const Vec &other)
Definition c_xyz.h:103
s16 atan2sX_Z() const
Definition c_xyz.cpp:124
f32 abs() const
Definition c_xyz.h:137
void operator-=(f32 f)
Definition c_xyz.h:55
f32 getSquareMag() const
Definition c_xyz.h:117
f32 absXZ() const
Definition c_xyz.h:139
f32 getZDiff(const Vec *other) const
Definition c_xyz.h:111
static const cXyz BaseX
Definition c_xyz.h:9
cXyz normZP() const
Definition c_xyz.cpp:59
bool operator!=(Vec const &) const
Definition c_xyz.cpp:115
bool isZero() const
Definition c_xyz.cpp:119
f32 getMagXZ() const
Definition c_xyz.h:142
cXyz operator-(Vec const &) const
Definition c_xyz.cpp:16
void operator+=(f32 f)
Definition c_xyz.h:50
static const cXyz BaseXY
Definition c_xyz.h:12
static const cXyz Zero
Definition c_xyz.h:8
cXyz norm() const
Definition c_xyz.cpp:52
f32 abs2() const
Definition c_xyz.h:125
f32 inprod(const Vec &other) const
Definition c_xyz.h:146
f32 absXZ(const Vec &other) const
Definition c_xyz.h:140