Blender  V3.3
Public Member Functions | Public Attributes | List of all members
BoundBox2D Class Reference

#include <boundbox.h>

Public Member Functions

 BoundBox2D ()
 
bool operator== (const BoundBox2D &other) const
 
float width ()
 
float height ()
 
BoundBox2D operator* (float f) const
 
BoundBox2D subset (const BoundBox2D &other) const
 
BoundBox2D make_relative_to (const BoundBox2D &other) const
 
BoundBox2D clamp (float mn=0.0f, float mx=1.0f)
 

Public Attributes

float left
 
float right
 
float bottom
 
float top
 

Detailed Description

Definition at line 191 of file boundbox.h.

Constructor & Destructor Documentation

◆ BoundBox2D()

BoundBox2D::BoundBox2D ( )
inline

Definition at line 198 of file boundbox.h.

Member Function Documentation

◆ clamp()

BoundBox2D BoundBox2D::clamp ( float  mn = 0.0f,
float  mx = 1.0f 
)
inline

Definition at line 254 of file boundbox.h.

References bottom, blender::math::clamp(), left, result, right, and top.

Referenced by blender_camera_border(), and BlenderSync::get_buffer_params().

◆ height()

float BoundBox2D::height ( void  )
inline

Definition at line 213 of file boundbox.h.

References bottom, and top.

◆ make_relative_to()

BoundBox2D BoundBox2D::make_relative_to ( const BoundBox2D other) const
inline

Definition at line 242 of file boundbox.h.

References bottom, left, result, right, and top.

Referenced by blender_camera_border_subset(), and blender_camera_from_view().

◆ operator*()

BoundBox2D BoundBox2D::operator* ( float  f) const
inline

Definition at line 218 of file boundbox.h.

References bottom, left, result, right, and top.

◆ operator==()

bool BoundBox2D::operator== ( const BoundBox2D other) const
inline

Definition at line 202 of file boundbox.h.

References bottom, left, right, and top.

◆ subset()

BoundBox2D BoundBox2D::subset ( const BoundBox2D other) const
inline

Definition at line 230 of file boundbox.h.

References bottom, left, right, and top.

Referenced by blender_camera_border_subset().

◆ width()

float BoundBox2D::width ( void  )
inline

Definition at line 208 of file boundbox.h.

References left, and right.

Member Data Documentation

◆ bottom

float BoundBox2D::bottom

◆ left

float BoundBox2D::left

◆ right

float BoundBox2D::right

◆ top

float BoundBox2D::top

The documentation for this class was generated from the following file: