OrientedBoundingRect Class

Oriented Bounding Box definition.
Public Class OrientedBoundingRect 
Implements ICloneable
This language is not supported or no code example is available.
public class OrientedBoundingRect : ICloneable
This language is not supported or no code example is available.
Name Description
Protected constructor OrientedBoundingRect(OrientedBoundingRect) Defines an OrientedBoundingBox from another one.
Public constructor OrientedBoundingRect(IList<Point2D>) Defines an OrientedBoundingRect from a list of Point2D.
Public constructor OrientedBoundingRect(IList<Point2D>, Vector2D, Vector2D) Defines an OrientedBoundingRect from a list of Point2D by forcing the input axis-X and axis-Y orientation.
Public constructor OrientedBoundingRect(Point2D, Vector2D, Vector2D, double, double) Defines an OrientedBoundingBox with axis-X and axis-Y orientation.
Public constructor OrientedBoundingRect(Point2D, double, double) Defines an OrientedBoundingBox with World-Axis-Aligned transformation.
Top
Name Description
Public property AccumulatedTransformation Gets the global transformation given by the transformation of the parents entity (if entity is a BlockReference or is into one of it).
Public property Size The size-box.
Public property Transformation the Oriented Bounding Box transformation that defines its orientation from the world-axes.
Top
Methods
 
Name Description
Public method AccumulateTransformation(Transformation) Adds transformation to the global transformation.
Public method Clone() Creates a deep copy of this oriented bounding rect.
Public method Static DoOverlap(OrientedBoundingRect, OrientedBoundingRect) Checks if two Oriented Bounding Boxes overlap each other.
Public method Static DoOverlapOrTouch(OrientedBoundingRect, OrientedBoundingRect) Checks if two Oriented Bounding Boxes overlap or touch each other.
Protected method Static DoOverlapOrTouchInternal(OrientedBoundingRect, OrientedBoundingRect, bool)
Public method Equals(Object) Determines whether the specified object is equal to the current object. (inherited from Object).
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetAxis() Gets the 3-axis defining the direction of the OrientedBoundingBox
Public method GetFullTransformation() Gets the OrientedBoundingBox transformation combined with the global transformation.
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetOrigin() Gets the Origin position of the OrientedBoundingBox.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method GetVertices() Gets the 8-vertices of the OrientedBoundingBox.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Protected method UpdateAxis()
Protected method UpdateData() Updates the data of the OrientedBoundingBox needed during collision/intersection check among others OrientedBoundingBoxes.
Protected method UpdateOrigin()
Protected method Static projectVerticesOnAxis(Point2D[], Vector2D, out double, out double)
Top
Remarks
 
The result is not guaranteed to be the minimum Oriented Bounding Box possible.

.NET Framework

Supported in: 4.8

In this article

Definition