LBox3

public LVector3 Min

Language: C#

The minimum corner of the box.

public LVector3 Max

Language: C#

The maximum corner of the box.

public LVector3 Center

Language: C#

The center point of the box.

public LVector3 Size

Language: C#

The size of the box along each dimension.

public LVector3 HalfSize

Language: C#

Half the size of the box along each dimension.

public LBox3(LVector3 min, LVector3 max)

Language: C#

Constructs a box from minimum and maximum corner vectors.

public LBox3(long min0, long min1, long min2, long max0, long max1, long max2)

Language: C#

Constructs a box from individual minimum and maximum components.

public LBox3(LBox3 original)

Language: C#

Copy constructor.

public static LBox3 Union(LBox3 a, LBox3 b)

Language: C#

Creates the union of two boxes.

public static LBox3 Union(LBox3 a, LVector3 b)

Language: C#

Creates the union of box and vector.

public static LBox3 Intersection(LBox3 a, LBox3 b)

Language: C#

Creates the intersection of two boxes.

public static bool SphereIntersection(LBox3 box, LVector3 origin, long radius)

Language: C#

Checks if a sphere intersects with the box.

public static double Distance(LBox3 box, LVector3 point)

Language: C#

Calculates the distance from a point to the box.

public static double Distance(LBox3 a, LBox3 b)

Language: C#

Calculates the distance between two boxes.

public bool ContainsInclusive(LVector3 point)

Language: C#

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

public bool ContainsExclusive(LVector3 point)

Language: C#

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

public bool ContainsInclusive(LBox3 point)

Language: C#

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

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

Language: C#

Checks if this box collides with another box.