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
Bounds(float, float, float, float, float, float)
public Bounds(float left, float right, float bottom, float top, float back, float front)
Parameters
Fields
A
[YuzuMember("0")]
public Vector3 A
Field Value
B
[YuzuMember("1")]
public Vector3 B
Field Value
Empty
public static readonly Bounds Empty
Field Value
Properties
Back
public float Back { get; set; }
Property Value
Bottom
public float Bottom { get; set; }
Property Value
Center
public Vector3 Center { get; }
Property Value
Depth
public float Depth { get; set; }
Property Value
Front
public float Front { get; set; }
Property Value
Height
public float Height { get; set; }
Property Value
Left
public float Left { get; set; }
Property Value
Normalized
public Bounds Normalized { get; }
Property Value
Right
public float Right { get; set; }
Property Value
Size
public Vector3 Size { get; }
Property Value
Top
public float Top { get; set; }
Property Value
Width
public float Width { get; set; }
Property Value
Methods
Combine(Bounds, Bounds)
public static Bounds Combine(Bounds value1, Bounds value2)
Parameters
Returns
Contains(Vector3)
public bool Contains(Vector3 value)
Parameters
value
Vector3
Returns
Equals(Bounds)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Bounds other)
Parameters
other
BoundsAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
Intersect(Bounds, Bounds)
public static Bounds Intersect(Bounds value1, Bounds value2)
Parameters
Returns
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
Operators
operator ==(Bounds, Bounds)
public static bool operator ==(Bounds lhs, Bounds rhs)
Parameters
Returns
operator !=(Bounds, Bounds)
public static bool operator !=(Bounds lhs, Bounds rhs)