129 cXyz tmp(this->
x, 0, this->
z);
133 cXyz tmp(this->
x, 0, this->
z);
134 cXyz tmp2(other.
x, 0, other.
z);
135 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
f32 sqrtf(f32)
Definition sdk_math.h:3
cXyz * operator*=(f32 scale)
Definition c_xyz.h:76
f32 inprodXZ(const Vec &other) const
Definition c_xyz.h:148
cXyz normalize()
Definition c_xyz.cpp:92
f32 abs2XZ(const Vec &other) const
Definition c_xyz.h:132
cXyz operator+(Vec const &) const
Definition c_xyz.cpp:15
cXyz(f32 x, f32 y, f32 z)
Definition c_xyz.h:29
bool normalizeRS()
Definition c_xyz.cpp:107
f32 abs2(const Vec &other) const
Definition c_xyz.h:127
bool isNearZeroSquare() const
Definition c_xyz.h:123
f32 getSquareDistance(const Vec &other) const
Definition c_xyz.h:119
static const cXyz BaseYZ
Definition c_xyz.h:14
s16 atan2sY_XZ() const
Definition c_xyz.cpp:133
cXyz operator*(f32) const
Definition c_xyz.cpp:27
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:53
bool isNearZeroSquare(const cXyz &other) const
Definition c_xyz.h:124
f32 getDotProduct(const Vec &other) const
Definition c_xyz.h:145
cXyz(const cXyz &vec)
Definition c_xyz.h:19
void operator*=(const Vec &other)
Definition c_xyz.h:62
cXyz normZC() const
Definition c_xyz.cpp:74
static const cXyz BaseZ
Definition c_xyz.h:11
cXyz * operator-=(const Vec &other)
Definition c_xyz.h:68
bool operator==(Vec const &) const
Definition c_xyz.cpp:116
static const cXyz BaseXYZ
Definition c_xyz.h:15
cXyz * operator/=(f32 scale)
Definition c_xyz.h:80
static f32 getNearZeroValue()
Definition c_xyz.h:121
f32 abs(const Vec &other) const
Definition c_xyz.h:139
cXyz(const Vec &vec)
Definition c_xyz.h:34
~cXyz()
Definition c_xyz.h:18
cXyz operator/(f32) const
Definition c_xyz.cpp:41
void set(f32 pX, f32 pY, f32 pZ)
Definition c_xyz.h:98
cXyz * operator+=(const Vec &other)
Definition c_xyz.h:72
f32 abs2XZ() const
Definition c_xyz.h:128
cXyz getCrossProduct(Vec const &) const
Definition c_xyz.cpp:47
f32 getXDiff(const Vec *other) const
Definition c_xyz.h:110
void zero()
Definition c_xyz.h:116
cXyz normalizeZP()
Definition c_xyz.cpp:98
f32 getYDiff(const Vec *other) const
Definition c_xyz.h:111
void setall(f32 f)
Definition c_xyz.h:114
void set(const Vec &other)
Definition c_xyz.h:104
cXyz & operator=(const Vec &vec)
Definition c_xyz.h:39
s16 atan2sX_Z() const
Definition c_xyz.cpp:129
f32 abs() const
Definition c_xyz.h:138
void operator-=(f32 f)
Definition c_xyz.h:56
f32 getSquareMag() const
Definition c_xyz.h:118
f32 absXZ() const
Definition c_xyz.h:140
f32 getZDiff(const Vec *other) const
Definition c_xyz.h:112
static const cXyz BaseX
Definition c_xyz.h:9
cXyz normZP() const
Definition c_xyz.cpp:64
bool operator!=(Vec const &) const
Definition c_xyz.cpp:120
bool isZero() const
Definition c_xyz.cpp:124
f32 getMagXZ() const
Definition c_xyz.h:143
cXyz operator-(Vec const &) const
Definition c_xyz.cpp:21
void operator+=(f32 f)
Definition c_xyz.h:51
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:57
f32 abs2() const
Definition c_xyz.h:126
f32 inprod(const Vec &other) const
Definition c_xyz.h:147
f32 absXZ(const Vec &other) const
Definition c_xyz.h:141