|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.vecmath2.TexCoordf
org.openmali.vecmath2.TexCoord2f
public class TexCoord2f
A simple Texture-Coordinate implementation for 2 values.
The order is (s, t).
| Field Summary |
|---|
| Fields inherited from class org.openmali.vecmath2.TexCoordf |
|---|
isDirty, N, roTrick, values |
| Constructor Summary | |
|---|---|
TexCoord2f()
Creates a new TexCoord2f instance. |
|
TexCoord2f(boolean readOnly)
Creates a new TexCoord2f instance. |
|
TexCoord2f(boolean readOnly,
float[] values)
Creates a new TexCoord2f instance. |
|
TexCoord2f(boolean readOnly,
float s,
float t)
Creates a new TexCoord2f instance. |
|
TexCoord2f(boolean readOnly,
TexCoordf texCoord)
Creates a new TexCoord2f instance. |
|
TexCoord2f(float[] values)
Creates a new TexCoord2f instance. |
|
TexCoord2f(float s,
float t)
Creates a new TexCoord2f instance. |
|
TexCoord2f(TexCoordf texCoord)
Creates a new TexCoord2f instance. |
|
| Method Summary | |
|---|---|
TexCoord2f |
add(float s,
float t)
Adds the given parameters to this tuple's values. |
TexCoord2f |
addS(float v)
Adds v to this texCoord's S value. |
TexCoord2f |
addT(float v)
Adds v to this texCoord's T value. |
TexCoord2f |
clone()
Creates and returns a copy of this object. |
TexCoord2f |
div(float vs,
float vt)
Divides this texCoord's values by vs, vt. |
TexCoord2f |
divS(float v)
Divides this texCoord's S value by v. |
TexCoord2f |
divT(float v)
Divides this texCoord's T value by v. |
boolean |
equals(java.lang.Object o)
Returns true if the Object t1 is of type Tuple3f and all of the data members of t1 are equal to the corresponding data members in this Tuple3f. |
static TexCoord2f |
fromPool()
Allocates an TexCoord2f instance from the pool. |
static TexCoord2f |
fromPool(float s,
float t)
Allocates an TexCoord2f instance from the pool. |
float |
getS()
|
float |
getT()
|
TexCoord2f |
mul(float factor)
Sets the value of this tuple to the scalar multiplication of itself. |
TexCoord2f |
mul(float vs,
float vt)
Multiplies this texCoord's values with vs, vt. |
TexCoord2f |
mulS(float v)
Multiplies this texCoord's S value with v. |
TexCoord2f |
mulT(float v)
Multiplies this texCoord's T value with v. |
TexCoord2f |
set(float s,
float t)
Sets all values of this texCoord to the specified ones. |
TexCoord2f |
setS(float s)
Sets the S (1st) texCoord component. |
TexCoord2f |
setT(float t)
Sets the T (2nd) texCoord component. |
TexCoord2f |
sub(float s,
float t)
Subtracts the given parameters from this tuple's values. |
TexCoord2f |
subS(float v)
Subtracts v from this texCoord's S value. |
TexCoord2f |
subT(float v)
Subtracts v from this texCoord's T value. |
static void |
toPool(TexCoord2f o)
Stores the given TexCoord2f instance in the pool. |
| Methods inherited from class org.openmali.vecmath2.TexCoordf |
|---|
add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, deserialize, epsilonEquals, equals, get, get, getSerializationBufferSize, getSize, hashCode, interpolate, interpolate, isDirty, isReadOnly, newArray, readExternal, scaleAdd, scaleAdd, serialize, set, set, setClean, setZero, sub, sub, toString, writeExternal, writeToBuffer, writeToBuffer |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Constructor Detail |
|---|
public TexCoord2f(boolean readOnly,
float s,
float t)
readOnly - s - the S element to uset - the T element to use
public TexCoord2f(boolean readOnly,
float[] values)
readOnly - values - the values array (must be at least size 2)
public TexCoord2f(boolean readOnly,
TexCoordf texCoord)
readOnly - texCoord - the TexCoordf to copy the values frompublic TexCoord2f(boolean readOnly)
readOnly -
public TexCoord2f(float s,
float t)
s - the S element to uset - the T element to usepublic TexCoord2f(float[] values)
values - the values array (must be at least size 2)public TexCoord2f(TexCoordf texCoord)
texCoord - the TexCoordf to copy the values frompublic TexCoord2f()
| Method Detail |
|---|
public final TexCoord2f set(float s,
float t)
s - the s element to uset - the t element to use
public final TexCoord2f setS(float s)
public final float getS()
public final TexCoord2f setT(float t)
public final float getT()
public final TexCoord2f addS(float v)
v -
public final TexCoord2f addT(float v)
v -
public final TexCoord2f subS(float v)
v -
public final TexCoord2f subT(float v)
v -
public final TexCoord2f mulS(float v)
v -
public final TexCoord2f mulT(float v)
v -
public final TexCoord2f mul(float vs,
float vt)
vs - vt -
public final TexCoord2f mul(float factor)
factor - the scalar value
public final TexCoord2f divS(float v)
v -
public final TexCoord2f divT(float v)
v -
public final TexCoord2f div(float vs,
float vt)
vs - vt -
public final TexCoord2f add(float s,
float t)
s - t -
public final TexCoord2f sub(float s,
float t)
s - t -
public boolean equals(java.lang.Object o)
equals in class TexCoordfo - the Object with which the comparison is made
public TexCoord2f clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic static TexCoord2f fromPool()
public static TexCoord2f fromPool(float s,
float t)
public static void toPool(TexCoord2f o)
o -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||