net.algart.model3d.common.movement.model
Interface Spherical

All Superinterfaces:
HavingCenter, Item
All Known Implementing Classes:
ElasticBall

public interface Spherical
extends HavingCenter

Spherical item.

AlgART Laboratory 2010

Since:
JDK 1.5
Version:
1.0
Author:
Daniel Alievsky

Method Summary
Modifier and Type Method and Description
 double getRadius()
          Returns the radius of this spherical item.
 boolean intersects(Spherical other)
          Returns true if and only if this sphere intersects the specified other sphere, i.e.
 
Methods inherited from interface net.algart.model3d.common.movement.model.HavingCenter
getCenterX, getCenterY, getCenterZ, isInfinite, isNaN, setCenter, setCenterX, setCenterY, setCenterZ, squareOfDistance
 

Method Detail

getRadius

double getRadius()
Returns the radius of this spherical item.

Returns:
the radius of this spherical item.

intersects

boolean intersects(Spherical other)
Returns true if and only if this sphere intersects the specified other sphere, i.e. if the sum of their radii is greater than the distance between centers.

Parameters:
other - some other spherical item.
Returns:
whether the specified sphere intersects this one.


Hot at AlgART: HTML для чайников | Trinity for non-Christians | Диалог с Богом | Religion and Geometry