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

Public Member Functions

 __init__ (self)
 
any __init__ (self, vec3 p)
 
 __init__ (self, vec3 bMin, vec3 bMax)
 
 __init__ (self, boundbox v)
 
any __init__ (self)
 
vec3 GetMin (self)
 
vec3 GetMax (self)
 
vec3 GetMin (self)
 
vec3 GetMax (self)
 
 Set (self, vec3 Min, vec3 Max)
 
 SetMin (self, vec3 _0)
 
 SetMax (self, vec3 _0)
 
vec3 GetSize (self)
 
float GetSizeX (self)
 
float GetSizeY (self)
 
float GetSizeZ (self)
 
float GetDiagonal (self)
 
vec3 GetCenter (self)
 
int GetLargestAxis (self)
 
int GetShortestAxis (self)
 
 SetEmpty (self)
 
 SetZero (self)
 
bool IsEmpty (self)
 
bool AddPoint (self, vec3 _0)
 m_Min = -cVec3.One, m_Max = cVec3.One
 
bool AddBounds (self, boundbox _0)
 
 Inflate (self, float DeltaX, float DeltaY, float DeltaZ)
 
 Inflate (self, float DeltaXYZ)
 
 Inflate (self, vec3 Delta)
 
 Translate (self, vec2 _0)
 
 Translate (self, vec3 _0)
 
float DistanceToPointSq (self, vec2 p)
 
float DistanceToPointSq (self, vec3 p)
 0.0f for inside
 
bool ContainsPoint (self, vec2 _0)
 0.0f for inside
 
bool ContainsCircle (self, vec2 Center, float Radius)
 
bool ContainsPoint (self, vec3 _0)
 
bool ContainsBounds (self, boundbox _0)
 
bool IntersectsBounds (self, boundbox _0)
 
bool IntersectsSphere (self, any _0)
 
bool RayIntersection (self, vec3 RayOrig, vec3 RayDir, float Scale)
 Intersection point is "RayOrig + RayDir * Scale".
 
bool RayIntersection (self, vec3 RayOrig, vec3 RayDir, vec3 Cross=None)
 
bool LineIntersection (self, vec3 RayOrig, vec3 RayDir, float Scale)
 
 ToPoints (self, vec3 P8)
 
any ToSphere (self)
 Order is ready for "cFrustum" construction.
 
rect ToRect (self)
 

Static Public Member Functions

boundbox FromPoints (vec2 pPoints, int nCount)
 
boundbox FromPoints (vec3 pPoints, int nCount)
 
boundbox Lerp (boundbox l, boundbox r, float s)
 
boundbox Transform (boundbox B, mat4 T)
 

Constructor & Destructor Documentation

◆ __init__() [1/5]

coat.boundbox.__init__ ( self)

◆ __init__() [2/5]

any coat.boundbox.__init__ ( self,
vec3 p )

◆ __init__() [3/5]

coat.boundbox.__init__ ( self,
vec3 bMin,
vec3 bMax )

◆ __init__() [4/5]

coat.boundbox.__init__ ( self,
boundbox v )

◆ __init__() [5/5]

any coat.boundbox.__init__ ( self)

Member Function Documentation

◆ AddBounds()

bool coat.boundbox.AddBounds ( self,
boundbox _0 )

◆ AddPoint()

bool coat.boundbox.AddPoint ( self,
vec3 _0 )

m_Min = -cVec3.One, m_Max = cVec3.One

◆ ContainsBounds()

bool coat.boundbox.ContainsBounds ( self,
boundbox _0 )

◆ ContainsCircle()

bool coat.boundbox.ContainsCircle ( self,
vec2 Center,
float Radius )

◆ ContainsPoint() [1/2]

bool coat.boundbox.ContainsPoint ( self,
vec2 _0 )

0.0f for inside

◆ ContainsPoint() [2/2]

bool coat.boundbox.ContainsPoint ( self,
vec3 _0 )

◆ DistanceToPointSq() [1/2]

float coat.boundbox.DistanceToPointSq ( self,
vec2 p )

◆ DistanceToPointSq() [2/2]

float coat.boundbox.DistanceToPointSq ( self,
vec3 p )

0.0f for inside

◆ FromPoints() [1/2]

boundbox coat.boundbox.FromPoints ( vec2 pPoints,
int nCount )
static

◆ FromPoints() [2/2]

boundbox coat.boundbox.FromPoints ( vec3 pPoints,
int nCount )
static

◆ GetCenter()

vec3 coat.boundbox.GetCenter ( self)

◆ GetDiagonal()

float coat.boundbox.GetDiagonal ( self)

◆ GetLargestAxis()

int coat.boundbox.GetLargestAxis ( self)

◆ GetMax() [1/2]

vec3 coat.boundbox.GetMax ( self)

◆ GetMax() [2/2]

vec3 coat.boundbox.GetMax ( self)

◆ GetMin() [1/2]

vec3 coat.boundbox.GetMin ( self)

◆ GetMin() [2/2]

vec3 coat.boundbox.GetMin ( self)

◆ GetShortestAxis()

int coat.boundbox.GetShortestAxis ( self)

◆ GetSize()

vec3 coat.boundbox.GetSize ( self)

◆ GetSizeX()

float coat.boundbox.GetSizeX ( self)

◆ GetSizeY()

float coat.boundbox.GetSizeY ( self)

◆ GetSizeZ()

float coat.boundbox.GetSizeZ ( self)

◆ Inflate() [1/3]

coat.boundbox.Inflate ( self,
float DeltaX,
float DeltaY,
float DeltaZ )

◆ Inflate() [2/3]

coat.boundbox.Inflate ( self,
float DeltaXYZ )

◆ Inflate() [3/3]

coat.boundbox.Inflate ( self,
vec3 Delta )

◆ IntersectsBounds()

bool coat.boundbox.IntersectsBounds ( self,
boundbox _0 )

◆ IntersectsSphere()

bool coat.boundbox.IntersectsSphere ( self,
any _0 )

◆ IsEmpty()

bool coat.boundbox.IsEmpty ( self)

◆ Lerp()

boundbox coat.boundbox.Lerp ( boundbox l,
boundbox r,
float s )
static

◆ LineIntersection()

bool coat.boundbox.LineIntersection ( self,
vec3 RayOrig,
vec3 RayDir,
float Scale )

◆ RayIntersection() [1/2]

bool coat.boundbox.RayIntersection ( self,
vec3 RayOrig,
vec3 RayDir,
float Scale )

Intersection point is "RayOrig + RayDir * Scale".

◆ RayIntersection() [2/2]

bool coat.boundbox.RayIntersection ( self,
vec3 RayOrig,
vec3 RayDir,
vec3 Cross = None )

◆ Set()

coat.boundbox.Set ( self,
vec3 Min,
vec3 Max )

◆ SetEmpty()

coat.boundbox.SetEmpty ( self)

◆ SetMax()

coat.boundbox.SetMax ( self,
vec3 _0 )

◆ SetMin()

coat.boundbox.SetMin ( self,
vec3 _0 )

◆ SetZero()

coat.boundbox.SetZero ( self)

◆ ToPoints()

coat.boundbox.ToPoints ( self,
vec3 P8 )

◆ ToRect()

rect coat.boundbox.ToRect ( self)

◆ ToSphere()

any coat.boundbox.ToSphere ( self)

Order is ready for "cFrustum" construction.

◆ Transform()

boundbox coat.boundbox.Transform ( boundbox B,
mat4 T )
static

◆ Translate() [1/2]

coat.boundbox.Translate ( self,
vec2 _0 )

◆ Translate() [2/2]

coat.boundbox.Translate ( self,
vec3 _0 )

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