GetChangeInX(float, float)
Convenience function to calculate the change in the X axis
float GetChangeInX( float fDistance, float fAngle );
Parameters
fDistance
Distance to target location
fAngle
Direction to target Location
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)
Requirements
#include "x0_i0_position"
Version
1.61
See Also
functions: | cos | GetChangedPosition | GetChangeInY |
categories: | Math Functions | Miscellaneous Functions | Movement Functions | Targeting Functions |
author: Michael Nork, editor: Mistress, contributor: Kookoo