Class Ball
java.lang.Object
nl.tudelft.simulation.examples.dsol.animation.Ball
- All Implemented Interfaces:
Locatable
- Direct Known Subclasses:
Ball,DiscreteBall
A Ball.
Copyright (c) 2003-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.
- Author:
- Peter Jacobs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ, getLocation, getZ
-
Field Details
-
RADIUS
public static final double RADIUSthe radius of the ball.- See Also:
-
theta
protected double thetathe angle of the ball.
-
-
Constructor Details
-
Ball
public Ball(int nr) constructs a new Ball.- Parameters:
nr- the ball number
-
-
Method Details
-
getRelativeBounds
public org.djutils.draw.bounds.Bounds3d getRelativeBounds()- Specified by:
getRelativeBoundsin interfaceLocatable
-
toString
-