BOUNDINGBOX Struct Reference

The bounding box over the type. More...

#include <itype.h>

List of all members.

Public Member Functions

HGL::Type::BaseVector2D getAspectRatio () const
 Calculates the aspect ratio of the type.
HGL::Type::BaseVector2D getCentroid () const
 Calculates the centroid of the bounding box.
float getHeight () const
 Calculates the height of the bounding box.
float getWidth () const
 Calculates the width of the bounding box.
bool isDefined () const
 Checks if the bounding box is defined (i.e. yet calculated).

Detailed Description

The bounding box over the type.

Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Member Function Documentation

HGL::Type::BaseVector2D BOUNDINGBOX::getAspectRatio (  )  const

Calculates the aspect ratio of the type.

Returns:
the aspect ratio
HGL::Type::BaseVector2D BOUNDINGBOX::getCentroid (  )  const

Calculates the centroid of the bounding box.

Returns:
the centroid of the bounding box
float BOUNDINGBOX::getHeight (  )  const

Calculates the height of the bounding box.

Returns:
the height of the bounding box
float BOUNDINGBOX::getWidth (  )  const

Calculates the width of the bounding box.

Returns:
the width of the bounding box
bool BOUNDINGBOX::isDefined (  )  const

Checks if the bounding box is defined (i.e. yet calculated).

Returns:
true if the bounding box is defined, false otherwise

Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1