C++ Java Unity
Unity Reference
OrientedBoundingBox Struct Reference

This struct defines an oriented rectangle. It is internally used for defining the oriented bounding box of two trackables More...

Public Member Functions

 OrientedBoundingBox (Vector2 center, Vector2 halfExtents, float rotation)
 

Properties

Vector2 Center [get]
 Get the center of the box More...
 
Vector2 HalfExtents [get]
 Get half width and height of the box More...
 
float Rotation [get]
 Get the counter clock wise rotation of the box in degrees with respect to the x axis More...
 

Detailed Description

This struct defines an oriented rectangle. It is internally used for defining the oriented bounding box of two trackables

Constructor & Destructor Documentation

OrientedBoundingBox ( Vector2  center,
Vector2  halfExtents,
float  rotation 
)

Property Documentation

Vector2 Center
get

Get the center of the box

Vector2 HalfExtents
get

Get half width and height of the box

float Rotation
get

Get the counter clock wise rotation of the box in degrees with respect to the x axis