G.LerpAngle
From GMod Wiki
Function | |
Syntax |
LerpAngle( Number Percent, Angle First, Angle Second ) Where is this used? |
Description: | |
Returns any point in between the first and second angles given a percentage | |
Returns: | Angle |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.LerpAngle]G.LerpAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Lerps between the two angles |
---|---|
Used on | |
Code | print( LerpAngle( 0.25, Angle( 0, 90, 0 ), Angle( 0, 0, 0 ) ) ); |
Output | 0.000 67.500 0.000 |