Vector2
class in Math
Properties
| Name | Type | Access | Description |
|---|---|---|---|
x | float | get / set | |
y | float | get / set |
Methods
| Return Type | Signature | Description |
|---|---|---|
| Vector2 | mul ( float o ) | |
| Vector2 | add ( Vector2 o ) | |
| Vector2 | normalize ( ) | |
| Vector2 | sub ( Vector2 o ) | |
| float | magnitude ( ) | |
| void | normalize_inplace ( ) |
Static Properties
| Name | Type | Access | Description |
|---|---|---|---|
ZERO | Vector2 | get |
Static Methods
| Return Type | Signature | Description |
|---|---|---|
| Vector2 | new ( float x, float y ) |