package org.djutils.draw; import java.io.Serializable; import java.util.Iterator; import org.djutils.draw.point.Point; /** * Drawable.java. *
* Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
* BSD-style license. See DJUTILS License.
*
The point type (2d or 3d)
* @param The space type (2d or 3d)
*/
public interface Drawable
, S extends Space> extends Serializable { /** * Retrieve, or generate all points that make up the object. * @return Iterable<Point2d>; an iterator that generates all points that make up the object */ Iterator extends P> getPoints(); /** * Retrieve the number of points that make up the object. * @return int; the number of points that make up the object */ int size(); }