com.jhlabs.vecmath
Class Vector4f

java.lang.Object
  extended by com.jhlabs.vecmath.Tuple4f
      extended by com.jhlabs.vecmath.Vector4f

public class Vector4f
extends Tuple4f

Vector math package, converted to look similar to javax.vecmath.


Field Summary
 
Fields inherited from class com.jhlabs.vecmath.Tuple4f
w, x, y, z
 
Constructor Summary
Vector4f()
           
Vector4f(float[] x)
           
Vector4f(float x, float y, float z, float w)
           
Vector4f(Tuple4f t)
           
Vector4f(Vector4f t)
           
 
Method Summary
 float dot(Vector4f v)
           
 float length()
           
 void normalize()
           
 
Methods inherited from class com.jhlabs.vecmath.Tuple4f
absolute, absolute, add, add, clamp, get, get, interpolate, negate, negate, scale, set, set, set, sub, sub, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vector4f

public Vector4f()

Vector4f

public Vector4f(float[] x)

Vector4f

public Vector4f(float x,
                float y,
                float z,
                float w)

Vector4f

public Vector4f(Vector4f t)

Vector4f

public Vector4f(Tuple4f t)
Method Detail

dot

public float dot(Vector4f v)

length

public float length()

normalize

public void normalize()