|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gljava.opengl.model.Vector
public class Vector
A Vector for describing a point in 3D space.
| 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 |
|---|
public float x
public float y
public float z
| Constructor Detail |
|---|
public Vector(float x,
float y,
float z)
| Method Detail |
|---|
float norm()
void normalize()
public float getX()
public void setX(float argX)
argX - Value to assign to this.xpublic float getY()
public void setY(float argY)
argY - Value to assign to this.ypublic float getZ()
public void setZ(float argZ)
argZ - Value to assign to this.z
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||