Click or drag to resize

Box Structure

Represents a double precision oriented bounding box in three dimensional space.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public struct Box

The Box type exposes the following members.

Constructors
  NameDescription
Public methodBox(Bounds)
Constructs a box with the given bounds.
Public methodBox(Box)
Constructs a box with another specified Box object.
Public methodBox(BoxF)
Constructs a box with another specified box of BoxF format.
Public methodBox(Vector3)
Constructs a box with the given center point.
Public methodBox(Bounds, Vector3, Matrix3)
Constructs a box with the given bounds, origin and axis.
Public methodBox(Bounds, Vector3, Matrix3)
Constructs a box with the given bounds, origin and axis.
Public methodBox(Vector3, Vector3, Matrix3)
Constructs a box with the given center, extents and axis.
Top
Methods
  NameDescription
Public methodStatic memberAdd(Box, Vector3)
Addition of a given box and a vector.
Public methodStatic memberAdd(Box, Vector3, Box)
Addition of a given box and a vector.
Public methodContains(Bounds)
Determines whether the current instance of Box contains given bounds.
Public methodContains(Bounds)
Determines whether the current instance of Box contains given bounds.
Public methodContains(Box)
Determines whether the current instance of Box contains another instance of Box.
Public methodContains(Box)
Determines whether the current instance of Box contains another instance of Box.
Public methodContains(Sphere)
Determines whether the current instance of Box contains the given sphere.
Public methodContains(Sphere)
Determines whether the current instance of Box contains the given sphere.
Public methodContains(Vector3)
Determines whether the current instance of Box contains a given point.
Public methodContains(Vector3)
Determines whether the current instance of Box contains a given point.
Public methodEquals(Object)
Determines whether the specified object is equal to the current instance of Box.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Box, Double)
Determines whether the specified box is equal to the current instance of Box with a given precision.
Public methodExpand
Expands the current instance of Box by a given value.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetPlaneDistance(Plane)
Calculates the distance between the current instance of Box and the given plane.
Public methodGetPlaneDistance(Plane)
Calculates the distance between the current instance of Box and the given plane.
Public methodGetPlaneSide(Plane)
Determines from which side of the plane the box is on.
Public methodGetPlaneSide(Plane)
Determines from which side of the plane the box is on.
Public methodGetPointDistance
Calculates the distance between the current instance of Box and the given point.
Public methodGetPointDistanceSquared
Calculates the squared distance between the current instance of Box and the given point.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVolume
Returns the volume of the current instance of Box.
Public methodIntersects(Bounds)
Determines whether the given bounds intersect the current instance of Box.
Public methodIntersects(Bounds)
Determines whether the given bounds intersect the current instance of Box.
Public methodIntersects(Box)
Determines whether another instance of Box intersects the current instance of Box.
Public methodIntersects(Box)
Determines whether another instance of Box intersects the current instance of Box.
Public methodIntersects(Ray)
Determines whether the given ray intersects the current instance of Box.
Public methodIntersects(Ray, Double, Double)
Determines whether the given ray intersects the current instance of Box.
Public methodIsCleared
Determines whether the box is not initialized.
Public methodStatic memberMultiply(Box, Matrix3)
Multiplication of a given box and a matrix.
Public methodStatic memberMultiply(Box, Matrix4)
Multiplication of a given box and a matrix.
Public methodStatic memberMultiply(Box, Matrix3, Box)
Multiplication of a given box and a matrix.
Public methodStatic memberMultiply(Box, Matrix4, Box)
Multiplication of a given box and a matrix.
Public methodToBounds
Converts the current instance of Box into the equivalent Bounds structure.
Public methodToBounds(Bounds)
Converts the current instance of Box into the equivalent Bounds structure.
Public methodToBoxF
Converts the current instance of Box to the box of BoxF format.
Public methodToPoints
Converts the current instance of Box into the box corners array and returns the result.
Public methodToPoints(Vector3)
Converts the current instance of Box into the box corners array.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Addition of a given box and a vector.
Public operatorStatic memberEquality
Determines whether two given boxes are equal.
Public operatorStatic memberInequality
Determines whether two given boxes are unequal.
Public operatorStatic memberMultiply(Box, Matrix3)
Multiplication of a given box and a matrix.
Public operatorStatic memberMultiply(Box, Matrix4)
Multiplication of a given box and a matrix.
Top
Fields
  NameDescription
Public fieldAxis
Axis of the box.
Public fieldCenter
The center of the box.
Public fieldStatic memberCleared
Not initialized box.
Public fieldExtents
The extents of the box.
Public fieldStatic memberZero
The box with zero size.
Top
Extension Methods
See Also