Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Math.AxisAlignedBox2D.AxisAlignedBox2D Class Reference

Public Member Functions

None __init__ (self, numpy.ndarray minimum, numpy.ndarray maximum)
"AxisAlignedBox2D" __iadd__ (self, object other)
float width (self)
float height (self)
float left (self)
float right (self)
float bottom (self)
float top (self)
bool isValid (self)
str __repr__ (self)

Protected Attributes

 _min = numpy.array([min(minimum[0], maximum[0]), min(minimum[1], maximum[1])])
 _max = numpy.array([max(minimum[0], maximum[0]), max(minimum[1], maximum[1])])

Detailed Description

Axis aligned 2D bounding box.

Member Function Documentation

◆ isValid()

bool UM.Math.AxisAlignedBox2D.AxisAlignedBox2D.isValid ( self)
Check if the bounding box is valid.
Uses fuzzycompare to validate.
:sa Float::fuzzyCompare()

The documentation for this class was generated from the following file:
  • UM/Math/AxisAlignedBox2D.py