| DAZ Script | |
|---|---|
| void | abs () |
| DzInt2 | add ( DzInt2 vec ) |
| Number | average () |
| void | clamp ( Number min, Number max ) |
| DzInt2 | clamped ( Number min, Number max ) |
| DzInt2 | clampedMax ( Number max ) |
| DzInt2 | clampedMin ( Number min ) |
| void | clampMax ( Number max ) |
| void | clampMin ( Number min ) |
| DzInt2 | divide ( DzInt2 vec ) |
| DzInt2 | identity () |
| Boolean | isNull () |
| Number | length () |
| Number | lengthSquared () |
| DzInt2 | linearInterp ( Number t, DzInt2 v1, DzInt2 v2 ) |
| void | makeIdentity () |
| void | makeZero () |
| Number | manhattanLength () |
| DzInt2 | modulate ( Number min, Number max ) |
| void | modulo ( Number min, Number max ) |
| DzInt2 | multiply ( DzInt2 vec ) |
| void | negate () |
| void | setLength ( Number length ) |
| void | square () |
| DzInt2 | subtract ( DzInt2 vec ) |
| String | toString () |
| void | transpose () |
| DzInt2 | zero () |
Holds the height of this vector; an alias to the y component.
Holds the width of this vector; an alias for the x component.
Holds the x component of this vector.
Holds the y component of this vector.
DzInt2()
Default Constructor. Creates an uninitialized vector.
Creates a vector by parsing a string.
Parameter(s):
Copy Constructor.
DzInt2( DzInt2 vec )
Copy Constructor.
Creates and initializes this vector with an array of 2 integer values.
Creates and initializes this vector with 2 integer values.
void : abs()
Sets the value of each component to its respective absolute value.
DzInt2 : add( DzInt2 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:
DzInt2 : clamped( Number min, Number max )
Parameter(s):
Return Value:
min and max.Since:
DzInt2 : clampedMax( Number max )
Parameter(s):
Return Value:
max.Since:
DzInt2 : 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:
DzInt2 : divide( DzInt2 vec )
Parameter(s):
Return Value:
vec by this vector.DzInt2 : identity()
Return Value:
Since:
Return Value:
true if both values are zero (0, 0), otherwise false.Return Value:
Number : lengthSquared()
Return Value:
DzInt2 : linearInterp( Number t, DzInt2 v1, DzInt2 v2 )
Performs a linear interpolation between v1 and v2 based on the value of t.
Parameter(s):
Return Value:
v1 if t = 0. v2 if t = 1. Values outside the 0 ⇐ t ⇐ 1 range may also be used to return an extrapolated vector.Since:
void : makeIdentity()
Sets this vector to (1, 1).
void : makeZero()
Sets this vector to (0, 0).
Return Value:
DzInt2 : 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:
DzInt2 : multiply( DzInt2 vec )
Parameter(s):
Return Value:
vec by this vector.void : negate()
Negates each component of this vector.
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.
DzInt2 : subtract( DzInt2 vec )
Parameter(s):
Return Value:
vec from this vector.Return Value:
void : transpose()
Swaps the values of x and y.
DzInt2 : zero()
Return Value:
Since: