s&
box
News
Charts
Api
History
Wiki
Sign in through
STEAM
Vector2
.
Abs
Sandbox.System
list
Api Index
feed
Vector2
class
Vector2
Constructors
note_add
Vector2
( x, y )
note_add
Vector2
( all )
note_add
Vector2
( v )
note_add
Vector2
( v )
Fields
push_pin
Down
push_pin
Left
push_pin
One
push_pin
Right
push_pin
Up
push_pin
Zero
Properties
push_pin
Random
data_object
Degrees
data_object
IsNearZeroLength
data_object
Length
data_object
LengthSquared
data_object
Normal
data_object
Perpendicular
data_object
x
data_object
y
Methods
push_pin
Distance
( a, b )
push_pin
DistanceBetween
( a, b )
push_pin
DistanceBetweenSquared
( a, b )
push_pin
DistanceSquared
( a, b )
push_pin
Dot
( a, b )
push_pin
FromDegrees
( degrees )
push_pin
FromRadians
( radians )
push_pin
Lerp
( a, b, t, clamp )
push_pin
Lerp
( a, b, t, clamp )
push_pin
Max
( a, b )
push_pin
Min
( a, b )
push_pin
Parse
( str )
push_pin
Parse
( str, provider )
push_pin
Read
( reader )
push_pin
TryParse
( str, result )
push_pin
TryParse
( str, provider, result )
code
Abs
()
code
AlmostEqual
( v, delta )
code
Clamp
( otherMin, otherMax )
code
Clamp
( min, max )
code
ComponentMax
( other )
code
ComponentMin
( other )
code
Distance
( target )
code
DistanceSquared
( target )
code
LerpTo
( target, t, clamp )
code
LerpTo
( target, t, clamp )
code
SnapToGrid
( gridSize, sx, sy )
code
WithX
( x )
code
WithY
( y )
code
Write
( writer )
integration_instructions
Equals
( obj )
integration_instructions
Equals
( o )
integration_instructions
GetHashCode
()
integration_instructions
ToString
()
Abs
Vector2
Abs
( )
Summary
Returns a new vector with all values positive. -5 becomes 5, etc.
Return Value
Vector2
output