Tuple
Class Tuple3f

java.lang.Object
  extended by Tuple.Tuple3f

public class Tuple3f
extends java.lang.Object


Field Summary
 float x
           
 float y
           
 float z
           
 
Constructor Summary
Tuple3f()
           
Tuple3f(float x, float y, float z)
          Creates a new instance of Tuple3f
 
Method Summary
 Tuple3f cross(Tuple3f v2)
           
 void cross(Tuple3f v2, Tuple3f dest)
           
 float distance(Tuple3f other)
           
 float distanceSquared(Tuple3f other)
           
 void divideEquals(float a)
           
 float dot(Tuple3f a)
           
 float getAxis(int axis)
           
 Tuple3f getCopy()
           
 float getLength()
           
 float getLengthSquared()
           
 boolean greaterThan(Tuple3f rhs)
           
 boolean lessThan(Tuple3f rhs)
           
 Tuple3f minus(Tuple3f a)
           
 void minusEquals(Tuple3f rhs)
           
 void normalize()
           
 Tuple3f plus(Tuple3f a)
           
 void plusEquals(Tuple3f rhs)
           
 Tuple3f reflect(Tuple3f normal)
           
 void rotate(Tuple3f axis, float angle)
           
 void rotateZ(float theta)
           
 void setAxis(int axis, float val)
           
 Tuple3f times(float a)
           
 void timesEquals(float rhs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

z

public float z
Constructor Detail

Tuple3f

public Tuple3f()

Tuple3f

public Tuple3f(float x,
               float y,
               float z)
Creates a new instance of Tuple3f

Method Detail

getAxis

public float getAxis(int axis)

setAxis

public void setAxis(int axis,
                    float val)

dot

public float dot(Tuple3f a)

minus

public Tuple3f minus(Tuple3f a)

plus

public Tuple3f plus(Tuple3f a)

times

public Tuple3f times(float a)

divideEquals

public void divideEquals(float a)

distanceSquared

public float distanceSquared(Tuple3f other)

distance

public float distance(Tuple3f other)

normalize

public void normalize()

getLength

public float getLength()

getLengthSquared

public float getLengthSquared()

plusEquals

public void plusEquals(Tuple3f rhs)

minusEquals

public void minusEquals(Tuple3f rhs)

timesEquals

public void timesEquals(float rhs)

cross

public void cross(Tuple3f v2,
                  Tuple3f dest)

cross

public Tuple3f cross(Tuple3f v2)

greaterThan

public boolean greaterThan(Tuple3f rhs)

lessThan

public boolean lessThan(Tuple3f rhs)

getCopy

public Tuple3f getCopy()

reflect

public Tuple3f reflect(Tuple3f normal)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

rotate

public void rotate(Tuple3f axis,
                   float angle)

rotateZ

public void rotateZ(float theta)