java.lang.Object
javax.vecmath.Tuple3f
javax.vecmath.Color3f
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
RGBColor
,Spectrum3f
A 3 element color represented by single precision floating point x,y,z
coordinates. Color components should be in the range of zero to one.
- Version:
- specification 1.2, implementation $Revision: 1.9 $, $Date: 1999/11/25 10:55:01 $
- Author:
- Kenji hiranabe
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionColor3f()
Constructs and initializes a Color3f to (0,0,0).Color3f
(float[] c) Constructs and initializes a Color3f from input array of length 3.Color3f
(float x, float y, float z) Constructs and initializes a Color3f from the specified xyzConstructs color from awt.Color.Constructs and initializes a Color3f from the specified Color3f.Constructs and initializes a Color3f from the specified Tuple3d.Constructs and initializes a Color3f from the specified Tuple3f. -
Method Summary
Methods inherited from class javax.vecmath.Tuple3f
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
-
Constructor Details
-
Color3f
public Color3f(float x, float y, float z) Constructs and initializes a Color3f from the specified xyz- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate
-
Color3f
public Color3f(float[] c) Constructs and initializes a Color3f from input array of length 3.- Parameters:
c
- the array of length 3 containing xyz in order
-
Color3f
Constructs and initializes a Color3f from the specified Color3f.- Parameters:
c
- the Color3f containing the initialization x y z data
-
Color3f
Constructs and initializes a Color3f from the specified Tuple3d.- Parameters:
t1
- the Tuple3d containing the initialization x y z data
-
Color3f
Constructs and initializes a Color3f from the specified Tuple3f.- Parameters:
t1
- the Tuple3f containing the initialization x y z data
-
Color3f
public Color3f()Constructs and initializes a Color3f to (0,0,0). -
Color3f
Constructs color from awt.Color.- Parameters:
color
- awt color
-
-
Method Details