org.openmali.types.twodee
Interface Sized2iRO

All Known Subinterfaces:
ExtSized2i, Sized2i
All Known Implementing Classes:
Dim2i, ExtDim2i, ExtRect2i, Rect2i

public interface Sized2iRO

A Sized2iRO class provides getters but no setters for the size.


Method Summary
 float getAspect()
           
 int getHeight()
           
 int getWidth()
           
 

Method Detail

getWidth

int getWidth()
Returns:
the width

getHeight

int getHeight()
Returns:
the height

getAspect

float getAspect()
Returns:
the aspect ratio calculated by (getWidth() / getHeight()). If getHeight() is 0, 0 is returned.