Blender V4.3
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 190 of file boundbox.h.

Constructor & Destructor Documentation

◆ BoundBox2D()

BoundBox2D::BoundBox2D ( )
inline

Definition at line 197 of file boundbox.h.

Member Function Documentation

◆ clamp()

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

Definition at line 251 of file boundbox.h.

References left, and result.

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

◆ height()

float BoundBox2D::height ( )
inline

Definition at line 210 of file boundbox.h.

References bottom.

◆ make_relative_to()

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

Definition at line 239 of file boundbox.h.

References left, and result.

Referenced by blender_camera_border_subset(), and blender_camera_from_view().

◆ operator*()

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

Definition at line 215 of file boundbox.h.

References left, and result.

◆ operator==()

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

Definition at line 199 of file boundbox.h.

◆ subset()

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

Definition at line 227 of file boundbox.h.

References bottom, left, right, subset(), and top.

Referenced by blender_camera_border_subset(), and subset().

◆ width()

float BoundBox2D::width ( )
inline

Definition at line 205 of file boundbox.h.

References left.

Member Data Documentation

◆ bottom

◆ left

◆ right

◆ top


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