ObjTextureCoordinate
final class ObjTextureCoordinate
Package: dev.joid.lib.obj.data · Module: core · Source: ObjTextureCoordinate.java
A texture coordinate of an ObjModel, on 1 of the texture.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
ObjTextureCoordinate | of(float u, float v) factory | Creates the coordinate u, v, with w at 0F. |
ObjTextureCoordinate | of(float u, float v, float w) factory | Creates the coordinate u, v, w. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
float | getU() | Returns the horizontal coordinate, 0F at the left of the texture. |
float | getV() | Returns the vertical coordinate; ObjModel flips the vt value of the file so that 0F is the top of the texture. |
float | getW() | Returns the depth coordinate of a 3D texture, read from the file and unused when drawing. |
Creation details
Section titled “Creation details”ObjTextureCoordinate of(float u, float v) factory
Creates the coordinate u, v, with w at 0F.
ObjTextureCoordinate of(float u, float v, float w) factory
Creates the coordinate u, v, w.
Method details
Section titled “Method details”float getU()
Returns the horizontal coordinate, 0F at the left of the texture.
float getV()
Returns the vertical coordinate; ObjModel flips the vt value of the file so that 0F is the top of the texture.
float getW()
Returns the depth coordinate of a 3D texture, read from the file and unused when drawing.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
