org.openmali.types.twodee
Interface Sized2iRO

All Known Subinterfaces:
Sized2i
All Known Implementing Classes:
Rect2i

public interface Sized2iRO

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

Author:
Marvin Froehlich (aka Qudus)

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.