DBox3

public DVector3 Min

Language: C#

The minimum corner of the box.

public DVector3 Max

Language: C#

The maximum corner of the box.

public DVector3 Center

Language: C#

The center point of the box.

public DVector3 Size

Language: C#

The size of the box along each dimension.

public DVector3 HalfSize

Language: C#

Half the size of the box along each dimension.

public DBox3(DVector3 min, DVector3 max)

Language: C#

Constructs a box from minimum and maximum corner vectors.

public DBox3(double min0, double min1, double min2, double max0, double max1, double max2)

Language: C#

Constructs a box from individual minimum and maximum components.

public DBox3(DBox3 original)

Language: C#

Copy constructor.

public static DBox3 Union(DBox3 a, DBox3 b)

Language: C#

Creates the union of two boxes.

public static DBox3 Union(DBox3 a, DVector3 b)

Language: C#

Creates the union of box and vector.

public static DBox3 Intersection(DBox3 a, DBox3 b)

Language: C#

Creates the intersection of two boxes.

public static bool SphereIntersection(DBox3 box, DVector3 origin, double radius)

Language: C#

Checks if a sphere intersects with the box.

public static double Distance(DBox3 box, DVector3 point)

Language: C#

Calculates the distance from a point to the box.

public static double Distance(DBox3 a, DBox3 b)

Language: C#

Calculates the distance between two boxes.

public bool ContainsInclusive(DVector3 point)

Language: C#

Checks if a point is inside the box (inclusive).

public bool ContainsExclusive(DVector3 point)

Language: C#

Checks if a point is inside the box (exclusive).

public bool ContainsInclusive(DBox3 point)

Language: C#

Checks if another box is entirely inside this box (inclusive).

public bool ContainsExclusive(DBox3 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(DBox3 aabb)

Language: C#

Checks if this box collides with another box.