IBox3
public IVector3 Min
Language: C#
The minimum corner of the box.
public IVector3 Max
Language: C#
The maximum corner of the box.
public IVector3 Center
Language: C#
The center point of the box.
public IVector3 Size
Language: C#
The size of the box along each dimension.
public IVector3 HalfSize
Language: C#
Half the size of the box along each dimension.
public IBox3(IVector3 min, IVector3 max)
Language: C#
Constructs a box from minimum and maximum corner vectors.
public IBox3(int min0, int min1, int min2, int max0, int max1, int max2)
Language: C#
Constructs a box from individual minimum and maximum components.
public IBox3(IBox3 original)
Language: C#
Copy constructor.
public static IBox3 Union(IBox3 a, IBox3 b)
Language: C#
Creates the union of two boxes.
public static IBox3 Union(IBox3 a, IVector3 b)
Language: C#
Creates the union of box and vector.
public static IBox3 Intersection(IBox3 a, IBox3 b)
Language: C#
Creates the intersection of two boxes.
public static bool SphereIntersection(IBox3 box, IVector3 origin, int radius)
Language: C#
Checks if a sphere intersects with the box.
public static float Distance(IBox3 box, IVector3 point)
Language: C#
Calculates the distance from a point to the box.
public static float Distance(IBox3 a, IBox3 b)
Language: C#
Calculates the distance between two boxes.
public bool ContainsInclusive(IVector3 point)
Language: C#
Checks if a point is inside the box (inclusive).
public bool ContainsExclusive(IVector3 point)
Language: C#
Checks if a point is inside the box (exclusive).
public bool ContainsInclusive(IBox3 point)
Language: C#
Checks if another box is entirely inside this box (inclusive).
public bool ContainsExclusive(IBox3 point)
Language: C#
Checks if another box is entirely inside this box (exclusive).
public override string ToString()
Language: C#
Returns a string representation of the box.
public bool Collides(IBox3 aabb)
Language: C#
Checks if this box collides with another box.