GetChangeInX
From NWN Lexicon
Contents |
[edit] GetChangeInX(float, float)
Convenience function to calculate the change in the X axis
float GetChangeInX( float fDistance, float fAngle );
[edit] Parameters
fDistance
Distance to target location
fAngle
Direction to target Location
[edit] Description
This is a convenience function that returns the product of fDistance*Cos(fAngle) as a float. This number would then be used to calculate the amount needed to change the X-axis of the current location in order to reach the target location. This function would normally be used with float GetChangeInY (float fDistance, float fAngle)
Calls
Float Cos(float fAngle)
[edit] Requirements
#include " x0_i0_position "
[edit] Version
1.61
[edit] See Also
functions: |
author: Michael Nork, editor: Mistress, contributor: Kookoo