public class EntitySize
extends java.lang.Object
Constructor and Description |
---|
EntitySize(float widthIn,
float heightIn,
boolean fixedIn) |
Modifier and Type | Method and Description |
---|---|
static EntitySize |
fixed(float widthIn,
float heightIn) |
static EntitySize |
flexible(float widthIn,
float heightIn) |
EntitySize |
scale(float factor) |
EntitySize |
scale(float widthFactor,
float heightFactor) |
java.lang.String |
toString() |
public final float width
public final float height
public final boolean fixed
public EntitySize scale(float factor)
public EntitySize scale(float widthFactor, float heightFactor)
public static EntitySize flexible(float widthIn, float heightIn)
public static EntitySize fixed(float widthIn, float heightIn)
public java.lang.String toString()
toString
in class java.lang.Object