Value > Basic Data Values > Point4 Values |
The Point4 class defines the characteristics of points in 4D space (for example RGBA color space).
These values contain 4 component floating point numbers and can be used to express floating point color values where the components are the Red, Green, Blue and Alpha values.
This value class was first introduced in 3ds Max 6 to accommodate floating point colors required by the mental ray renderer.
Several Point4 controllers were also introduced to store animation of parameters containing Point4 values.
<point4>.x: Float --the x component <point4>.y: Float --the y component <point4>.z: Float --the z component <point4>.w: Float --the w component
<point4> == <point4> <point4> != <point4> <point4> + <point4_or_number> <point4> - <point4_or_number> <point4> * <point4_or_number> <point4> / <point4_or_number>
If the second operand is a number, the operation is performed on each component of the value.
Returns a component of the Point4 as a float.
Valid range on the index is 1 to 4.
Sets a component of the Point4 to the float.
Valid range on the index is 1 to4.
Creates a new copy of the Point4 value.
The new value contains a copy of the input Point4 value, and is independent of the input Point4 value.
Generates a pseudo-random point between the given points.
Returns the length of the 4D vector.
Returns the distance between the points in 4D space.
Returns the point4 value normalized such that the 4D vector length equals 1.