[saco] Implement and match GetNormalisation(...)

This commit is contained in:
RD42 2024-05-07 22:31:48 +08:00
parent ffa4d3b01e
commit e528b1b769
2 changed files with 9 additions and 0 deletions

View File

@ -1587,6 +1587,13 @@ void _VectorNormalise(VECTOR *vec)
//----------------------------------------------------
float GetNormalisation(VECTOR *vec)
{
return ((vec->X * vec->X) + (vec->Y * vec->Y) + (vec->Z * vec->Z));
}
//----------------------------------------------------
float DegToRad(float fDegrees)
{
if (fDegrees > 360.0f || fDegrees < 0.0f) return 0.0f;

View File

@ -6,6 +6,8 @@ void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint,
int bCheckObjects, int bCheckDummies, int bSeeThroughStuff,
int bIgnoreSomeObjectsForCamera, int bUnk1);
float GetNormalisation(VECTOR *vec);
float FloatDifference(float f1, float f2);
float FloatOffset(float f1, float f2);
float NormalizeAngle(float fAngle);