Struct OBB
- Namespace
- Misaki.HighPerformance.Mathematics.Geometry
- Assembly
- Misaki.HighPerformance.Mathematics.dll
public struct OBB : IEquatable<OBB>
- Implements
- Inherited Members
Constructors
OBB(quaternion, float3)
public OBB(quaternion rotation, float3 extents)
Parameters
rotationquaternionextentsfloat3
Properties
Center
public float3 Center { readonly get; set; }
Property Value
Extents
public float3 Extents { readonly get; set; }
Property Value
Rotation
public quaternion Rotation { readonly get; set; }
Property Value
Methods
Contains(float3)
public readonly bool Contains(float3 point)
Parameters
pointfloat3
Returns
Equals(OBB)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(OBB other)
Parameters
otherOBBAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Overlaps(OBB)
public readonly bool Overlaps(OBB other)
Parameters
otherOBB
Returns
ToAABB()
public readonly AABB ToAABB()
Returns
Operators
operator ==(OBB, OBB)
public static bool operator ==(OBB left, OBB right)
Parameters
Returns
operator !=(OBB, OBB)
public static bool operator !=(OBB left, OBB right)