|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 dimensionspublic DefaultFloatTuple(float x, float y, float z, float w)
x
- The x valuey
- The y valuez
- The z valuew
- The w valuepublic DefaultFloatTuple(float x, float y, float z)
x
- The x valuey
- The y valuez
- The z valuepublic 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 FloatTupleMethod Detail |
---|
public float get(int index)
FloatTuple
get
in interface FloatTuple
index
- The index of the component
public float getX()
FloatTuple
getX
in interface FloatTuple
public void setX(float x)
x
- The component to setpublic float getY()
FloatTuple
getY
in interface FloatTuple
public void setY(float y)
y
- The component to setpublic float getZ()
FloatTuple
getZ
in interface FloatTuple
public void setZ(float z)
z
- The component to setpublic float getW()
FloatTuple
getW
in interface FloatTuple
public void setW(float w)
w
- The component to setpublic int getDimensions()
FloatTuple
getDimensions
in interface FloatTuple
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |