Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Vector2

class in Math

Properties

NameTypeAccessDescription
xfloatget / set
yfloatget / set

Methods

Return TypeSignatureDescription
Vector2mul ( float o )
Vector2add ( Vector2 o )
Vector2normalize ( )
Vector2sub ( Vector2 o )
floatmagnitude ( )
voidnormalize_inplace ( )

Static Properties

NameTypeAccessDescription
ZEROVector2get

Static Methods

Return TypeSignatureDescription
Vector2new ( float x, float y )