Table of Contents

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

rotation quaternion
extents float3

Properties

Center

public float3 Center { readonly get; set; }

Property Value

float3

Extents

public float3 Extents { readonly get; set; }

Property Value

float3

Rotation

public quaternion Rotation { readonly get; set; }

Property Value

quaternion

Methods

Contains(float3)

public readonly bool Contains(float3 point)

Parameters

point float3

Returns

bool

Equals(OBB)

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

public readonly bool Equals(OBB other)

Parameters

other OBB

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 readonly 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 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

other OBB

Returns

bool

ToAABB()

public readonly AABB ToAABB()

Returns

AABB

Operators

operator ==(OBB, OBB)

public static bool operator ==(OBB left, OBB right)

Parameters

left OBB
right OBB

Returns

bool

operator !=(OBB, OBB)

public static bool operator !=(OBB left, OBB right)

Parameters

left OBB
right OBB

Returns

bool