3#include <game/mLib/m_vec.hpp>
8 void memSet(
void *dst,
int val, ulong size);
14 return (std::fabs(val) < FLT_EPSILON);
A three-dimensional floating point vector.
Provides common utilities.
float addCalcPos(mVec3_c *currPos, const mVec3_c &targetPos, float ratio, float maxStep, float minStep)
Smoothly moves currentPos towards targetPos using proportional scaling.
bool isZero(float val)
Checks if a floating-point value is effectively zero within epsilon tolerance.
void memSet(void *dst, int val, ulong size)
See memset.
bool chasePos(mVec3_c *currentPos, const mVec3_c &targetPos, float step)
Moves currentPos towards targetPos by a fixed step amount.
s16 targetAngleY(const mVec3_c &vec1, const mVec3_c &vec2)
Calculates the yaw (Y-axis) orientation angle from an origin position to a target position.
s16 targetAngleX(const mVec3_c &vec1, const mVec3_c &vec2)
Calculates the pitch (X-axis) orientation angle from an origin position to a target position.