Returns the cross-product of two vectors.
Arguments:
Returns: !goog.math.Vec3
The cross-product of the two vectors.
|
code » | ||||
Returns the difference of two vectors as a new Vec3.
Arguments:
Returns: !goog.math.Vec3
The difference vector.
|
code » | ||||
Returns the distance between two vectors.
Arguments:
Returns: number
The distance.
|
code » | ||||
Returns the dot-product of two vectors.
Arguments:
Returns: number
The dot-product of the two vectors.
|
code » | ||||
Compares vectors for equality.
Arguments:
Returns: boolean
True if the vectors have equal x, y, and z coordinates.
|
code » | ||||
Returns a new Vec3 object from a given coordinate.
Arguments:
Returns: !goog.math.Vec3
A new vector object.
|
code » | ||||
Returns a new Vec3 that is the linear interpolant between vectors a and b at
scale-value x.
Arguments:
Returns: !goog.math.Vec3
The interpolated vector.
|
code » | ||||
Generates a random vector inside the unit sphere.
Returns: !goog.math.Vec3
A random vector.
|
code » | ||||
Generates a random unit vector.
http://mathworld.wolfram.com/SpherePointPicking.html
Using (6), (7), and (8) to generate coordinates.
Returns: !goog.math.Vec3
A random unit-length vector.
|
code » | ||||
Returns the squared distance between two vectors.
Arguments:
Returns: number
The squared distance.
|
code » | ||||
Returns the sum of two vectors as a new Vec3.
Arguments:
Returns: !goog.math.Vec3
The sum vector.
|
code » |