oops i need that
This commit is contained in:
1 parent
9338c3bfe3
commit
de5155a3c2
2 files changed
+8
-1
No files matched your search
+6
-1
@@ -176,13 +176,18 @@ fixed_t *finecosine = &finesine[FINEANGLES/4];
|
||||
|
||||
#include "t_facon.c"
|
||||
|
||||
|
||||
FUNCMATH angle_t FixedAcos(fixed_t x)
|
||||
{
|
||||
if (-FRACUNIT > x || x >= FRACUNIT) return 0;
|
||||
return fineacon[((x<<(FINE_FRACBITS-FRACBITS)))+FRACUNIT];
|
||||
}
|
||||
|
||||
INT32 AngleDeltaSigned(angle_t a1, angle_t a2)
|
||||
{
|
||||
// Silly but easy way to do it through integer conversion.
|
||||
return (INT32)(a1) - (INT32)(a2);
|
||||
}
|
||||
|
||||
//
|
||||
// AngleBetweenVectors
|
||||
//
|
||||
|
||||
@@ -110,6 +110,8 @@ FUNCMATH angle_t FixedAngleC(fixed_t fa, fixed_t factor);
|
||||
/// The FixedAcos function
|
||||
FUNCMATH angle_t FixedAcos(fixed_t x);
|
||||
|
||||
FUNCMATH INT32 AngleDeltaSigned(angle_t a1, angle_t a2);
|
||||
|
||||
/// Fixed Point Vector functions
|
||||
angle_t FV2_AngleBetweenVectors(const vector2_t *Vector1, const vector2_t *Vector2);
|
||||
angle_t FV3_AngleBetweenVectors(const vector3_t *Vector1, const vector3_t *Vector2);
|
||||
|
||||
Reference in new issue
Block a user