# GetChangeInY(float, float)

Convenience function that calculates the change in the Y axis to the target

float GetChangeInY( float fDistance, float fAngle );

#### Parameters

*fDistance*

Distance to target

*fAngle*

Direction to target

#### Description

This is a convenience function that returns the product of fDistance*sin(fAngle) as a float. This number would than be used to calculate the amount to needed to change the Y-axis of the current location in order to reach the target location. This function would normally be used with GetChangeInX.

Calls

float Sin(float fAngle)

#### Version

1.62

#### See Also

functions: | GetChangedPosition | GetChangeInX | sin |

categories: | Math Functions | Miscellaneous Functions |

author: Michael Nork, editor: Jasperre, additional contributor(s): Jasperre, Sky