public class DistanceAttenuation extends Object
Constructor and Description |
---|
DistanceAttenuation() |
Modifier and Type | Method and Description |
---|---|
void |
fillDistanceAttenuation(float innerRadius,
float maxConstantGain,
float unitDistance,
float unitGain,
float outerRadius,
float minConstantGain,
int curveType,
Point2f[] distanceAttenuation) |
void |
fillDistanceAttenuation(float innerRadius,
float maxConstantGain,
float unitDistance,
float unitGain,
int curveType,
Point2f[] distanceAttenuation) |
void |
fillDistanceAttenuation(float unitDistance,
float unitGain,
Point2f[] distanceAttenuation)
Fill a Distance Attenuation array
recommend that the distance attenuation Point2f array is defined to
be allocated to be 10 for DOUBLE_DISTANCE_HALF_GAIN - since 1/(2^10)
exceeds 1/1000 scale that is agreed to be affective zero gain
First method assumes that:
type is half gain for every double of distance
inner radius is 0.0 but region between 0th and 1st elements is constant
since gains for these two elements are the same
min gain approches zero.
|
public void fillDistanceAttenuation(float unitDistance, float unitGain, Point2f[] distanceAttenuation)
public void fillDistanceAttenuation(float innerRadius, float maxConstantGain, float unitDistance, float unitGain, int curveType, Point2f[] distanceAttenuation)
public void fillDistanceAttenuation(float innerRadius, float maxConstantGain, float unitDistance, float unitGain, float outerRadius, float minConstantGain, int curveType, Point2f[] distanceAttenuation)
Copyright © 2016–2022 SciJava. All rights reserved.