Bounds Class |
public class Bounds
The Bounds type exposes the following members.
Name | Description | |
---|---|---|
Bounds | Constructor that creates an empty Bounds | |
Bounds(BoundingBox) | Constructor with specified BoundingBox | |
Bounds(Vector3, Vector3) | Constructor that is created from specified minimum and maximum positions. | |
Bounds(Vector3, Single) | Constructor that is created from specified sphere's center and sphere's radius. |
Name | Description | |
---|---|---|
BoundingBox | Gets a BoundingBox. To set the BoundingBox call the SetBoundingBox method. | |
Empty | Returns an new instance of Bounds object with an empty bounds | |
IsEmpty | Gets a Boolean that specifies if BoundingBox is empty. |
Name | Description | |
---|---|---|
Add(Bounds) | Adds another bounds to this bounds | |
Add(Vector3) | Adds one Vector3 to this bounds | |
CalculateBoundingBox(PositionNormal) | Returns a BoundingBox that is calculated from the specified vertexBufferArray. | |
CalculateBoundingBox(PositionNormalTexture) | Returns a BoundingBox that is calculated from the specified vertexBufferArray. | |
CalculateBoundingBox(Vector3) | Returns a BoundingBox that is calculated from the specified positionsArray. | |
Clear | Clears the Bounds | |
Clone | Creates a new Bounds objects that is the same as this Bounds. | |
CopyFrom | Copies the specified bounds to this Bounds object. | |
Equals | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | |
GetCenterPosition | Returns center position of this Bounds. | |
GetDiagonalLength | Returns the length of the BoundingBox diagonal that is the same as distance from Minimum to Maximum positions. | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) | |
GetSize | Returns Vector3 that represents size of the BoundingBox | |
IsBoundingBoxEmpty | Returns true if BoundingBox is empty (any component is NaN or if all components are equal) | |
IsEqual(BoundingBox) | Returns true if this Bounds is equal as specified BoundingBox | |
IsEqual(Bounds) | Returns true if this Bounds is equal as specified Bounds | |
IsSame(BoundingBox) | Returns true if this Bounds is same as specified BoundingBox (using MathUtil.NearEqual to compare the values) | |
IsSame(Bounds) | Returns true if this Bounds is same as specified Bounds (using MathUtil.NearEqual to compare the values) | |
ScaleAndTranslate | 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). | |
SetBoundingBox(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. | |
SetBoundingBox(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. | |
ToString |
Returns a string that represents the current object.
(Overrides ObjectToString) | |
Transform(Matrix) | Transforms the current BoundingBox with the specified matrix | |
Transform(Transformation) | Transforms the current Bounds with the specified transformation | |
Transform(Matrix, Vector3, Vector3) | Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters. | |
Transform(Transformation, Vector3, Vector3) | Transforms the current BoundingBox with the specified matrix and writes the transformed minimum and maximum positions to the specified parameters. | |
TransformAllCorners | Sets the out minimum and maximum Vector3D with transforming the current bounds with the specified matrix (the current Bounds value is not changed). | |
Translate | Sets the out minimum and maximum Vector3D with translating the current bounds with the specified translateVector (the current Bounds value is not changed). |
Name | Description | |
---|---|---|
ToRect3D |
Converts DXEngine's Bounds object to WPF Rect3D
(Defined by Extensions) | |
UpdateDXBounds |
Checks if wpfBounds is not the same as dxBounds and in this case updates the values in dxBounds
(Defined by Extensions) | |
UpdateDXBounds |
Checks if wpfBounds is not the same as dxBounds and in this case updates the values in dxBounds
(Defined by Extensions) |