| Modifier and Type | Method and Description |
|---|---|
static FloatTuple |
FloatTuples.copy(FloatTuple other)
Create a copy of the given
FloatTuple |
static FloatTuple |
FloatTuples.create(float x)
Create a new
FloatTuple with the given coordinate |
static FloatTuple |
FloatTuples.create(float x,
float y)
Create a new
FloatTuple with the given coordinates |
static FloatTuple |
FloatTuples.create(float x,
float y,
float z)
Create a new
FloatTuple with the given coordinates |
static FloatTuple |
FloatTuples.create(float x,
float y,
float z,
float w)
Create a new
FloatTuple with the given coordinates |
FloatTuple |
Mtl.getKa()
Returns the ambient component of the material
|
FloatTuple |
Mtl.getKd()
Returns the diffuse component of the material
|
FloatTuple |
Mtl.getKs()
Returns the specular component of the material
|
FloatTuple |
ReadableObj.getNormal(int index)
Returns the normal with the given index.
|
FloatTuple |
ReadableObj.getTexCoord(int index)
Returns the texture coordinate with the given index.
|
FloatTuple |
ReadableObj.getVertex(int index)
Returns the vertex with the given index.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WritableObj.addNormal(FloatTuple normal)
Add the given normal
|
void |
BasicWritableObj.addNormal(FloatTuple normal) |
void |
AbstractWritableObj.addNormal(FloatTuple normal) |
void |
WritableObj.addTexCoord(FloatTuple texCoord)
Add the given texture coordinate
|
void |
BasicWritableObj.addTexCoord(FloatTuple texCoord) |
void |
AbstractWritableObj.addTexCoord(FloatTuple texCoord) |
void |
WritableObj.addVertex(FloatTuple vertex)
Add the given vertex
|
void |
BasicWritableObj.addVertex(FloatTuple vertex) |
void |
AbstractWritableObj.addVertex(FloatTuple vertex) |
static FloatTuple |
FloatTuples.copy(FloatTuple other)
Create a copy of the given
FloatTuple |
static String |
FloatTuples.createString(FloatTuple tuple)
Returns the string for the given tuple that is used for representing
the given tuple in an OBJ file
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicWritableObj.setNormalConsumer(java.util.function.Consumer<? super FloatTuple> normalConsumer)
Set the normal consumer
|
void |
BasicWritableObj.setTexCoordConsumer(java.util.function.Consumer<? super FloatTuple> texCoordConsumer)
Set the texture coordinate consumer
|
void |
BasicWritableObj.setVertexConsumer(java.util.function.Consumer<? super FloatTuple> vertexConsumer)
Set the vertex consumer
|
Copyright © 2018. All rights reserved.