Click or drag to resize
SbBox2f Structure
2D box which has planes parallel to the major axes and is specified by two points (specified as floating point) on a diagonal.

Namespace: OIV.Inventor
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax
public struct SbBox2f

The SbBox2f type exposes the following members.

Constructors
  NameDescription
Public methodSbBox2f(SbVec2f, SbVec2f)
Constructor for a 2D float box. min and max are the corners of the diagonal that defines the box.
Public methodSbBox2f(Single, Single, Single, Single)
Constructor for a 2D float box. xmin, ymin, xmax and ymax are the bounds of the box.
Top
Methods
  NameDescription
Public methodContains
Tests if the specified box is fully contained inside this box.
Public methodEquals
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodExtendBy(SbBox2f)
Extends this box (if necessary) to contain the specified box.
Public methodExtendBy(SbBox2f)
Extends this box (if necessary) to contain the specified box.
Public methodExtendBy(SbVec2f)
Extends this box (if necessary) to contain the specified point.
Public methodExtendBy(SbVec2f)
Extends this box (if necessary) to contain the specified point.
Public methodGetAspectRatio
Computes the aspect ratio (ratio of width to height) of box.
Public methodGetBounds(SbVec2f, SbVec2f)
Gets the corners of the box.
Public methodGetBounds(Single, Single, Single, Single)
Gets the corners of the box.
Public methodGetHashCode
Returns the hash code for the value of this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetMax Obsolete.
Use Max property instead.
Public methodGetMin Obsolete.
Use Min property instead.
Public methodGetOrigin
Gets box origin which is the same as the minimum corner of the box.
Public methodGetSize Obsolete.
Use Size property instead.
Public methodGetSize(SbVec2f)
Gets box size.
Public methodGetSize(Single, Single)
Gets box size.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasArea
Tests if the box defines a surface (not degenerated).
Public methodIntersect(SbBox2f)
Tests if the bb box intersects this box.
Public methodIntersect(SbBox2f)
Tests if the bb box intersects this box.
Public methodIntersect(SbVec2f)
Tests if the pt point intersects this box.
Public methodIntersect(SbVec2f)
Tests if the pt point intersects this box.
Public methodIntersection
Gets the intersection of the specified box with this box.
Public methodIsEmpty Obsolete.
Use Empty property instead.
Public methodMakeEmpty
Makes this box empty.
Public methodSetBounds(SbVec2f, SbVec2f)
Sets the corners of the box.
Public methodSetBounds(SbVec2f, SbVec2f)
Sets the corners of the box.
Public methodSetBounds(Single, Single, Single, Single)
Sets the corners of the box.
Public methodToString
Converts this SbBox2f structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
The equality operator.
Public operatorStatic memberInequality
The inequality operator.
Top
Fields
  NameDescription
Public fieldStatic memberEmptyBox
Represents an empty SbBox3s. This field is constant.
Top
Properties
  NameDescription
Public propertyEmpty
Gets a flag indicating if the box is empty (degenerate).
Public propertyMax
Gets the maximum point of the box.
Public propertyMin
Gets the minimum point of the box.
Public propertySize
Gets box size.
Top
Remarks
This class is part of the standard Open Inventor datatype classes and is used as input and output to geometry operations.
See Also