FBox2

public FVector2 Min

Language: C#

The minimum corner of the box.

public FVector2 Max

Language: C#

The maximum corner of the box.

public FVector2 Center

Language: C#

The center point of the box.

public FVector2 Size

Language: C#

The size of the box along each dimension.

public FVector2 HalfSize

Language: C#

Half the size of the box along each dimension.

public FBox2(FVector2 min, FVector2 max)

Language: C#

Constructs a box from minimum and maximum corner vectors.

public FBox2(float min0, float min1, float max0, float max1)

Language: C#

Constructs a box from individual minimum and maximum components.

public FBox2(FBox2 original)

Language: C#

Copy constructor.

public static FBox2 Union(FBox2 a, FBox2 b)

Language: C#

Creates the union of two boxes.

public static FBox2 Union(FBox2 a, FVector2 b)

Language: C#

Creates the union of box and vector.

public static FBox2 Intersection(FBox2 a, FBox2 b)

Language: C#

Creates the intersection of two boxes.

public static bool SphereIntersection(FBox2 box, FVector2 origin, float radius)

Language: C#

Checks if a sphere intersects with the box.

public static float Distance(FBox2 box, FVector2 point)

Language: C#

Calculates the distance from a point to the box.

public static float Distance(FBox2 a, FBox2 b)

Language: C#

Calculates the distance between two boxes.

public bool ContainsInclusive(FVector2 point)

Language: C#

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

public bool ContainsExclusive(FVector2 point)

Language: C#

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

public bool ContainsInclusive(FBox2 point)

Language: C#

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

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

Language: C#

Checks if this box collides with another box.