Photon Fusion 2.0.9

Public Member Functions | Public Attributes | List of all members
AABB Struct Reference

Represents an Axis-Aligned Bounding Box (AABB). More...

Public Member Functions

 AABB (Bounds bounds)
 Constructs an AABB from a Unity Bounds object. More...
 
 AABB (Vector3 center, Vector3 extents)
 Constructs an AABB from a center point and extents. More...
 
 AABB (Vector3 center, Vector3 pointA, Vector3 pointB)
 Constructs an AABB from a center point that encapsulate two other points. More...
 

Public Attributes

readonly Vector3 Center
 Represents the center of the AABB. More...
 
readonly Vector3 Extents
 Represents the extents (half-widths) of the AABB. More...
 
readonly Vector3 Max
 Represents the maximum point (upper corner) of the AABB. More...
 
readonly Vector3 Min
 Represents the minimum point (lower corner) of the AABB. More...
 

Detailed Description

Represents an Axis-Aligned Bounding Box (AABB).

Constructor & Destructor Documentation

◆ AABB() [1/3]

AABB ( Bounds  bounds)

Constructs an AABB from a Unity Bounds object.

Parameters
boundsThe Unity Bounds object to construct the AABB from.

◆ AABB() [2/3]

AABB ( Vector3  center,
Vector3  extents 
)

Constructs an AABB from a center point and extents.

Parameters
centerThe center point of the AABB.
extentsThe extents (half-widths) of the AABB.

◆ AABB() [3/3]

AABB ( Vector3  center,
Vector3  pointA,
Vector3  pointB 
)

Constructs an AABB from a center point that encapsulate two other points.

Member Data Documentation

◆ Center

readonly Vector3 Center

Represents the center of the AABB.

◆ Extents

readonly Vector3 Extents

Represents the extents (half-widths) of the AABB.

◆ Max

readonly Vector3 Max

Represents the maximum point (upper corner) of the AABB.

◆ Min

readonly Vector3 Min

Represents the minimum point (lower corner) of the AABB.