org.gljava.opengl.model

Class Vector

public class Vector extends 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
floatx
floaty
floatz
Constructor Summary
Vector(float x, float y, float z)
Method Summary
floatgetX()
Gets the value of x
floatgetY()
Gets the value of y
floatgetZ()
Gets the value of z
floatnorm()
voidnormalize()
voidsetX(float argX)
Sets the value of x
voidsetY(float argY)
Sets the value of y
voidsetZ(float argZ)
Sets the value of z

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

getX

public float getX()
Gets the value of x

Returns: the value of x

getY

public float getY()
Gets the value of y

Returns: the value of y

getZ

public float getZ()
Gets the value of z

Returns: the value of z

norm

float norm()

normalize

void normalize()

setX

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

Parameters: argX Value to assign to this.x

setY

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

Parameters: argY Value to assign to this.y

setZ

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

Parameters: argZ Value to assign to this.z