Skip to content
0thElement edited this page Apr 10, 2023 · 1 revision

Descriptions

A vector of 2 components.

Remarks

_

Properties


Name Type Description
x number The x component
y number The y component

Remarks

_

Methods


mirrorX(axis = 0.5)

Descriptions

Mirror the x component around axis

Parameters

Name Type Description
axis number The axis to mirror around

Return types

XY

Remarks

_


mirrorY(axis = 0.5)

Descriptions

Mirror the y component around axis

Parameters

Name Type Description
axis number The axis to mirror around

Return types

XY

Remarks

_

Operators


Operator Return type Description
+ XY Add two vectors, or a vector with a number, or a number with a vector together
- XY Subtract two vectors, or a vector with a number, or a number with a vector together
* XY Multiply a vector with a number, or a number with a vector together
/ XY Divide a vector with a number

Table of content

Gameplay

Editor

Scripting

Clone this wiki locally