Vector.LengthSqr
From GMod Wiki
| Function | |
| Syntax | Vector:LengthSqr( ) |
| Description: | |
| Returns the squared length of the vector. | |
| Returns: | Float |
| In Object: | Vector |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Vector.LengthSqr]Vector.LengthSqr [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Get a vector's squared length |
|---|---|
| Used on | |
| Code | print("Squared vector length is " .. Vector( 100, 0, 100 ):LengthSqr()) |
| Output | Squared vector length is 20000 |