public class IAttractorGeo extends IPointFieldGeo
IFieldGeo.Decay
dir, pos
bidirectional, constantIntensity, customDecay, decay, gaussDecay, intensity, linearDecay, noDecay, threshold
Constructor and Description |
---|
IAttractorGeo(IVecI p) |
Modifier and Type | Method and Description |
---|---|
IAttractorGeo |
bidirectional(boolean b)
if bidirectional is on, field force vector is flipped when velocity of particle is going opposite
|
IAttractorGeo |
constantIntensity(boolean b)
if output vector is besed on constant length (intensity) or variable depending geometry when curve or surface tangent is used
|
IAttractorGeo |
gauss(double threshold)
alias of gaussianDecay
|
IAttractorGeo |
gaussian(double threshold)
alias of gaussianDecay
|
IAttractorGeo |
gaussianDecay(double threshold)
set Gaussian decay; Threshold is used as double of standard deviation (when distance is eqaul to threshold, output is 13.5% of original).
|
IVecI |
getForce(IVecI v,
IVecI orig)
get original field value out of curve parameter u
|
IAttractorGeo |
intensity(double i)
set output intensity
|
IAttractorGeo |
linear(double threshold)
alias of linearDecay
|
IAttractorGeo |
linearDecay(double threshold)
set linear decay; When distance is equal to threshold, output is zero.
|
IAttractorGeo |
noDecay()
set no decay
|
IAttractorGeo |
threshold(double t)
set decay threshold
|
public IAttractorGeo(IVecI p)
public IVecI getForce(IVecI v, IVecI orig)
IPointFieldGeo
getForce
in class IPointFieldGeo
public IAttractorGeo noDecay()
IPointFieldGeo
noDecay
in interface IFieldI
noDecay
in class IPointFieldGeo
public IAttractorGeo linearDecay(double threshold)
IPointFieldGeo
linearDecay
in interface IFieldI
linearDecay
in class IPointFieldGeo
public IAttractorGeo linear(double threshold)
IFieldGeo
linear
in interface IFieldI
linear
in class IPointFieldGeo
public IAttractorGeo gaussianDecay(double threshold)
IPointFieldGeo
gaussianDecay
in interface IFieldI
gaussianDecay
in class IPointFieldGeo
public IAttractorGeo gaussian(double threshold)
IFieldGeo
gaussian
in interface IFieldI
gaussian
in class IPointFieldGeo
public IAttractorGeo gauss(double threshold)
IFieldGeo
gauss
in interface IFieldI
gauss
in class IPointFieldGeo
public IAttractorGeo constantIntensity(boolean b)
IFieldGeo
constantIntensity
in interface IFieldI
constantIntensity
in class IFieldGeo
public IAttractorGeo bidirectional(boolean b)
bidirectional
in interface IFieldI
bidirectional
in class IFieldGeo
public IAttractorGeo threshold(double t)
IFieldGeo
threshold
in interface IFieldI
threshold
in class IPointFieldGeo
public IAttractorGeo intensity(double i)
IFieldGeo
intensity
in interface IFieldI
intensity
in class IPointFieldGeo