Click or drag to resize
AB4D logo

Bounds Class

Bounds defines a BoundingBox and also provides IsEmpty property.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXBounds

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class Bounds

The Bounds type exposes the following members.

Constructors
 NameDescription
Public methodBounds Constructor that creates an empty Bounds
Public methodBounds(BoundingBox) Constructor with specified BoundingBox
Public methodBounds(Vector3, Vector3) Constructor that is created from specified minimum and maximum positions.
Public methodBounds(Vector3, Single) Constructor that is created from specified sphere's center and sphere's radius.
Top
Properties
 NameDescription
Public propertyBoundingBox Gets a BoundingBox. To set the BoundingBox call the SetBoundingBox method.
Public propertyStatic memberEmpty Returns an new instance of Bounds object with an empty bounds
Public propertyIsEmpty Gets a Boolean that specifies if BoundingBox is empty.
Top
Methods
 NameDescription
Public methodAdd(Bounds) Adds another bounds to this bounds
Public methodAdd(Vector3) Adds one Vector3 to this bounds
Public methodStatic memberCalculateBoundingBox(PositionNormal) Returns a BoundingBox that is calculated from the specified vertexBufferArray.
Public methodStatic memberCalculateBoundingBox(PositionNormalTexture) Returns a BoundingBox that is calculated from the specified vertexBufferArray.
Public methodStatic memberCalculateBoundingBox(Vector3) Returns a BoundingBox that is calculated from the specified positionsArray.
Public methodClear Clears the Bounds
Public methodClone Creates a new Bounds objects that is the same as this Bounds.
Public methodCopyFrom Copies the specified bounds to this Bounds object.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodGetCenterPosition Returns center position of this Bounds.
Public methodGetDiagonalLength Returns the length of the BoundingBox diagonal that is the same as distance from Minimum to Maximum positions.
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetSize Returns Vector3 that represents size of the BoundingBox
Public methodStatic memberIsBoundingBoxEmpty Returns true if BoundingBox is empty (any component is NaN or if all components are equal)
Public methodIsEqual(BoundingBox) Returns true if this Bounds is equal as specified BoundingBox
Public methodIsEqual(Bounds) Returns true if this Bounds is equal as specified Bounds
Public methodIsSame(BoundingBox) Returns true if this Bounds is same as specified BoundingBox (using MathUtil.NearEqual to compare the values)
Public methodIsSame(Bounds) Returns true if this Bounds is same as specified Bounds (using MathUtil.NearEqual to compare the values)
Public methodScaleAndTranslate Sets the out minimum and maximum Vector3D with transforming the current BoundingBox's minimum and maximum value with the specified matrix (the current Bounds value is not changed).
Public methodSetBoundingBox(BoundingBox, Boolean) Sets the BoundingBox property value. When checkForEmpty parameter is true, it also checks if the new BoundingBox is empty and sets the IsEmpty property accordingly. If checkForEmpty parameter is false, then the IsEmpty property is set to false. To set the BoundingBox to empty value call the Clear method.
Public methodSetBoundingBox(BoundingBox, Boolean) Sets the BoundingBox property value. When checkForEmpty parameter is true, it also checks if the new BoundingBox is empty and sets the IsEmpty property accordingly. If checkForEmpty parameter is false, then the IsEmpty property is set to false. To set the BoundingBox to empty value call the Clear method.
Public methodToString Returns a string that represents the current object.
(Overrides ObjectToString)
Public methodTransform(Matrix) Transforms the current BoundingBox with the specified matrix
Public methodTransform(Transformation) Transforms the current Bounds with the specified transformation
Public methodTransform(Matrix, Vector3, Vector3) Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters.
Public methodTransform(Transformation, Vector3, Vector3) Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters.
Public methodTransformAllCorners Sets the out minimum and maximum Vector3D with transforming the current bounds with the specified matrix (the current Bounds value is not changed).
Public methodTranslate Sets the out minimum and maximum Vector3D with translating the current bounds with the specified translateVector (the current Bounds value is not changed).
Top
Extension Methods
 NameDescription
Public Extension MethodToRect3D Converts DXEngine's Bounds object to WPF Rect3D
(Defined by Extensions)
Public Extension MethodUpdateDXBounds Checks if wpfBounds is not the same as dxBounds and in this case updates the values in dxBounds
(Defined by Extensions)
Public Extension MethodUpdateDXBounds Checks if wpfBounds is not the same as dxBounds and in this case updates the values in dxBounds
(Defined by Extensions)
Top
See Also