![]()
Takes the absolute value of each component of vec0 storing the result in
resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Performs a component-wise addition of vec0 and vec1 together storing the
result into resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Use cloneFloat32.
Creates a clone of the given 4 element vector.
Arguments:
Returns: !goog.vec.Vec4.Type
The new cloned vector.
|
code » | ||||||
![]()
Creates a clone of the given 4 element Float32 vector.
Arguments:
Returns: !goog.vec.Vec4.Float32
The new cloned vector.
|
code » | ||||||
![]()
Creates a clone of the given 4 element vector.
Arguments:
Returns: !goog.vec.Vec4.Float64
The new cloned vector.
|
code » | ||||||
![]()
Use createFloat32.
Creates a 4 element vector of Float32Array. The array is initialized to zero.
Returns: !goog.vec.Vec4.Type
The new 4 element array.
|
code » | ||||||
![]()
Creates a 4 element vector of Float32. The array is initialized to zero.
Returns: !goog.vec.Vec4.Float32
The new 3 element array.
|
code » | ||||||
![]()
Creates a new 4 element FLoat32 vector initialized with the value from the
given array.
Arguments:
Returns: !goog.vec.Vec4.Float32
The new 3 element array.
|
code » | ||||||
![]()
Creates a new 4 element Float32 vector initialized with the supplied values.
|
code » | ||||||
![]()
Creates a 4 element vector of Float64. The array is initialized to zero.
Returns: !goog.vec.Vec4.Float64
The new 4 element array.
|
code » | ||||||
![]()
Creates a new 4 element Float64 vector initialized with the value from the
given array.
Arguments:
Returns: !goog.vec.Vec4.Float64
The new 4 element array.
|
code » | ||||||
![]()
Creates a new 4 element Float64 vector initialized with the supplied values.
|
code » | ||||||
![]()
Use createFloat32FromArray.
Creates a new 4 element vector initialized with the value from the given
array.
Arguments:
Returns: !goog.vec.Vec4.Type
The new 4 element array.
|
code » | ||||||
![]()
Use createFloat32FromValues.
Creates a new 4 element vector initialized with the supplied values.
|
code » | ||||||
![]()
Creates a 4 element vector of Number. The array is initialized to zero.
Returns: !goog.vec.Vec4.Number
The new 4 element array.
|
code » | ||||||
Returns the scalar product of vectors v0 and v1.
Arguments:
Returns: number
The scalar product.
|
code » | ||||||
Returns true if the components of v0 are equal to the components of v1.
Arguments:
Returns: boolean
True if the vectors are equal, false otherwise.
|
code » | ||||||
![]()
Linearly interpolate from v0 to v1 according to f. The value of f should be
in the range [0..1] otherwise the results are undefined.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
Returns the magnitude of the given vector.
Arguments:
Returns: number
The magnitude of the vector.
|
code » | ||||||
Returns the magnitudeSquared of the given vector.
Arguments:
Returns: number
The magnitude of the vector.
|
code » | ||||||
![]()
Compares the components of vec0 with the components of another vector or
scalar, storing the larger values in resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Compares the components of vec0 with the components of another vector or
scalar, storing the smaller values in resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Negates vec0, storing the result into resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Normalizes the given vector storing the result into resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Multiplies each component of vec0 with scalar storing the product into
resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » | ||||||
![]()
Initializes the vector with the given array of values.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return vec so that operations can be
chained together.
|
code » | ||||||
![]()
Initializes the vector with the given values.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return vec so that operations can be
chained together.
|
code » | ||||||
![]()
Performs a component-wise subtraction of vec1 from vec0 storing the
result into resultVec.
Arguments:
Returns: !goog.vec.Vec4.AnyType
Return resultVec so that operations can be
chained together.
|
code » |