JSVector2D

Defines 2D coordinates.

Create a new Module.JSVector2D API.

When creating a JSVector2D, the default values for x and y are set to (0, 0).

var position = new Module.JSVector2D(129.128265, 35.171834);

var position = new Module.JSVector2D();

set(x, y)

Sets the coordinate values.

Name
Type
Description

x

number

The x coordinate in 2D space.

y

number

The y coordinate in 2D space.

properties

Name
Type
Description

x

number

The x coordinate value

y

number

The y coordinate value

Last updated