Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

VRageMath.MyOrientedBoundingBox

Morten Aune Lyrstad edited this page Apr 16, 2022 · 50 revisions

IndexNamespace Index

MyOrientedBoundingBox Struct

public struct MyOrientedBoundingBox: IEquatable<MyOrientedBoundingBox>

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

static int CornerCount

static Int32&#91] EndVertices

static Int32&#91] EndXVertices

static Int32&#91] EndYVertices

static Int32&#91] EndZVertices

static Int32&#91] StartVertices

static Int32&#91] StartXVertices

static Int32&#91] StartYVertices

static Int32&#91] StartZVertices

static Vector3&#91] XNeighbourVectorsBack

static Vector3&#91] XNeighbourVectorsForw

static Vector3&#91] YNeighbourVectorsBack

static Vector3&#91] YNeighbourVectorsForw

static Vector3&#91] ZNeighbourVectorsBack

static Vector3&#91] ZNeighbourVectorsForw

Vector3 Center

Vector3 HalfExtent

Quaternion Orientation

Constructors

MyOrientedBoundingBox(ref Matrix matrix)

MyOrientedBoundingBox(Vector3 center, Vector3 halfExtents, Quaternion orientation)

Methods

static ContainmentType Contains(ref BoundingBox boxA, ref MyOrientedBoundingBox oboxB)

static ContainmentType Contains(BoundingFrustum frustum, ref MyOrientedBoundingBox obox)

static ContainmentType Contains(ref BoundingSphere sphere, ref MyOrientedBoundingBox box)

static ContainmentType ContainsRelativeBox(ref Vector3 hA, ref Vector3 hB, ref Matrix mB)

static MyOrientedBoundingBox Create(BoundingBox boundingBox, Matrix matrix)

static MyOrientedBoundingBox CreateFromBoundingBox(BoundingBox box)

static bool GetNormalBetweenEdges(int axis, int edge0, int edge1, out Vector3 normal)

Returns normal between two cube edge of same direction

ContainmentType Contains(ref BoundingBox box)

ContainmentType Contains(ref MyOrientedBoundingBox other)

ContainmentType Contains(BoundingFrustum frustum)

ContainmentType Contains(ref BoundingSphere sphere)

bool Contains(ref Vector3 point)

BoundingFrustum ConvertToFrustum()

bool Equals(MyOrientedBoundingBox other)

bool Equals(object obj)

BoundingBox GetAABB()

void GetCorners(Vector3&#91] corners, int startIndex)

int GetHashCode()

bool Intersects(ref BoundingBox box)

bool Intersects(ref MyOrientedBoundingBox other)

bool Intersects(BoundingFrustum frustum)

bool Intersects(ref BoundingSphere sphere)

float? Intersects(ref Ray ray)

float? Intersects(ref Line line)

PlaneIntersectionType Intersects(ref Plane plane)

string ToString()

MyOrientedBoundingBox Transform(Quaternion rotation, Vector3 translation)

MyOrientedBoundingBox Transform(float scale, Quaternion rotation, Vector3 translation)

void Transform(Matrix matrix)

Clone this wiki locally