org.gljava.opengl.model
Class Vector

java.lang.Object
  extended by org.gljava.opengl.model.Vector

public class Vector
extends java.lang.Object

A Vector for describing a point in 3D space.

Version:
$Id: Vector.java,v 1.1 2005/02/10 04:18:42 ivan_ganza Exp $
Author:
Ivan Z. Ganza

Field Summary
 float x
           
 float y
           
 float z
           
 
Constructor Summary
Vector(float x, float y, float z)
           
 
Method Summary
 float getX()
          Gets the value of x
 float getY()
          Gets the value of y
 float getZ()
          Gets the value of z
(package private)  float norm()
           
(package private)  void normalize()
           
 void setX(float argX)
          Sets the value of x
 void setY(float argY)
          Sets the value of y
 void setZ(float argZ)
          Sets the value of z
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

z

public float z
Constructor Detail

Vector

public Vector(float x,
              float y,
              float z)
Method Detail

norm

float norm()

normalize

void normalize()

getX

public float getX()
Gets the value of x

Returns:
the value of x

setX

public void setX(float argX)
Sets the value of x

Parameters:
argX - Value to assign to this.x

getY

public float getY()
Gets the value of y

Returns:
the value of y

setY

public void setY(float argY)
Sets the value of y

Parameters:
argY - Value to assign to this.y

getZ

public float getZ()
Gets the value of z

Returns:
the value of z

setZ

public void setZ(float argZ)
Sets the value of z

Parameters:
argZ - Value to assign to this.z