DAZ Script | |
---|---|
void | abs () |
DzVec3 | add ( DzVec3 vec ) |
Number | average () |
void | clamp ( Number min, Number max ) |
DzVec3 | clamped ( Number min, Number max ) |
DzVec3 | clampedMax ( Number max ) |
DzVec3 | clampedMin ( Number min ) |
void | clampMax ( Number max ) |
void | clampMin ( Number min ) |
DzVec3 | cross ( DzVec3 vec ) |
DzVec3 | divide ( DzVec3 vec ) |
Number | dot ( DzVec3 vec ) |
Boolean | equals ( DzVec3 vec, Number tolerance=1e-6 ) |
Number | getAngleTo ( DzVec3 vec ) |
DzQuat | getRotationTo ( DzVec3 vec ) |
DzVec3 | identity () |
Number | length () |
Number | lengthSquared () |
DzVec3 | linearInterp ( Number t, DzVec3 v1, DzVec3 v2 ) |
void | makeIdentity () |
void | makeZero () |
DzVec3 | modulate ( Number min, Number max ) |
void | modulo ( Number min, Number max ) |
DzVec3 | multiply ( DzVec3 vec ) |
void | negate () |
void | normalize () |
DzVec3 | normalized () |
void | setLength ( Number length ) |
void | square () |
DzVec3 | subtract ( DzVec3 vec ) |
String | toString () |
DzVec3 | zero () |
Holds the x component of this vector.
Holds the y component of this vector.
Holds the z component of this vector.
DzVec3()
Default Constructor. Creates an uninitialized vector.
Creates a vector by parsing a string.
Parameter(s):
DzVec3( DzVec3 vec )
Copy Constructor.
Creates and initializes this vector with an array of 3 float values.
Since:
DzVec3( Number x, Number y, Number z )
Creates and initializes this vector with 3 float values.
void : abs()
Sets the value of each component to its respective absolute value.
DzVec3 : add( DzVec3 vec )
Parameter(s):
Return Value:
vec
to this vector.Return Value:
Since:
void : clamp( Number min, Number max )
Clamps each component of this vector.
Parameter(s):
Since:
DzVec3 : clamped( Number min, Number max )
Parameter(s):
Return Value:
min
and max
.Since:
DzVec3 : clampedMax( Number max )
Parameter(s):
Return Value:
max
.Since:
DzVec3 : clampedMin( Number min )
Parameter(s):
Return Value:
min
.Since:
Clamps the maximum value for each component of this vector.
Parameter(s):
Since:
Clamps the minimum value for each component of this vector.
Parameter(s):
Since:
DzVec3 : cross( DzVec3 vec )
Parameter(s):
Return Value:
DzVec3 : divide( DzVec3 vec )
Parameter(s):
Return Value:
vec
by this vector.Parameter(s):
Return Value:
Boolean : equals( DzVec3 vec, Number tolerance=1e-6 )
Tests if this vector and another vector are considered equal, within a tolerance.
Parameter(s):
Return Value:
true
if all components are within tolerance of the components of the given vector.Since:
Number : getAngleTo( DzVec3 vec )
Parameter(s):
Return Value:
DzQuat : getRotationTo( DzVec3 vec )
Parameter(s):
Return Value:
DzVec3 : identity()
Return Value:
Since:
Return Value:
Number : lengthSquared()
Return Value:
DzVec3 : linearInterp( Number t, DzVec3 v1, DzVec3 v2 )
Performs a linear interpolation between v1
and v2
based on the value of t
.
Parameter(s):
Return Value:
v1
if t = 0.0
. v2
if t = 1.0
. Values outside the 0.0 ⇐ t ⇐ 1.0
range may also be used to return an extrapolated vector.Since:
void : makeIdentity()
Sets the components of this vector to (1.0, 1.0, 1.0).
void : makeZero()
Sets the components of this vector to (0.0, 0.0, 0.0).
DzVec3 : modulate( Number min, Number max )
Parameter(s):
Return Value:
min
and max
.Since:
void : modulo( Number min, Number max )
Modulates each component of this vector.
Parameter(s):
Since:
DzVec3 : multiply( DzVec3 vec )
Parameter(s):
Return Value:
vec
by this vector.void : negate()
Negates each component of this vector.
void : normalize()
Modifies this vector to be its unit length.
DzVec3 : normalized()
Return Value:
void : setLength( Number length )
Sets this vector to have a specific length in the current direction.
Parameter(s):
See Also:
void : square()
Sets the value of each component to its respective squared value.
DzVec3 : subtract( DzVec3 vec )
Parameter(s):
Return Value:
vec
from this vector.Return Value:
DzVec3 : zero()
Return Value:
Since: