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

VRageMath.MyOrientedBoundingBoxD

Morten Aune Lyrstad edited this page Apr 13, 2023 · 52 revisions

IndexNamespace Index

MyOrientedBoundingBoxD Struct

public struct MyOrientedBoundingBoxD: IEquatable<MyOrientedBoundingBoxD>

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

Vector3D Center

Vector3D HalfExtent

Quaternion Orientation

Constructors

MyOrientedBoundingBoxD(MatrixD matrix)

MyOrientedBoundingBoxD(Vector3D center, Vector3D halfExtents, Quaternion orientation)

MyOrientedBoundingBoxD(BoundingBoxD box, MatrixD transform)

Methods

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

static ContainmentType Contains(BoundingFrustumD frustum, ref MyOrientedBoundingBoxD obox)

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

static ContainmentType ContainsRelativeBox(ref Vector3D hA, ref Vector3D hB, ref MatrixD mB)

static MyOrientedBoundingBoxD Create(BoundingBoxD boundingBox, MatrixD matrix)

static MyOrientedBoundingBoxD CreateFromBoundingBox(BoundingBoxD 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 BoundingBoxD box)

ContainmentType Contains(ref MyOrientedBoundingBoxD other)

ContainmentType Contains(BoundingFrustumD frustum)

ContainmentType Contains(ref BoundingSphereD sphere)

bool Contains(ref Vector3 point)

bool Contains(ref Vector3D point)

BoundingFrustumD ConvertToFrustum()

float Distance(RayD ray)

bool Equals(MyOrientedBoundingBoxD other)

bool Equals(object obj)

BoundingBoxD GetAABB()

Vector3D GetCorner(int index)

Gets corner of the BB by index

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

int GetHashCode()

bool Intersects(ref BoundingBox box)

bool Intersects(ref BoundingBoxD box)

bool Intersects(ref MyOrientedBoundingBoxD other)

bool Intersects(BoundingFrustumD frustum)

bool Intersects(ref BoundingSphereD sphere)

double? Intersects(ref RayD ray)

double? Intersects(ref LineD line)

PlaneIntersectionType Intersects(ref PlaneD plane)

double? IntersectsOrContains(ref LineD line)

string ToString()

MyOrientedBoundingBoxD Transform(Quaternion rotation, Vector3D translation)

MyOrientedBoundingBoxD Transform(float scale, Quaternion rotation, Vector3D translation)

void Transform(MatrixD matrix)

void Transform(ref MatrixD matrix)

Clone this wiki locally