Module: pg/math/vector3

pg/math/vector3


new require("pg/math/vector3")()

math/vector3.js, line 12

Methods

cross(vector){Vector3}

math/vector3.js, line 43

Get crossed vector.

Name Type Description
vector Vector3

vector for cross

Returns:
this

divide(scala){Vector3}

math/vector3.js, line 25

Divide by number

Name Type Description
scala number

number for dividing

Returns:
this

length(){number}

math/vector3.js, line 62

Get length of vector.

Returns:
length

normalize(){Vector3}

math/vector3.js, line 71

Get normalized vector

Returns:
normalized vector