Package org.djutils.draw
Interface Drawable3d
- 
- All Superinterfaces:
- Drawable<Point3d>,- Serializable
 - All Known Implementing Classes:
- Bounds3d,- LineSegment3d,- OrientedPoint3d,- Point3d,- Polygon3d,- PolyLine3d,- Ray3d,- Surface3d
 
 public interface Drawable3d extends Drawable<Point3d> Drawable3d is the Interface that all drawable objects that use 3D coordinates must implement.Copyright (c) 2020-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See DJUTILS License.- Author:
- Alexander Verbraeck, Peter Knoppers
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Bounds3dgetBounds()Retrieve the bounding box of the object.default intgetDimensions()Return the number of dimensions.Drawable2dproject()Project the object onto the z=0 plane.
 
- 
- 
- 
Method Detail- 
getBoundsBounds3d getBounds() Retrieve the bounding box of the object.- Returns:
- Bounds3d; the bounding box of the object
 
 - 
getDimensionsdefault int getDimensions() Return the number of dimensions.- Specified by:
- getDimensionsin interface- Drawable<Point3d>
- Returns:
- int; the number of dimensions
 
 - 
projectDrawable2d project() throws DrawRuntimeException Project the object onto the z=0 plane.- Returns:
- Drawable2d; the projected object
- Throws:
- DrawRuntimeException- when projecting onto the z=0 plane results in an invalid object. E.g. a Line3d that consists of points that all have the exact same x and y coordinates cannot be a line after projecting on the z=0 plane.
 
 
- 
 
-