Table of Contents

Struct Bounds

Namespace
Lime
Assembly
Lime.dll

An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing some object.

public struct Bounds : IEquatable<Bounds>
Implements
Inherited Members

Constructors

Bounds(Vector3, Vector3)

public Bounds(Vector3 a, Vector3 b)

Parameters

a Vector3
b Vector3

Bounds(float, float, float, float, float, float)

public Bounds(float left, float right, float bottom, float top, float back, float front)

Parameters

left float
right float
bottom float
top float
back float
front float

Fields

A

[YuzuMember("0")]
public Vector3 A

Field Value

Vector3

B

[YuzuMember("1")]
public Vector3 B

Field Value

Vector3

Empty

public static readonly Bounds Empty

Field Value

Bounds

Properties

Back

public float Back { get; set; }

Property Value

float

Bottom

public float Bottom { get; set; }

Property Value

float

Center

public Vector3 Center { get; }

Property Value

Vector3

Depth

public float Depth { get; set; }

Property Value

float

Front

public float Front { get; set; }

Property Value

float

Height

public float Height { get; set; }

Property Value

float

Left

public float Left { get; set; }

Property Value

float

Normalized

public Bounds Normalized { get; }

Property Value

Bounds

Right

public float Right { get; set; }

Property Value

float

Size

public Vector3 Size { get; }

Property Value

Vector3

Top

public float Top { get; set; }

Property Value

float

Width

public float Width { get; set; }

Property Value

float

Methods

Combine(Bounds, Bounds)

public static Bounds Combine(Bounds value1, Bounds value2)

Parameters

value1 Bounds
value2 Bounds

Returns

Bounds

Contains(Vector3)

public bool Contains(Vector3 value)

Parameters

value Vector3

Returns

bool

Equals(Bounds)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Bounds other)

Parameters

other Bounds

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

IncludingPoint(Vector3)

public Bounds IncludingPoint(Vector3 value)

Parameters

value Vector3

Returns

Bounds

Intersect(Bounds, Bounds)

public static Bounds Intersect(Bounds value1, Bounds value2)

Parameters

value1 Bounds
value2 Bounds

Returns

Bounds

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Transform(Matrix44)

public Bounds Transform(Matrix44 value)

Parameters

value Matrix44

Returns

Bounds

Operators

operator ==(Bounds, Bounds)

public static bool operator ==(Bounds lhs, Bounds rhs)

Parameters

lhs Bounds
rhs Bounds

Returns

bool

operator !=(Bounds, Bounds)

public static bool operator !=(Bounds lhs, Bounds rhs)

Parameters

lhs Bounds
rhs Bounds

Returns

bool