Class AnchoredBoxable
Represents an object that is both anchored to a root point and can expand to a 3D box.
public class AnchoredBoxable : IGetRootAnchor, IExpandToBox3d
- Inheritance
-
AnchoredBoxable
- Implements
- Inherited Members
- Extension Methods
Constructors
AnchoredBoxable()
Initializes a new instance of the AnchoredBoxable class.
public AnchoredBoxable()
AnchoredBoxable(IGetRootAnchor, IExpandToBox3d)
Initializes a new instance of the AnchoredBoxable class with the specified anchor and boxable object.
public AnchoredBoxable(IGetRootAnchor anchor, IExpandToBox3d boxable)
Parameters
anchor
IGetRootAnchorThe object that provides the root anchor.
boxable
IExpandToBox3dThe object that can expand to a 3D box.
Properties
Anchor
Gets or sets the anchor point.
public Anchor Anchor { get; set; }
Property Value
Boxable
Gets or sets the boxable object that can expand to a 3D box.
public IExpandToBox3d Boxable { get; set; }
Property Value
Methods
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box
GetRootAnchor()
Get root anchor.
public Anchor GetRootAnchor()
Returns
- Anchor
root anchor.