20.07.2011, 22:18
Quote:
An efficient version of GetDistanceToPoint would be nice, since floatsqroot in PAWN is _slow_
|
MPInterpolatePoint - as suggested by Donya
MPDistance - a bit faster distance check
MPClamp360 - in-wraps angle number to a value to 0..360 range, (preserving direction, uses the wanted range)
MPFSQRT - wrapper for 0x5f3759df fsqrt
MPFDistance - even faster distance check (uses fastsqrt - ****** for 0x5f3759df )
MPFNormalize - 0x5f3759df fsqrt powered version of vector normalization
Any other good ideas?