lt.monarch.chart.chart3D.engine
Class PlaneMapper3D

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.PlaneMapper3D
All Implemented Interfaces:
java.io.Serializable, PlaneMapper

public class PlaneMapper3D
extends java.lang.Object
implements PlaneMapper, java.io.Serializable

Trivial plane mapper, which maps (x,y, z) coordinate pairs to Point3D objects.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
PlaneMapper3D()
           
 
Method Summary
Modifier and Type Method and Description
 GeneralPoint map(double x, double y)
          Maps a 2-dimensional point for a specified 3D coordinate values.
 GeneralPoint map(double x, double y, double z)
          Maps a 3-dimensional point for a specified 3D coordinate values.
 GeneralPoint map(double x, double y, double z, GeneralPoint template)
          Creates a 3-dimensional point for a specified 3D coordinate values.
 GeneralPoint map(double x, double y, GeneralPoint template)
          Creates a 2-dimensional point for a specified 3D coordinate values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaneMapper3D

public PlaneMapper3D()
Method Detail

map

public GeneralPoint map(double x,
                        double y)
Maps a 2-dimensional point for a specified 3D coordinate values. z coordinate value is 0

Specified by:
map in interface PlaneMapper
Parameters:
x - x coordinate value in range [0,1]
y - y coordinate value in range [0,1]
Returns:
creates and returns a Point3D

map

public GeneralPoint map(double x,
                        double y,
                        GeneralPoint template)
Creates a 2-dimensional point for a specified 3D coordinate values. z coordinate value is 0 The specified Point3D template is used, to avoid unnecessary object creation.

Specified by:
map in interface PlaneMapper
Parameters:
x - x coordinate value in range [0,1]
y - y coordinate value in range [0,1]
template - Point3D template
Returns:
n-dimensional point

map

public GeneralPoint map(double x,
                        double y,
                        double z)
Maps a 3-dimensional point for a specified 3D coordinate values.

Parameters:
x - x coordinate value in range [0,1]
y - y coordinate value in range [0,1]
z - z coordinate value in range [0,1]
Returns:
creates and returns a Point3D

map

public GeneralPoint map(double x,
                        double y,
                        double z,
                        GeneralPoint template)
Creates a 3-dimensional point for a specified 3D coordinate values. The specified Point3D template is used, to avoid unnecessary object creation.

Parameters:
x - x coordinate value in range [0,1]
y - y coordinate value in range [0,1]
z - z coordinate value in range [0,1]
template - Point3D template
Returns:
n-dimensional point