Zia.Vector2 Class

Represents a 2-dimensional vector.

Constructor

Name Description
Vector2

Constructs a new 2-dimensional vector.


Constructor

new Zia.Vector2 (x, y) constructor

Defined in Vector2.js:39

Constructs a new 2-dimensional vector.

Parameters

Name Type Description
x Number optional

The value for the x coordinate.

Defaults to 0.0.
y Number optional

The value for the y coordinate.

Defaults to 0.0.