artisynth.core.mfreemodels
Class RadialWeightFunction
java.lang.Object
artisynth.core.mfreemodels.MFreeWeightFunction
artisynth.core.mfreemodels.RadialWeightFunction
- All Implemented Interfaces:
- DifferentiableFunction3x1, Function3x1, MISOFunction
- Direct Known Subclasses:
- CInfinityWeightFunction, ExponentialWeightFunction, SplineWeightFunction
public abstract class RadialWeightFunction
- extends MFreeWeightFunction
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
center
public Point3d center
myRadius
public double myRadius
RadialWeightFunction
public RadialWeightFunction()
eval
public abstract double eval(double r2)
clone
public abstract RadialWeightFunction clone()
- Specified by:
clone
in class MFreeWeightFunction
getType
public abstract RadialWeightFunction.RadialWeightFunctionType getType()
eval
public double eval(Point3d pnt)
setRadius
public void setRadius(double r)
getRadius
public double getRadius()
eval
public double eval(double x,
double y,
double z)
eval
public double eval(double[] in)
setCenter
public void setCenter(Point3d c)
getCenter
public Point3d getCenter()
getInputSize
public int getInputSize()
getIntersectionVolume
public double getIntersectionVolume(RadialWeightFunction fun)
getIntersectionVolume
public double getIntersectionVolume(MFreeWeightFunction fun)
- Specified by:
getIntersectionVolume
in class MFreeWeightFunction
computeIntersectionCentroid
public void computeIntersectionCentroid(Point3d centroid,
RadialWeightFunction fun)
computeIntersectionCentroid
public void computeIntersectionCentroid(Point3d centroid,
MFreeWeightFunction fun)
- Specified by:
computeIntersectionCentroid
in class MFreeWeightFunction
computeCentroid
public void computeCentroid(Vector3d centroid)
- Specified by:
computeCentroid
in class MFreeWeightFunction
updateBounds
public void updateBounds(Point3d min,
Point3d max)
- Specified by:
updateBounds
in class MFreeWeightFunction
intersects
public boolean intersects(RadialWeightFunction fun)
intersects
public boolean intersects(MFreeWeightFunction fun)
- Specified by:
intersects
in class MFreeWeightFunction
createWeightFunction
public static RadialWeightFunction createWeightFunction(RadialWeightFunction.RadialWeightFunctionType type,
Point3d c,
double radius)
isInDomain
public boolean isInDomain(Point3d pos,
double tol)
- Specified by:
isInDomain
in class MFreeWeightFunction