LBox2

public LVector2 Min

Language: C#

The minimum corner of the box.

public LVector2 Max

Language: C#

The maximum corner of the box.

public LVector2 Center

Language: C#

The center point of the box.

public LVector2 Size

Language: C#

The size of the box along each dimension.

public LVector2 HalfSize

Language: C#

Half the size of the box along each dimension.

public LBox2(LVector2 min, LVector2 max)

Language: C#

Constructs a box from minimum and maximum corner vectors.

public LBox2(long min0, long min1, long max0, long max1)

Language: C#

Constructs a box from individual minimum and maximum components.

public LBox2(LBox2 original)

Language: C#

Copy constructor.

public static LBox2 Union(LBox2 a, LBox2 b)

Language: C#

Creates the union of two boxes.

public static LBox2 Union(LBox2 a, LVector2 b)

Language: C#

Creates the union of box and vector.

public static LBox2 Intersection(LBox2 a, LBox2 b)

Language: C#

Creates the intersection of two boxes.

public static bool SphereIntersection(LBox2 box, LVector2 origin, long radius)

Language: C#

Checks if a sphere intersects with the box.

public static double Distance(LBox2 box, LVector2 point)

Language: C#

Calculates the distance from a point to the box.

public static double Distance(LBox2 a, LBox2 b)

Language: C#

Calculates the distance between two boxes.

public bool ContainsInclusive(LVector2 point)

Language: C#

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

public bool ContainsExclusive(LVector2 point)

Language: C#

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

public bool ContainsInclusive(LBox2 point)

Language: C#

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

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

Language: C#

Checks if this box collides with another box.