javax.vecmath
Class Color3f

java.lang.Object
  |
  +--javax.vecmath.Tuple3f
        |
        +--javax.vecmath.Color3f

public class Color3f
extends Tuple3f
implements java.io.Serializable

A 3 element vector that is represented by single precision floating point x,y,z coordinates. Color components should be in the range of zero to one.

See Also:
Serialized Form

Fields inherited from class javax.vecmath.Tuple3f
x, y, z
 
Constructor Summary
Color3f()
          Constructs and initializes a Color3f to (0,0,0).
Color3f(Color3f v1)
          Constructs and initializes a Color3f from the specified Color3f.
Color3f(float[] v)
          Constructs and initializes a Color3f from the array of length 3.
Color3f(float x, float y, float z)
          Constructs and initializes a Color3f from the specified xyz coordinates.
Color3f(Tuple3d t1)
          Constructs and initializes a Color3f from the specified Tuple3d.
Color3f(Tuple3f t1)
          Constructs and initializes a Color3f from the specified Tuple3f.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Color3f

public Color3f(float x,
               float y,
               float z)
Constructs and initializes a Color3f from the specified xyz coordinates.
Parameters:
x - the x coordinate
y - the y coordinate
z - the z coordinate

Color3f

public Color3f(float[] v)
Constructs and initializes a Color3f from the array of length 3.
Parameters:
v - the array of length 3 containing xyz in order

Color3f

public Color3f(Color3f v1)
Constructs and initializes a Color3f from the specified Color3f.
Parameters:
v1 - the Color3f containing the initialization x y z data

Color3f

public Color3f(Tuple3f t1)
Constructs and initializes a Color3f from the specified Tuple3f.
Parameters:
t1 - the Tuple3f containing the initialization x y z data

Color3f

public Color3f(Tuple3d t1)
Constructs and initializes a Color3f from the specified Tuple3d.
Parameters:
t1 - the Tuple3d containing the initialization x y z data

Color3f

public Color3f()
Constructs and initializes a Color3f to (0,0,0).