Blender  V2.93
Public Member Functions | Public Attributes | List of all members
BoundBox2D Class Reference

#include <util_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 204 of file util_boundbox.h.

Constructor & Destructor Documentation

◆ BoundBox2D()

BoundBox2D::BoundBox2D ( )
inline

Definition at line 211 of file util_boundbox.h.

Member Function Documentation

◆ clamp()

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

Definition at line 267 of file util_boundbox.h.

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

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

◆ height()

float BoundBox2D::height ( )
inline

Definition at line 226 of file util_boundbox.h.

References bottom, and top.

◆ make_relative_to()

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

Definition at line 255 of file util_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 231 of file util_boundbox.h.

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

◆ operator==()

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

Definition at line 215 of file util_boundbox.h.

References bottom, left, right, and top.

◆ subset()

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

Definition at line 243 of file util_boundbox.h.

References bottom, left, right, and top.

Referenced by blender_camera_border_subset().

◆ width()

float BoundBox2D::width ( )
inline

Definition at line 221 of file util_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: