org.openmali.types.twodee
Interface Sized2fRO

All Known Subinterfaces:
ExtSized2f, Sized2f
All Known Implementing Classes:
Dim2f, ExtDim2f

public interface Sized2fRO

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


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

Method Detail

getWidth

float getWidth()
Returns:
the width

getHeight

float getHeight()
Returns:
the height

getAspect

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