3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.rect Class Reference

Public Member Functions

 __init__ (self)
 
 __init__ (self, rect v)
 
bool __eq__ (self, rect _0)
 
bool __ne__ (self, rect _0)
 
 Set (self, float MinX, float MinY, float MaxX, float MaxY)
 
 Set (self, vec2 Min, vec2 Max)
 
float x (self)
 
float y (self)
 
float width (self)
 
float height (self)
 
 SetLeft (self, float Left)
 
 AlignLeft (self, float X)
 
 SetTop (self, float Top)
 
 AlignTop (self, float Y)
 
 SetRight (self, float Right)
 
 AlignRight (self, float X)
 
 SetBottom (self, float Bottom)
 
 AlignBottom (self, float Y)
 
 AlignInside (self, rect Parent)
 
vec2 GetTopLeft (self)
 TopLeft.
 
 SetTopLeft (self, float X, float Y)
 
 SetTopLeft (self, vec2 TopLeft)
 
 AlignTopLeft (self, float X, float Y)
 
 AlignTopLeft (self, vec2 TopLeft)
 
vec2 GetTopCenter (self)
 
 AlignTopCenter (self, float X, float Y)
 
 AlignTopCenter (self, vec2 TopCenter)
 
vec2 GetTopRight (self)
 
 SetTopRight (self, float X, float Y)
 
 SetTopRight (self, vec2 TopRight)
 
 AlignTopRight (self, float X, float Y)
 
 AlignTopRight (self, vec2 TopRight)
 
vec2 GetMiddleLeft (self)
 
 AlignMiddleLeft (self, float X, float Y)
 
 AlignMiddleLeft (self, vec2 MiddleLeft)
 
vec2 GetMiddleCenter (self)
 
 AlignMiddleCenter (self, float X, float Y)
 
 AlignMiddleCenter (self, vec2 MiddleCenter)
 
vec2 GetMiddleRight (self)
 
 AlignMiddleRight (self, float X, float Y)
 
 AlignMiddleRight (self, vec2 MiddleRight)
 
vec2 GetBottomLeft (self)
 
 SetBottomLeft (self, float X, float Y)
 
 SetBottomLeft (self, vec2 BottomLeft)
 
 AlignBottomLeft (self, float X, float Y)
 
 AlignBottomLeft (self, vec2 BottomLeft)
 
vec2 GetBottomCenter (self)
 
 AlignBottomCenter (self, float X, float Y)
 
 AlignBottomCenter (self, vec2 BottomCenter)
 
vec2 GetBottomRight (self)
 
 SetBottomRight (self, float X, float Y)
 
 SetBottomRight (self, vec2 BottomRight)
 
 AlignBottomRight (self, float X, float Y)
 
 AlignBottomRight (self, vec2 BottomRight)
 
vec2 GetPoint (self, int Align)
 
 AlignPoint (self, int Align, float X, float Y)
 
 AlignPoint (self, int Align, vec2 With)
 
 AlignPoint (self, int Align, rect Parent)
 
int GetDockingAlign (self, rect Child, rect DockingRegion=None, vec2 RelPos=None)
 GetDocking { Align, CRegion }.
 
rect GetDockingRegion (self, rect Child, int Align)
 
int GetDockingAlign (self, vec2 Child, rect DockingRegion=None, vec2 RelPos=None)
 
rect GetDockingRegion (self, vec2 Child, int Align)
 
float GetLeft (self)
 
float GetTop (self)
 
float GetRight (self)
 
float GetBottom (self)
 
float GetWidth (self)
 
float GetHeight (self)
 
 SetWidth (self, int HoldPoint, float Width)
 
 SetHeight (self, int HoldPoint, float Height)
 
vec2 GetSize (self)
 
 SetSize (self, float MinX, float MinY, float Width, float Height)
 
 SetSize (self, vec2 Min, vec2 Size)
 
 SetSize (self, int HoldPoint, float Width, float Height)
 
 SetSize (self, int HoldPoint, vec2 Size)
 
 SetSize (self, int HoldPoint, float Side)
 
float GetCenterX (self)
 
float GetCenterY (self)
 
 AlignCenterX (self, float X)
 
 AlignCenterY (self, float Y)
 
 Inflate (self, float DeltaXY)
 
 Inflate (self, float DeltaX, float DeltaY)
 
 Inflate (self, vec2 Delta)
 
 SetToPoint (self, float X, float Y)
 
 SetToPoint (self, vec2 P)
 
vec2 ProjectPoint (self, vec2 _0)
 
bool AddPoint (self, float X, float Y)
 Returns closest point within rectangle.
 
bool AddPoint (self, vec2 P)
 
bool AddRect (self, rect Rc)
 
 Translate (self, float DeltaX, float DeltaY)
 Returns "true" if this rectangle is expanded.
 
 Translate (self, vec2 Delta)
 
bool Contains (self, float X, float Y)
 
bool Contains (self, vec2 P)
 
bool Contains (self, rect Rc)
 
bool IntersectsWith (self, rect Rc)
 
 Transform (self, mat3 R)
 
 __imul__ (self, mat3 R)
 
 Transform (self, mat4 T)
 
 __imul__ (self, mat4 T)
 
rect __mul__ (self, mat3 R)
 
rect __mul__ (self, mat4 T)
 
rect ToRound (self)
 
 Round (self)
 
bool IsEmpty (self)
 
 SetEmpty (self)
 
 SetZero (self)
 

Static Public Member Functions

bool Equals (rect _0, rect _1, float Eps)
 
rect Union (rect l, rect r)
 
rect Intersect (rect l, rect r)
 
rect Inscribe (rect What, rect Where)
 

Constructor & Destructor Documentation

◆ __init__() [1/2]

coat.rect.__init__ ( self)

◆ __init__() [2/2]

coat.rect.__init__ ( self,
rect v )

Member Function Documentation

◆ __eq__()

bool coat.rect.__eq__ ( self,
rect _0 )

◆ __imul__() [1/2]

coat.rect.__imul__ ( self,
mat3 R )

◆ __imul__() [2/2]

coat.rect.__imul__ ( self,
mat4 T )

◆ __mul__() [1/2]

rect coat.rect.__mul__ ( self,
mat3 R )

◆ __mul__() [2/2]

rect coat.rect.__mul__ ( self,
mat4 T )

◆ __ne__()

bool coat.rect.__ne__ ( self,
rect _0 )

◆ AddPoint() [1/2]

bool coat.rect.AddPoint ( self,
float X,
float Y )

Returns closest point within rectangle.

◆ AddPoint() [2/2]

bool coat.rect.AddPoint ( self,
vec2 P )

◆ AddRect()

bool coat.rect.AddRect ( self,
rect Rc )

◆ AlignBottom()

coat.rect.AlignBottom ( self,
float Y )

◆ AlignBottomCenter() [1/2]

coat.rect.AlignBottomCenter ( self,
float X,
float Y )

◆ AlignBottomCenter() [2/2]

coat.rect.AlignBottomCenter ( self,
vec2 BottomCenter )

◆ AlignBottomLeft() [1/2]

coat.rect.AlignBottomLeft ( self,
float X,
float Y )

◆ AlignBottomLeft() [2/2]

coat.rect.AlignBottomLeft ( self,
vec2 BottomLeft )

◆ AlignBottomRight() [1/2]

coat.rect.AlignBottomRight ( self,
float X,
float Y )

◆ AlignBottomRight() [2/2]

coat.rect.AlignBottomRight ( self,
vec2 BottomRight )

◆ AlignCenterX()

coat.rect.AlignCenterX ( self,
float X )

◆ AlignCenterY()

coat.rect.AlignCenterY ( self,
float Y )

◆ AlignInside()

coat.rect.AlignInside ( self,
rect Parent )

◆ AlignLeft()

coat.rect.AlignLeft ( self,
float X )

◆ AlignMiddleCenter() [1/2]

coat.rect.AlignMiddleCenter ( self,
float X,
float Y )

◆ AlignMiddleCenter() [2/2]

coat.rect.AlignMiddleCenter ( self,
vec2 MiddleCenter )

◆ AlignMiddleLeft() [1/2]

coat.rect.AlignMiddleLeft ( self,
float X,
float Y )

◆ AlignMiddleLeft() [2/2]

coat.rect.AlignMiddleLeft ( self,
vec2 MiddleLeft )

◆ AlignMiddleRight() [1/2]

coat.rect.AlignMiddleRight ( self,
float X,
float Y )

◆ AlignMiddleRight() [2/2]

coat.rect.AlignMiddleRight ( self,
vec2 MiddleRight )

◆ AlignPoint() [1/3]

coat.rect.AlignPoint ( self,
int Align,
float X,
float Y )

◆ AlignPoint() [2/3]

coat.rect.AlignPoint ( self,
int Align,
rect Parent )

◆ AlignPoint() [3/3]

coat.rect.AlignPoint ( self,
int Align,
vec2 With )

◆ AlignRight()

coat.rect.AlignRight ( self,
float X )

◆ AlignTop()

coat.rect.AlignTop ( self,
float Y )

◆ AlignTopCenter() [1/2]

coat.rect.AlignTopCenter ( self,
float X,
float Y )

◆ AlignTopCenter() [2/2]

coat.rect.AlignTopCenter ( self,
vec2 TopCenter )

◆ AlignTopLeft() [1/2]

coat.rect.AlignTopLeft ( self,
float X,
float Y )

◆ AlignTopLeft() [2/2]

coat.rect.AlignTopLeft ( self,
vec2 TopLeft )

◆ AlignTopRight() [1/2]

coat.rect.AlignTopRight ( self,
float X,
float Y )

◆ AlignTopRight() [2/2]

coat.rect.AlignTopRight ( self,
vec2 TopRight )

◆ Contains() [1/3]

bool coat.rect.Contains ( self,
float X,
float Y )

◆ Contains() [2/3]

bool coat.rect.Contains ( self,
rect Rc )

◆ Contains() [3/3]

bool coat.rect.Contains ( self,
vec2 P )

◆ Equals()

bool coat.rect.Equals ( rect _0,
rect _1,
float Eps )
static

◆ GetBottom()

float coat.rect.GetBottom ( self)

◆ GetBottomCenter()

vec2 coat.rect.GetBottomCenter ( self)

◆ GetBottomLeft()

vec2 coat.rect.GetBottomLeft ( self)

◆ GetBottomRight()

vec2 coat.rect.GetBottomRight ( self)

◆ GetCenterX()

float coat.rect.GetCenterX ( self)

◆ GetCenterY()

float coat.rect.GetCenterY ( self)

◆ GetDockingAlign() [1/2]

int coat.rect.GetDockingAlign ( self,
rect Child,
rect DockingRegion = None,
vec2 RelPos = None )

GetDocking { Align, CRegion }.

◆ GetDockingAlign() [2/2]

int coat.rect.GetDockingAlign ( self,
vec2 Child,
rect DockingRegion = None,
vec2 RelPos = None )

◆ GetDockingRegion() [1/2]

rect coat.rect.GetDockingRegion ( self,
rect Child,
int Align )

◆ GetDockingRegion() [2/2]

rect coat.rect.GetDockingRegion ( self,
vec2 Child,
int Align )

◆ GetHeight()

float coat.rect.GetHeight ( self)

◆ GetLeft()

float coat.rect.GetLeft ( self)

◆ GetMiddleCenter()

vec2 coat.rect.GetMiddleCenter ( self)

◆ GetMiddleLeft()

vec2 coat.rect.GetMiddleLeft ( self)

◆ GetMiddleRight()

vec2 coat.rect.GetMiddleRight ( self)

◆ GetPoint()

vec2 coat.rect.GetPoint ( self,
int Align )

◆ GetRight()

float coat.rect.GetRight ( self)

◆ GetSize()

vec2 coat.rect.GetSize ( self)

◆ GetTop()

float coat.rect.GetTop ( self)

◆ GetTopCenter()

vec2 coat.rect.GetTopCenter ( self)

◆ GetTopLeft()

vec2 coat.rect.GetTopLeft ( self)

TopLeft.

◆ GetTopRight()

vec2 coat.rect.GetTopRight ( self)

◆ GetWidth()

float coat.rect.GetWidth ( self)

◆ height()

float coat.rect.height ( self)

◆ Inflate() [1/3]

coat.rect.Inflate ( self,
float DeltaX,
float DeltaY )

◆ Inflate() [2/3]

coat.rect.Inflate ( self,
float DeltaXY )

◆ Inflate() [3/3]

coat.rect.Inflate ( self,
vec2 Delta )

◆ Inscribe()

rect coat.rect.Inscribe ( rect What,
rect Where )
static

◆ Intersect()

rect coat.rect.Intersect ( rect l,
rect r )
static

◆ IntersectsWith()

bool coat.rect.IntersectsWith ( self,
rect Rc )

◆ IsEmpty()

bool coat.rect.IsEmpty ( self)

◆ ProjectPoint()

vec2 coat.rect.ProjectPoint ( self,
vec2 _0 )

◆ Round()

coat.rect.Round ( self)

◆ Set() [1/2]

coat.rect.Set ( self,
float MinX,
float MinY,
float MaxX,
float MaxY )

◆ Set() [2/2]

coat.rect.Set ( self,
vec2 Min,
vec2 Max )

◆ SetBottom()

coat.rect.SetBottom ( self,
float Bottom )

◆ SetBottomLeft() [1/2]

coat.rect.SetBottomLeft ( self,
float X,
float Y )

◆ SetBottomLeft() [2/2]

coat.rect.SetBottomLeft ( self,
vec2 BottomLeft )

◆ SetBottomRight() [1/2]

coat.rect.SetBottomRight ( self,
float X,
float Y )

◆ SetBottomRight() [2/2]

coat.rect.SetBottomRight ( self,
vec2 BottomRight )

◆ SetEmpty()

coat.rect.SetEmpty ( self)

◆ SetHeight()

coat.rect.SetHeight ( self,
int HoldPoint,
float Height )

◆ SetLeft()

coat.rect.SetLeft ( self,
float Left )

◆ SetRight()

coat.rect.SetRight ( self,
float Right )

◆ SetSize() [1/5]

coat.rect.SetSize ( self,
float MinX,
float MinY,
float Width,
float Height )

◆ SetSize() [2/5]

coat.rect.SetSize ( self,
int HoldPoint,
float Side )

◆ SetSize() [3/5]

coat.rect.SetSize ( self,
int HoldPoint,
float Width,
float Height )

◆ SetSize() [4/5]

coat.rect.SetSize ( self,
int HoldPoint,
vec2 Size )

◆ SetSize() [5/5]

coat.rect.SetSize ( self,
vec2 Min,
vec2 Size )

◆ SetTop()

coat.rect.SetTop ( self,
float Top )

◆ SetTopLeft() [1/2]

coat.rect.SetTopLeft ( self,
float X,
float Y )

◆ SetTopLeft() [2/2]

coat.rect.SetTopLeft ( self,
vec2 TopLeft )

◆ SetToPoint() [1/2]

coat.rect.SetToPoint ( self,
float X,
float Y )

◆ SetToPoint() [2/2]

coat.rect.SetToPoint ( self,
vec2 P )

◆ SetTopRight() [1/2]

coat.rect.SetTopRight ( self,
float X,
float Y )

◆ SetTopRight() [2/2]

coat.rect.SetTopRight ( self,
vec2 TopRight )

◆ SetWidth()

coat.rect.SetWidth ( self,
int HoldPoint,
float Width )

◆ SetZero()

coat.rect.SetZero ( self)

◆ ToRound()

rect coat.rect.ToRound ( self)

◆ Transform() [1/2]

coat.rect.Transform ( self,
mat3 R )

◆ Transform() [2/2]

coat.rect.Transform ( self,
mat4 T )

◆ Translate() [1/2]

coat.rect.Translate ( self,
float DeltaX,
float DeltaY )

Returns "true" if this rectangle is expanded.

◆ Translate() [2/2]

coat.rect.Translate ( self,
vec2 Delta )

◆ Union()

rect coat.rect.Union ( rect l,
rect r )
static

◆ width()

float coat.rect.width ( self)

◆ x()

float coat.rect.x ( self)

◆ y()

float coat.rect.y ( self)

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