|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.utils.obj.impl.DefaultFloatTuple
public class DefaultFloatTuple
Default implementation of a FloatTuple
| Constructor Summary | |
|---|---|
DefaultFloatTuple(float x)
Creates a new DefaultFloatTuple with the given value |
|
DefaultFloatTuple(float x,
float y)
Creates a new DefaultFloatTuple with the given values |
|
DefaultFloatTuple(float x,
float y,
float z)
Creates a new DefaultFloatTuple with the given values |
|
DefaultFloatTuple(float x,
float y,
float z,
float w)
Creates a new DefaultFloatTuple with the given values |
|
DefaultFloatTuple(float x,
float y,
float z,
float w,
int dimensions)
Creates a new DefaultFloatTuple with the given values |
|
DefaultFloatTuple(FloatTuple other)
Copy constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
float |
get(int index)
Return the specified component of this tuple |
int |
getDimensions()
Return the dimensions of this tuple |
float |
getW()
Return the w-component of this tuple |
float |
getX()
Return the x-component of this tuple |
float |
getY()
Return the y-component of this tuple |
float |
getZ()
Return the z-component of this tuple |
int |
hashCode()
|
void |
setW(float w)
Set the given component of this tuple |
void |
setX(float x)
Set the given component of this tuple |
void |
setY(float y)
Set the given component of this tuple |
void |
setZ(float z)
Set the given component of this tuple |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFloatTuple(float x,
float y,
float z,
float w,
int dimensions)
x - The x valuey - The y valuez - The z valuew - The w valuedimensions - The dimensions
public DefaultFloatTuple(float x,
float y,
float z,
float w)
x - The x valuey - The y valuez - The z valuew - The w value
public DefaultFloatTuple(float x,
float y,
float z)
x - The x valuey - The y valuez - The z value
public DefaultFloatTuple(float x,
float y)
x - The x valuey - The y valuepublic DefaultFloatTuple(float x)
x - The x valuepublic DefaultFloatTuple(FloatTuple other)
other - The other FloatTuple| Method Detail |
|---|
public float get(int index)
FloatTuple
get in interface FloatTupleindex - The index of the component
public float getX()
FloatTuple
getX in interface FloatTuplepublic void setX(float x)
x - The component to setpublic float getY()
FloatTuple
getY in interface FloatTuplepublic void setY(float y)
y - The component to setpublic float getZ()
FloatTuple
getZ in interface FloatTuplepublic void setZ(float z)
z - The component to setpublic float getW()
FloatTuple
getW in interface FloatTuplepublic void setW(float w)
w - The component to setpublic int getDimensions()
FloatTuple
getDimensions in interface FloatTuplepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||