org.opensourcephysics.drawing3d.utils.mapping
Class MappingZXY

java.lang.Object
  extended by org.opensourcephysics.drawing3d.utils.mapping.MappingZXY
All Implemented Interfaces:
Mapping

public class MappingZXY
extends java.lang.Object
implements Mapping

Title: MappingXYZ

Version:
August 2009
Author:
Francisco Esquembre

Field Summary
 
Fields inherited from interface org.opensourcephysics.drawing3d.utils.mapping.Mapping
MAP_XYZ, MAP_XZY, MAP_YXZ, MAP_YZX, MAP_ZXY, MAP_ZYX
 
Constructor Summary
MappingZXY()
           
 
Method Summary
 double[] inverse(double[] point)
          Inverts the reordering
 boolean isPositivelyOriented()
          Whether the resulting axes are positively oriented
 double[] map(double[] point)
          Reorders the array with the coordinates for each axis in the correct order
 double[] quatForPrimitives()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingZXY

public MappingZXY()
Method Detail

map

public double[] map(double[] point)
Description copied from interface: Mapping
Reorders the array with the coordinates for each axis in the correct order

Specified by:
map in interface Mapping
Returns:
the given array

inverse

public double[] inverse(double[] point)
Description copied from interface: Mapping
Inverts the reordering

Specified by:
inverse in interface Mapping
Returns:
the given array

isPositivelyOriented

public boolean isPositivelyOriented()
Description copied from interface: Mapping
Whether the resulting axes are positively oriented

Specified by:
isPositivelyOriented in interface Mapping
Returns:
boolean

quatForPrimitives

public double[] quatForPrimitives()
Specified by:
quatForPrimitives in interface Mapping