G.LerpVector

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 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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.LerpVector]G.LerpVector [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionLerps between the two vectors
Used onNewerShared.png
Code
print( LerpVector( 0.25, Vector( 0, 0, 100 ), Vector( 0, 0, 200 ) ) );
Output0.0000 0.0000 125.0000
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox