Struct BoundingBox
- Namespace
- NeoVeldrid.Utilities
- Assembly
- NeoVeldrid.Utilities.dll
public struct BoundingBox : IEquatable<BoundingBox>
- Implements
- Inherited Members
Constructors
BoundingBox(Vector3, Vector3)
public BoundingBox(Vector3 min, Vector3 max)
Parameters
Fields
Max
public Vector3 Max
Field Value
Min
public Vector3 Min
Field Value
Methods
Combine(BoundingBox, BoundingBox)
public static BoundingBox Combine(BoundingBox box1, BoundingBox box2)
Parameters
box1BoundingBoxbox2BoundingBox
Returns
Contains(ref BoundingBox)
public ContainmentType Contains(ref BoundingBox other)
Parameters
otherBoundingBox
Returns
ContainsNaN()
public bool ContainsNaN()
Returns
CreateFromPoints(Vector3*, int, int, Quaternion, Vector3, Vector3)
public static BoundingBox CreateFromPoints(Vector3* vertexPtr, int numVertices, int vertexStride, Quaternion rotation, Vector3 offset, Vector3 scale)
Parameters
vertexPtrVector3*numVerticesintvertexStrideintrotationQuaternionoffsetVector3scaleVector3
Returns
CreateFromVertices(Vector3*, int, Quaternion, Vector3, Vector3)
public static BoundingBox CreateFromVertices(Vector3* vertices, int numVertices, Quaternion rotation, Vector3 offset, Vector3 scale)
Parameters
verticesVector3*numVerticesintrotationQuaternionoffsetVector3scaleVector3
Returns
CreateFromVertices(Vector3[])
public static BoundingBox CreateFromVertices(Vector3[] vertices)
Parameters
verticesVector3[]
Returns
CreateFromVertices(Vector3[], Quaternion, Vector3, Vector3)
public static BoundingBox CreateFromVertices(Vector3[] vertices, Quaternion rotation, Vector3 offset, Vector3 scale)
Parameters
verticesVector3[]rotationQuaternionoffsetVector3scaleVector3
Returns
Equals(BoundingBox)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BoundingBox other)
Parameters
otherBoundingBoxAn 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
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.
GetCenter()
public Vector3 GetCenter()
Returns
GetCorners()
public AlignedBoxCorners GetCorners()
Returns
GetDimensions()
public Vector3 GetDimensions()
Returns
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.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Transform(BoundingBox, Matrix4x4)
public static BoundingBox Transform(BoundingBox box, Matrix4x4 mat)
Parameters
boxBoundingBoxmatMatrix4x4
Returns
Operators
operator ==(BoundingBox, BoundingBox)
public static bool operator ==(BoundingBox first, BoundingBox second)
Parameters
firstBoundingBoxsecondBoundingBox
Returns
operator !=(BoundingBox, BoundingBox)
public static bool operator !=(BoundingBox first, BoundingBox second)
Parameters
firstBoundingBoxsecondBoundingBox