javax.vecmath
Class Color4f
- Serializable
public class Color4f
implements Serializable
A 4 element color represented by single precision floating point x,y,z,w
coordinates. Color and alpha components should be in the range of zero to one.
specification 1.2, implementation 1.0 $Revision: 1.8 $, $Date: 1999/11/25 10:55:01 $
Color4f() - Constructs and initializes a Color4f to (0,0,0,0).
|
Color4f(c[] ) - Constructs and initializes a Color4f from input array of length 4.
|
Color4f(float x, float y, float z, float w) - Constructs and initializes a Color4f from the specified xyzw
|
Color4f(java.awt.Color color) - Constructs color from awt.Color.
|
Color4f(Color4f c1) - Constructs and initializes a Color4f from the specified Color4f.
|
Color4f(Tuple4d t1) - Constructs and initializes a Color4f from the specified Tuple4d.
|
Color4f(Tuple4f t1) - Constructs and initializes a Color4f from the specified Tuple4f.
|
java.awt.Color | get() - Gets awt.Color.
|
void | set(java.awt.Color color) - Sets color from awt.Color.
|
absolute , absolute , add , add , clamp , clamp , clampMax , clampMax , clampMin , clampMin , epsilonEquals , equals , get , get , hashCode , interpolate , interpolate , negate , negate , scale , scale , scaleAdd , scaleAdd , set , set , set , set , sub , sub , toString |
Color4f
public Color4f()
Constructs and initializes a Color4f to (0,0,0,0).
Color4f
public Color4f(c[] )
Constructs and initializes a Color4f from input array of length 4.
Color4f
public Color4f(float x,
float y,
float z,
float w)
Constructs and initializes a Color4f from the specified xyzw
x
- the x coordinatey
- the y coordinatez
- the z coordinatew
- the w coordinate
Color4f
public Color4f(java.awt.Color color)
Constructs color from awt.Color.
Color4f
public Color4f(Color4f c1)
Constructs and initializes a Color4f from the specified Color4f.
Color4f
public Color4f(Tuple4d t1)
Constructs and initializes a Color4f from the specified Tuple4d.
t1
- the Tuple4d containing the initialization x y z w data
Color4f
public Color4f(Tuple4f t1)
Constructs and initializes a Color4f from the specified Tuple4f.
t1
- the Tuple4f containing the initialization x y z w data
get
public final java.awt.Color get()
Gets awt.Color.
set
public final void set(java.awt.Color color)
Sets color from awt.Color.