DD::Image::Box2f Class Reference

Public Member Functions

 Box2f (float x, float y, float r, float t)
 
 Box2f (const Vector2 p)
 
 Box2f (const Vector2 p1, const Vector2 p2)
 
const Vector2 & min () const
 
const Vector2 & max () const
 
float x () const
 
void x (float v)
 
float y () const
 
void y (float v)
 
float r () const
 
void r (float v)
 
float t () const
 
void t (float v)
 
float w () const
 
float h () const
 
Vector2 center () const
 
void set (float x, float y, float r, float t)
 
void set (Vector2 p1, Vector2 p2)
 
void set (const Box2f &v)
 
void set_min (float x, float y)
 
void set_max (float x, float y)
 
bool contains (const Box2f &b) const
 
bool inside (const Vector2 &p) const
 
bool inside (float x, float y) const
 

Detailed Description

THIS SHOULD BE A TEMPLATE OF BOX!!!!!

Member Function Documentation

bool DD::Image::Box2f::contains ( const Box2f &  b) const
inline

Return true if b is inside this box.

bool DD::Image::Box2f::inside ( const Vector2 &  p) const
inline

Return true if the point is inside this box.

bool DD::Image::Box2f::inside ( float  x,
float  y 
) const
inline

Return true if the point is inside this box.



©2022 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk