Wikitude ARchitect v2.0 API Documentation

Wikitude ARchitect > AR > BoundingRectangle
Filters

Class BoundingRectangle

A BoundingRectangle delivers information on the size of a Drawable2D on the screen.

The Bounding Rectangle of a Drawable2D is defined as follows:
  • The Bounding Rectangle has it's edges parallel to the screen's edges.
  • The Bounding Rectangle fully contains the Drawable2D
  • The Bounding Rectangle of the Drawable2D is the smallest rectangle containing the Drawable2D.
BoundingRectangle must not be directly instantiated by the developer.

Methods

getHeight

float getHeight ( )
Returns the height of the Drawable2D, in SDUs, after applying translations on the Drawable2D.

Important:
getHeight() does not deliver the actual height of the Drawable2D on the screen.
Returns: float
The height of the BoundingRectangle in SDUs.

getWidth

float getWidth ( )
Returns the width of the Drawable2D, in SDUs, after applying translations on the Drawable2D.

Important:
getWidth() does not deliver the actual width of the Drawable2D on the screen.
Returns: float
The width of the BoundingRectangle in SDUs.


Copyright © 2013 Wikitude GmbH. All rights reserved.