An Axis-Aligned Bounding Box. These are not as simple as a bounding sphere but may encapsulate
a mesh better. The box expands/shrinks along the standard X,Y,Z unit axes if the mesh it
represents scales/rotates.
Declaration Syntax
C# |
public sealed class BoundingBox : BoundingVolume
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
BoundingBox()()()() |
Creates a new instance of bounding box, centered at the origin with zero extents.
|
|
BoundingBox(Vector3, Vector3) |
Creates a new instance of bounding box.
|
|
BoundingBox(BoundingBox) |
Creates a new instance of bounding box from the source box.
|
|
BoundingType |
Gets the bounding type.
(Overrides BoundingVolume.BoundingType.) |
|
Center |
Gets or sets the center of the bounding volume.
(Inherited from BoundingVolume.) |
|
Clone()()()() |
Returns a new instance of this bounding volume.
(Overrides BoundingVolume.Clone()()()().) |
|
ComputeFromPoints(array<Vector3>[]()[][]) |
Computes this bounding volume from a set of 3D points
(Overrides BoundingVolume.ComputeFromPoints(array<Vector3>[]()[][]).) |
|
ComputeFromPoints(DataBuffer<(Of <<'(Vector3>)>>)) |
Compute this bounding volume from a set of 3D points.
(Inherited from BoundingVolume.) |
|
ComputeFromPrimitives(array<Vector3>[]()[][], array<Int32>[]()[][]) |
Compute this bounding volume from a set of primitives.
(Overrides BoundingVolume.ComputeFromPrimitives(array<Vector3>[]()[][], array<Int32>[]()[][]).) |
|
ComputeFromPrimitives(array<Vector3>[]()[][], array<Int16>[]()[][]) |
Compute this bounding volume from a set of primitives.
(Overrides BoundingVolume.ComputeFromPrimitives(array<Vector3>[]()[][], array<Int16>[]()[][]).) |
|
ComputeFromPrimitives(DataBuffer<(Of <<'(Vector3>)>>), DataBuffer<(Of <<'(Int32>)>>)) |
Compute this bounding volume from a set of primitives.
(Inherited from BoundingVolume.) |
|
ComputeFromPrimitives(DataBuffer<(Of <<'(Vector3>)>>), DataBuffer<(Of <<'(Int16>)>>)) |
Compute this bounding volume from a set of primitives.
(Inherited from BoundingVolume.) |
|
Contains(Vector3) |
Determines if the point is contained within this bounding volume
(Overrides BoundingVolume.Contains(Vector3).) |
|
Contains(BoundingBox) |
Determines if the box is contained within this bounding volume.
(Overrides BoundingVolume.Contains(BoundingBox).) |
|
Contains(BoundingSphere) |
Determines if the sphere is contained within this bounding volume.
(Overrides BoundingVolume.Contains(BoundingSphere).) |
|
Contains(OrientedBoundingBox) |
Determines if the oriented bounding box is contained within this bounding volume.
(Overrides BoundingVolume.Contains(OrientedBoundingBox).) |
|
Contains(BoundingVolume) |
Determines if the volume is contained within this bounding volume.
(Inherited from BoundingVolume.) |
|
DistanceTo(Vector3) |
Computes the distance from the center of this volume
to the point.
(Inherited from BoundingVolume.) |
|
DistanceToEdge(Vector3) |
Compute the distance to the nearest edge of the volume
from the point.
(Overrides BoundingVolume.DistanceToEdge(Vector3).) |
|
Equals(Object) |
(Inherited from Object.) |
|
Extents |
Gets or sets the extents of the bounding box (half-lengths along each axis from the center).
|
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
Intersects(BoundingBox) |
Tests if the bounding box intersects with this bounding box.
(Overrides BoundingVolume.Intersects(BoundingBox).) |
|
Intersects(BoundingSphere) |
Tests if the bounding sphere intersects with this bounding box.
(Overrides BoundingVolume.Intersects(BoundingSphere).) |
|
Intersects(OrientedBoundingBox) |
Tests if the oriented bounding box intersects with this bounding box.
(Overrides BoundingVolume.Intersects(OrientedBoundingBox).) |
|
Intersects(Ray) |
Tests if the ray intersects with this bounding volume.
(Overrides BoundingVolume.Intersects(Ray).) |
|
Intersects(Ray%, Boolean%) |
Tests if the ray intersects with this bounding volume.
(Overrides BoundingVolume.Intersects(Ray%, Boolean%).) |
|
Intersects(Plane) |
Tests if the plane intersects with this bounding volume, and if not
which side the volume is on relative to the plane.
(Overrides BoundingVolume.Intersects(Plane).) |
|
Intersects(Plane%, PlaneIntersectionType%) |
Tests if the plane intersects with this bounding volume, and if not
which side the volume is on relative to the plane.
(Overrides BoundingVolume.Intersects(Plane%, PlaneIntersectionType%).) |
|
Intersects(BoundingVolume) |
Tests if the volume intersects with this bounding volume.
(Inherited from BoundingVolume.) |
|
IntersectsWhere(Ray) |
Tests where on the volume the ray intersects, if it does.
(Overrides BoundingVolume.IntersectsWhere(Ray).) |
|
IntersectsWhere(Ray%, BoundingIntersectionRecord%) |
Tests where on the volume the ray intersects, if it does. Uses the
Liang-Barsky clipping algorithm as described by David Eberly.
(Overrides BoundingVolume.IntersectsWhere(Ray%, BoundingIntersectionRecord%).) |
|
Max |
Gets the maximum x, y, z points.
|
|
Merge(BoundingVolume) |
Merges this bounding volume with a second one. The resulting
bounding volume is returned as a new object and will contain the
original volumes completely. The returned value will be of the
same bounding type as the caller.
(Overrides BoundingVolume.Merge(BoundingVolume).) |
|
MergeLocal(BoundingVolume) |
Merges this bounding volume with a second one. The resulting bounding
volume is stored locally and will contain the original volumes completely.
(Overrides BoundingVolume.MergeLocal(BoundingVolume).) |
|
Min |
Gets the minimum x, y, z points.
|
|
Read(ISavableReader) |
Deserializes this BoundingBox.
(Overrides BoundingVolume.Read(ISavableReader).) |
|
Set(BoundingVolume) |
Sets this bounding volume to contain the specified volume or to copy from.
(Overrides BoundingVolume.Set(BoundingVolume).) |
|
SetCenter(Single, Single, Single) |
Sets the center of the volume from the specified coordinates.
(Inherited from BoundingVolume.) |
|
ToString()()()() |
(Inherited from Object.) |
|
Transform(Transform) |
Transforms this volume by the SRT transform and creates a
new bounding volume that contains the result. The bounding volume
will be of the same type as the caller.
(Overrides BoundingVolume.Transform(Transform).) |
|
TransformLocal(Transform) |
Transforms this volume by the SRT transform. The transformed
volume is stored locally.
(Overrides BoundingVolume.TransformLocal(Transform).) |
|
Volume |
Gets the volume of the bounding volume.
(Overrides BoundingVolume.Volume.) |
|
Write(ISavableWriter) |
Serializes this BoundingBox.
(Overrides BoundingVolume.Write(ISavableWriter).) |
Inheritance Hierarchy
Object | ||
BoundingVolume | ||
BoundingBox |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)