|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.vecmath.Tuple4f javax.vecmath.Color4f
public class Color4f
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.
Field Summary |
---|
Fields inherited from class javax.vecmath.Tuple4f |
---|
w, x, y, z |
Constructor Summary | |
---|---|
Color4f()
Constructs and initializes a Color4f to (0,0,0,0). |
|
Color4f(java.awt.Color color)
Constructs color from awt.Color. |
|
Color4f(Color4f c1)
Constructs and initializes a Color4f from the specified Color4f. |
|
Color4f(float[] 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(Tuple4d t1)
Constructs and initializes a Color4f from the specified Tuple4d. |
|
Color4f(Tuple4f t1)
Constructs and initializes a Color4f from the specified Tuple4f. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.awt.Color |
get()
Gets awt.Color. |
void |
set(java.awt.Color color)
Sets color from awt.Color. |
Methods inherited from class javax.vecmath.Tuple4f |
---|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Color4f()
public Color4f(java.awt.Color color)
color
- awt colorpublic Color4f(Color4f c1)
c
- the Color4f containing the initialization x y z w datapublic Color4f(float[] c)
c
- the array of length 4 containing xyzw in orderpublic Color4f(float x, float y, float z, float w)
x
- the x coordinatey
- the y coordinatez
- the z coordinatew
- the w coordinatepublic Color4f(Tuple4d t1)
t1
- the Tuple4d containing the initialization x y z w datapublic Color4f(Tuple4f t1)
t1
- the Tuple4f containing the initialization x y z w dataMethod Detail |
---|
public java.lang.Object clone()
clone
in class Tuple4f
public final java.awt.Color get()
public final void set(java.awt.Color color)
color
- awt color
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |