G.LerpAngle

From GMod Wiki

Revision as of 20:39, 11 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.LerpAngle]G.LerpAngle [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionLerps between the two angles
Used onNewerShared.png
Code
print( LerpAngle( 0.25, Angle( 0, 90, 0 ), Angle( 0, 0, 0 ) ) );
Output0.000 67.500 0.000
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox