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

All Superinterfaces:
InteractionRule
All Known Implementing Classes:
ElasticBallsInteractionRule

public interface SymmetricInteractionRule
extends InteractionRule

True interaction between two objects, according Newton's 3rd law. If a class implements this interface, then there is a guarantee that InteractionRule.isApplicable(Item, Item) method returns the same result not depending on the order of its arguments, and if calculateForce(resultXYZ, item1, item2, time) returns some force F=(Fx,Fy,Fz) (in first 3 elements of resultXYZ array), then the symmetric call calculateForce(resultXYZ, item2, item1, time) returns the force −F=(−Fx,−Fy,−Fz).

AlgART Laboratory 2010

Since:
JDK 1.5
Version:
1.0
Author:
Daniel Alievsky

Method Summary
Modifier and Type Method and Description
 
Methods inherited from interface net.algart.model3d.common.movement.model.InteractionRule
calculateForce, isApplicable
 



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