G.LerpVector
From GMod Wiki
Revision as of 20:39, 11 November 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
LerpVector( Number Percent, Vector First, Vector Second ) Where is this used? |
Description: | |
Returns any point in between the first and second vectors given a percentage | |
Returns: | Vector |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.LerpVector]G.LerpVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Lerps between the two vectors |
---|---|
Used on | |
Code | print( LerpVector( 0.25, Vector( 0, 0, 100 ), Vector( 0, 0, 200 ) ) ); |
Output | 0.0000 0.0000 125.0000 |