|
||||||||||
| 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.TexCoord1f
public class TexCoord1f
A simple Texture-Coordinate implementation for 1 value.
The order is (s).
| Field Summary |
|---|
| Fields inherited from class org.openmali.vecmath2.TexCoordf |
|---|
isDirty, N, roTrick, values |
| Constructor Summary | |
|---|---|
TexCoord1f()
Creates a new TexCoord1f instance. |
|
TexCoord1f(boolean readOnly)
Creates a new TexCoord1f instance. |
|
TexCoord1f(boolean readOnly,
float s)
Creates a new TexCoord1f instance. |
|
TexCoord1f(boolean readOnly,
float[] values)
Creates a new TexCoord1f instance. |
|
TexCoord1f(boolean readOnly,
TexCoordf texCoord)
Creates a new TexCoord1f instance. |
|
TexCoord1f(float s)
Creates a new TexCoord1f instance. |
|
TexCoord1f(float[] values)
Creates a new TexCoord1f instance. |
|
TexCoord1f(TexCoordf texCoord)
Creates a new TexCoord1f instance. |
|
| Method Summary | |
|---|---|
TexCoord1f |
add(float s)
Adds the given parameters to this tuple's values. |
TexCoord1f |
addS(float v)
Adds v to this texCoord's S value. |
TexCoord1f |
clone()
Creates and returns a copy of this object. |
TexCoord1f |
div(float vs)
Divides this texCoord's values by vs. |
TexCoord1f |
divS(float v)
Divides this texCoord's S 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 TexCoord1f |
fromPool()
Allocates an TexCoord1f instance from the pool. |
static TexCoord1f |
fromPool(float s)
Allocates an TexCoord1f instance from the pool. |
float |
getS()
|
TexCoord1f |
mul(float vs)
Multiplies this texCoord's values with vs. |
TexCoord1f |
mulS(float v)
Multiplies this texCoord's S value with v. |
TexCoord1f |
set(float s)
Sets all values of this texCoord to the specified ones. |
TexCoord1f |
setS(float s)
Sets the S (1st) texCoord component. |
TexCoord1f |
sub(float s)
Subtracts the given parameters from this tuple's values. |
TexCoord1f |
subS(float v)
Subtracts v from this texCoord's S value. |
static void |
toPool(TexCoord1f o)
Stores the given TexCoord1f 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 TexCoord1f(boolean readOnly,
float s)
readOnly - s - the S element to use
public TexCoord1f(boolean readOnly,
float[] values)
readOnly - values - the values array (must be at least size 1)
public TexCoord1f(boolean readOnly,
TexCoordf texCoord)
readOnly - texCoord - the TexCoordf to copy the values frompublic TexCoord1f(boolean readOnly)
readOnly - public TexCoord1f(float s)
s - the S element to usepublic TexCoord1f(float[] values)
values - the values array (must be at least size 1)public TexCoord1f(TexCoordf texCoord)
texCoord - the TexCoordf to copy the values frompublic TexCoord1f()
| Method Detail |
|---|
public final TexCoord1f set(float s)
s - the s element to use
public final TexCoord1f setS(float s)
public final float getS()
public final TexCoord1f addS(float v)
v -
public final TexCoord1f subS(float v)
v -
public final TexCoord1f mulS(float v)
v -
public final TexCoord1f mul(float vs)
vs -
public final TexCoord1f divS(float v)
v -
public final TexCoord1f div(float vs)
vs -
public final TexCoord1f add(float s)
s -
public final TexCoord1f sub(float s)
s -
public boolean equals(java.lang.Object o)
equals in class TexCoordfo - the Object with which the comparison is made
public TexCoord1f clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic static TexCoord1f fromPool()
public static TexCoord1f fromPool(float s)
public static void toPool(TexCoord1f o)
o -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||