| Package | de.popforge.imageprocessing.geom.maps |
| Class | public final class SphereMap |
| Inheritance | SphereMap GeometricMap |

| Method | Defined by | ||
|---|---|---|---|
|
SphereMap(centerX:Number, centerY:Number, radius:Number)
Creates a new SphereMap object.
| SphereMap | ||
|
Displaces a Point with the given displace function.
| SphereMap | ||
|
toString():String
Builds and returns a string containing the name of the class.
| SphereMap | ||
| SphereMap | () | constructor |
public function SphereMap(centerX:Number, centerY:Number, radius:Number)Creates a new SphereMap object.
ParameterscenterX:Number — The x position of the sphere´s center.
|
|
centerY:Number — The y position of the sphere´s center.
|
|
radius:Number — The radius of the sphere.
|
| displace | () | method |
public override function displace(point:Point):Boolean
Displaces a Point with the given displace function.
This function modifies the original point and checks if it has been modified or not.
A sphere map can check first if the point is inside of its radius. If this is not the
case the displace function should return false.
point:Point — The point that will be displaced.
|
Boolean — |
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|