| DAZ Script | |
|---|---|
| void | abs () |
| DzVec2 | add ( DzVec2 vec ) |
| Number | average () |
| void | clamp ( Number min, Number max ) |
| DzVec2 | clamped ( Number min, Number max ) |
| DzVec2 | clampedMax ( Number max ) |
| DzVec2 | clampedMin ( Number min ) |
| void | clampMax ( Number max ) |
| void | clampMin ( Number min ) |
| DzVec2 | cross ( DzVec2 vec ) |
| DzVec2 | divide ( DzVec2 vec ) |
| Number | dot ( DzVec2 vec ) |
| Boolean | equals ( DzVec2 vec, Number tolerance=1e-6 ) |
| Number | getAngleTo ( DzVec2 vec ) |
| DzVec2 | identity () |
| Number | length () |
| Number | lengthSquared () |
| DzVec2 | linearInterp ( Number t, DzVec2 v1, DzVec2 v2 ) |
| void | makeIdentity () |
| void | makeZero () |
| DzVec2 | modulate ( Number min, Number max ) |
| void | modulo ( Number min, Number max ) |
| DzVec2 | multiply ( DzVec2 vec ) |
| void | negate () |
| void | normalize () |
| DzVec2 | normalized () |
| void | setLength ( Number length ) |
| void | square () |
| DzVec2 | subtract ( DzVec2 vec ) |
| String | toString () |
| DzVec2 | zero () |
DzVec2()
Default Constructor. Creates an uninitialized vector.
Creates a vector by parsing a string.
Parameter(s):
Copy Constructor.
DzVec2( DzVec2 vec )
Copy Constructor.
Creates and initializes this vector with an array of 2 float values.
Creates and initializes this vector with 2 float values.
void : abs()
Sets the value of each component to its respective absolute value.
DzVec2 : add( DzVec2 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:
DzVec2 : clamped( Number min, Number max )
Parameter(s):
Return Value:
min and max.Since:
DzVec2 : clampedMax( Number max )
Parameter(s):
Return Value:
max.Since:
DzVec2 : 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:
DzVec2 : cross( DzVec2 vec )
Parameter(s):
Return Value:
DzVec2 : divide( DzVec2 vec )
Parameter(s):
Return Value:
vec by this vector.Parameter(s):
Return Value:
Boolean : equals( DzVec2 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( DzVec2 vec )
Parameter(s):
Return Value:
DzVec2 : identity()
Return Value:
Since:
Return Value:
Number : lengthSquared()
Return Value:
DzVec2 : linearInterp( Number t, DzVec2 v1, DzVec2 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).
void : makeZero()
Sets the components of this vector to (0.0, 0.0).
DzVec2 : 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:
DzVec2 : multiply( DzVec2 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.
DzVec2 : 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.
DzVec2 : subtract( DzVec2 vec )
Parameter(s):
Return Value:
vec from this vector.Return Value:
DzVec2 : zero()
Return Value:
Since: