igeo
Interface ITensionI

All Known Implementing Classes:
ISpacingEqualizer, ISpring, IStraightener, ITension, ITensionLine, ITensionLineOnCurve, ITensionOnCurve

public interface ITensionI

Interface API of tension classes

Version:
0.7.0.0;
Author:
Satoru Sugihara

Field Summary
static double defaultTension
           
 
Method Summary
 boolean constant()
          if constantTension is true, amount of force is always constant and it's equals to tension.
 ITensionI constant(boolean cnst)
           
 IParticleI pos(int i)
          alias of pt(int)
 IParticleI pos1()
          alias of pt1()
 IParticleI pos2()
          alias of pt2()
 IParticleI pt(int i)
          getting end point.
 IParticleI pt1()
          getting end point1.
 IParticleI pt2()
          getting end point2.
 double tension()
          tension is a coefficient to convert distance of two points to amount of force.
 ITensionI tension(double tension)
           
 

Field Detail

defaultTension

static final double defaultTension
See Also:
Constant Field Values
Method Detail

tension

double tension()
tension is a coefficient to convert distance of two points to amount of force.


tension

ITensionI tension(double tension)

constant

boolean constant()
if constantTension is true, amount of force is always constant and it's equals to tension. Only direction of force changes. But if the distance is zero, force is also zero.


constant

ITensionI constant(boolean cnst)

pt

IParticleI pt(int i)
getting end point. i==0 or i==1


pos

IParticleI pos(int i)
alias of pt(int)


pt1

IParticleI pt1()
getting end point1.


pos1

IParticleI pos1()
alias of pt1()


pt2

IParticleI pt2()
getting end point2.


pos2

IParticleI pos2()
alias of pt2()