Modifier and Type | Field and Description |
---|---|
IExpressionNode.INodeDouble |
height |
java.util.function.Supplier<java.lang.String> |
location |
IExpressionNode.INodeDouble |
uMin |
IExpressionNode.INodeDouble |
vMin |
IExpressionNode.INodeDouble |
width |
Constructor and Description |
---|
SpriteChanging(java.util.function.Supplier<java.lang.String> location,
IExpressionNode.INodeDouble xMin,
IExpressionNode.INodeDouble yMin,
IExpressionNode.INodeDouble width,
IExpressionNode.INodeDouble height) |
Modifier and Type | Method and Description |
---|---|
void |
bindTexture()
Binds this sprites backing texture so that this sprite will be referenced when you use the results of
ISprite.getInterpU(double) and ISprite.getInterpV(double) |
double |
getInterpU(double u) |
double |
getInterpV(double v) |
public final java.util.function.Supplier<java.lang.String> location
public final IExpressionNode.INodeDouble uMin
public final IExpressionNode.INodeDouble vMin
public final IExpressionNode.INodeDouble width
public final IExpressionNode.INodeDouble height
public SpriteChanging(java.util.function.Supplier<java.lang.String> location, IExpressionNode.INodeDouble xMin, IExpressionNode.INodeDouble yMin, IExpressionNode.INodeDouble width, IExpressionNode.INodeDouble height)
public void bindTexture()
ISprite
ISprite.getInterpU(double)
and ISprite.getInterpV(double)
bindTexture
in interface ISprite
public double getInterpU(double u)
getInterpU
in interface ISprite
u
- A value between 0 and 1public double getInterpV(double v)
getInterpV
in interface ISprite
v
- A value between 0 and 1