Box2 Class Reference

Class Description

Describes a 2D rectangular region using integer coordinates.
+ Inheritance diagram for Box2:

Public Member Functions

def Contains (self, args)
 
def GetCenter (self)
 
def GetH (self)
 
def GetMax (self)
 
def GetMin (self)
 
def GetW (self)
 
def GetX (self)
 
def GetY (self)
 
def IsEmpty (self)
 
def Rectify (self)
 
def Scale (self, args)
 
def SetEmpty (self)
 
def SetH (self, args)
 
def SetW (self, args)
 
def SetWH (self, args)
 
def SetX (self, args)
 
def SetXY (self, args)
 
def SetY (self, args)
 
def Translate (self, args)
 
- Public Member Functions inherited from Wrapper
def GetUnwrappedPtr (self)
 

Public Attributes

 this
 

Static Public Attributes

tuple H = _swig_property(GetH, SetH)
 
tuple thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 
tuple W = _swig_property(GetW, SetW)
 
tuple X = _swig_property(GetX, SetX)
 
tuple Y = _swig_property(GetY, SetY)
 
- Static Public Attributes inherited from Wrapper
tuple thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
 

Member Function Documentation

def Contains (   self,
  args 
)
Contains(Box2 self, IPoint2 p) -> bool
def GetCenter (   self)
GetCenter(Box2 self) -> IPoint2
def GetH (   self)
GetH(Box2 self) -> int
def GetMax (   self)
GetMax(Box2 self) -> IPoint2
def GetMin (   self)
GetMin(Box2 self) -> IPoint2
def GetW (   self)
GetW(Box2 self) -> int
def GetX (   self)
GetX(Box2 self) -> int
def GetY (   self)
GetY(Box2 self) -> int
def IsEmpty (   self)
IsEmpty(Box2 self) -> int
def Rectify (   self)
Rectify(Box2 self)
def Scale (   self,
  args 
)
Scale(Box2 self, float f)
def SetEmpty (   self)
SetEmpty(Box2 self)
def SetH (   self,
  args 
)
SetH(Box2 self, int h)
def SetW (   self,
  args 
)
SetW(Box2 self, int w)
def SetWH (   self,
  args 
)
SetWH(Box2 self, int w, int h)
def SetX (   self,
  args 
)
SetX(Box2 self, int x)
def SetXY (   self,
  args 
)
SetXY(Box2 self, int x, int y)
def SetY (   self,
  args 
)
SetY(Box2 self, int y)
def Translate (   self,
  args 
)
Translate(Box2 self, IPoint2 t)