Skip to content

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.

ReturnsSignatureSummary
ObjTextureCoordinateof(float u, float v) factoryCreates the coordinate u, v, with w at 0F.
ObjTextureCoordinateof(float u, float v, float w) factoryCreates the coordinate u, v, w.

ReturnsSignatureSummary
floatgetU()Returns the horizontal coordinate, 0F at the left of the texture.
floatgetV()Returns the vertical coordinate; ObjModel flips the vt value of the file so that 0F is the top of the texture.
floatgetW()Returns the depth coordinate of a 3D texture, read from the file and unused when drawing.

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.

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

Report a problem with this page