Packagede.popforge.imageprocessing.geom.maps
Classpublic class GeometricMap
SubclassesRippleMap, SphereMap, TwirlMap

The GeometricMap class is a base class for all kinds of mathematical described displacement maps. The whole idea behind this is that each function that works with this kind of displacement maps should be able to take any kind of map. So the type should always be GeometricMap and each geometric map will extend this base class. Therefore you will need only one filter (GeometricDisplacementMap) to use any geometric map since they follow all the same rules.

See also

de.popforge.imageprocessing.filters.distortion.GeometricDisplacementMap


Public Methods
 MethodDefined by
  
displace(point:Point):Boolean
Displaces a Point with the given displace function.
GeometricMap
  
toString():String
Builds and returns a string containing the name of the class.
GeometricMap
Method detail
displace()method
public 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.

Parameters
point:Point — The point that will be displaced.

Returns
Booleantrue if the x or y value of the Point has been changed.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.