com.partnersoft.geometry.xy
Class XyConstants

java.lang.Object
  extended by com.partnersoft.geometry.xy.XyConstants
All Implemented Interfaces:
Constants

public class XyConstants
extends java.lang.Object
implements Constants

Geometric constants and conversion factors.

Copyright 2007 Partner Software, Inc.

Version:
$Id: XyConstants.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Field Summary
static XyAffineTransform AFFINE_IDENTITY
          Identity affine transformation.
static XyAngle ANGLE_EIGHTH_CIRCLE
          Angle representing an eighth circle; 45 degrees, pi/4 radians.
static XyAngle ANGLE_FULL_CIRCLE
          Angle representing a full circle; 360 degrees,2 pi radians.
static XyAngle ANGLE_HALF_CIRCLE
          Angle representing half a circle; 180 degrees, pi radians.
static XyAngle ANGLE_QUARTER_CIRCLE
          Angle representing a quarter circle; 90 degrees, pi/2 radians.
static XyAngle ANGLE_SIXTIETH_CIRCLE
          Angle representing a sixtieth of a circle; 6 degrees, pi/30 radians.
static XyAngle ANGLE_THREE_EIGHTH_CIRCLE
          Angle representing a 3/8 circle; 135 degrees, 3/4 pi radians.
static XyAngle ANGLE_THREE_QUARTER_CIRCLE
          Angle representing half a circle; 270 degrees, 3/2 pi radians.
static XyAngle ANGLE_ZERO
          Angle representing no angle; 0 degrees, 0 radians.
static double DEGREES_TO_MICRONS
          Conversion factor to convert degrees to microns (1/1048576 second).
static double DEGREES_TO_MINUTES
          Conversion factor to convert degrees to minutes.
static double DEGREES_TO_RADIANS
          Conversion factor to convert degrees to radians.
static double DEGREES_TO_REVOLUTIONS
          Conversion factor to convert degrees to revolutions.
static double DEGREES_TO_SECONDS
          Conversion factor to convert degrees to seconds.
static XyDirection EAST
          The direction with theta = 0 and bearing = 90 (due east).
static double FIVE_QUARTER_PI
          Five quarter pi is 3/8 of a pie.
static double HALF_PI
          A half pi is a quarter of a pie.
static double MICRONS_TO_DEGREES
          Conversion factor to convert microns to degrees.
static double MICRONS_TO_MINUTES
          Conversion factor to convert microns to minutes.
static double MICRONS_TO_RADIANS
          Conversion factor to convert microns to radians.
static double MICRONS_TO_REVOLUTIONS
          Conversion factor to convert microns to revolutions.
static double MICRONS_TO_SECONDS
          Conversion factor to convert microns to seconds.
static double MINUTES_TO_DEGREES
          Conversion factor to convert minutes to degrees.
static double MINUTES_TO_MICRONS
          Conversion factor to convert minutes to microns (1/1048576 second).
static double MINUTES_TO_RADIANS
          Conversion factor to convert minutes to radians.
static double MINUTES_TO_REVOLUTIONS
          Conversion factor to convert minutes to revolutions.
static double MINUTES_TO_SECONDS
          Conversion factor to convert minutes to seconds.
static XyDirection NORTH
          The direction with theta = 1/2 PI and bearing = 0 (due north).
static XyDirection NORTHEAST
          The direction with theta = 1/4 PI and bearing = 45 (northeast).
static XyDirection NORTHWEST
          The direction with theta = 3/4 PI and bearing = 315 (northwest).
static double PI
          One pi is half a pie.
static XyPoint POINT_ZERO
          The point (0.0, 0.0).
static double QUARTER_PI
          A quarter pi is an eighth of a pie.
static double RADIANS_TO_DEGREES
          Conversion factor to convert radians to degrees.
static double RADIANS_TO_MICRONS
          Conversion factor to convert radians to microns (1/1048576 second).
static double RADIANS_TO_MINUTES
          Conversion factor to convert radians to minutes.
static double RADIANS_TO_REVOLUTIONS
          Conversion factor to convert radians to revolutions.
static double RADIANS_TO_SECONDS
          Conversion factor to convert radians to seconds.
static int REVOLUTIONS_TO_DEGREES
          Conversion factor to convert revolutions to degrees.
static long REVOLUTIONS_TO_MICRONS
          Conversion factor to convert revolutions to microns (1/1048576 second).
static int REVOLUTIONS_TO_MINUTES
          Conversion factor to convert revolutions to minutes.
static double REVOLUTIONS_TO_RADIANS
          Conversion factor to convert revolutions to radians.
static int REVOLUTIONS_TO_SECONDS
          Conversion factor to convert revolutions to seconds.
static XyRotation ROTATION_HALF_LEFT
          Half turn to port.
static XyRotation ROTATION_HALF_RIGHT
          Half turn to starboard.
static XyRotation ROTATION_QUARTER_LEFT
          Quarter turn to port.
static XyRotation ROTATION_QUARTER_RIGHT
          Quarter turn to starboard.
static XyRotation ROTATION_ZERO
          No rotation at all.
static double SECONDS_TO_DEGREES
          Conversion factor to convert seconds to degrees.
static double SECONDS_TO_MICRONS
          Conversion factor to convert seconds to microns (1/1048576 second).
static double SECONDS_TO_MINUTES
          Conversion factor to convert seconds to minutes.
static double SECONDS_TO_RADIANS
          Conversion factor to convert seconds to radians.
static double SECONDS_TO_REVOLUTIONS
          Conversion factor to convert seconds to revolutions.
static double SEVEN_QUARTER_PI
          Seven quarter pi is 7/8 of a pie.
static XyDirection SOUTH
          The direction with theta = 3/2 PI and bearing = 180 (due south).
static XyDirection SOUTHEAST
          The direction with theta = 7/4 PI and bearing = 135 (southeast).
static XyDirection SOUTHWEST
          The direction with theta = 5/4 PI and bearing = 225 (southwest).
static double THREE_HALF_PI
          3/2 pi is a 3/4 of a pie.
static double THREE_QUARTER_PI
          Three quarter pi is 3/8 of a pie.
static double TWO_PI
          Two pi is a whole pie.
static XyVector VECTOR_ZERO
          Vector representing no delta - (0, 0).
static XyDirection WEST
          The direction with theta = PI and bearing = 270 (due west).
 
Constructor Summary
XyConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

public static final double PI
One pi is half a pie.

See Also:
Constant Field Values

TWO_PI

public static final double TWO_PI
Two pi is a whole pie.

See Also:
Constant Field Values

HALF_PI

public static final double HALF_PI
A half pi is a quarter of a pie.

See Also:
Constant Field Values

THREE_HALF_PI

public static final double THREE_HALF_PI
3/2 pi is a 3/4 of a pie.

See Also:
Constant Field Values

QUARTER_PI

public static final double QUARTER_PI
A quarter pi is an eighth of a pie.

See Also:
Constant Field Values

THREE_QUARTER_PI

public static final double THREE_QUARTER_PI
Three quarter pi is 3/8 of a pie.

See Also:
Constant Field Values

FIVE_QUARTER_PI

public static final double FIVE_QUARTER_PI
Five quarter pi is 3/8 of a pie.

See Also:
Constant Field Values

SEVEN_QUARTER_PI

public static final double SEVEN_QUARTER_PI
Seven quarter pi is 7/8 of a pie.

See Also:
Constant Field Values

DEGREES_TO_REVOLUTIONS

public static final double DEGREES_TO_REVOLUTIONS
Conversion factor to convert degrees to revolutions. E.g.
 revolutions = degrees * DEGREES_TO_REVOLUTIONS
 

See Also:
Constant Field Values

DEGREES_TO_RADIANS

public static final double DEGREES_TO_RADIANS
Conversion factor to convert degrees to radians. E.g.
 radians = degrees * DEGREES_TO_RADIANS
 

See Also:
Constant Field Values

DEGREES_TO_MINUTES

public static final double DEGREES_TO_MINUTES
Conversion factor to convert degrees to minutes. E.g.
 minutes = degrees * DEGREES_TO_MINUTES
 

See Also:
Constant Field Values

DEGREES_TO_SECONDS

public static final double DEGREES_TO_SECONDS
Conversion factor to convert degrees to seconds. E.g.
 seconds = degrees * DEGREES_TO_SECONDS
 

See Also:
Constant Field Values

DEGREES_TO_MICRONS

public static final double DEGREES_TO_MICRONS
Conversion factor to convert degrees to microns (1/1048576 second). E.g.
 microns = degrees * DEGREES_TO_MICRONS
 

See Also:
Constant Field Values

MINUTES_TO_REVOLUTIONS

public static final double MINUTES_TO_REVOLUTIONS
Conversion factor to convert minutes to revolutions. E.g.
 revolutions = minutes * MINUTES_TO_REVOLUTIONS
 

See Also:
Constant Field Values

MINUTES_TO_RADIANS

public static final double MINUTES_TO_RADIANS
Conversion factor to convert minutes to radians. E.g.
 radians = minutes * MINUTES_TO_RADIANS
 

See Also:
Constant Field Values

MINUTES_TO_DEGREES

public static final double MINUTES_TO_DEGREES
Conversion factor to convert minutes to degrees. E.g.
 degrees = minutes * MINUTES_TO_DEGREES
 

See Also:
Constant Field Values

MINUTES_TO_SECONDS

public static final double MINUTES_TO_SECONDS
Conversion factor to convert minutes to seconds. E.g.
 seconds = minutes * MINUTES_TO_SECONDS
 

See Also:
Constant Field Values

MINUTES_TO_MICRONS

public static final double MINUTES_TO_MICRONS
Conversion factor to convert minutes to microns (1/1048576 second). E.g.
 microns = minutes * MINUTES_TO_MICRONS
 

See Also:
Constant Field Values

SECONDS_TO_REVOLUTIONS

public static final double SECONDS_TO_REVOLUTIONS
Conversion factor to convert seconds to revolutions. E.g.
 revolutions = seconds * SECONDS_TO_REVOLUTIONS
 

See Also:
Constant Field Values

SECONDS_TO_MICRONS

public static final double SECONDS_TO_MICRONS
Conversion factor to convert seconds to microns (1/1048576 second). E.g.
 microns = seconds * SECONDS_TO_MICRONS
 

See Also:
Constant Field Values

SECONDS_TO_RADIANS

public static final double SECONDS_TO_RADIANS
Conversion factor to convert seconds to radians. E.g.
 radians = seconds * SECONDS_TO_RADIANS
 

See Also:
Constant Field Values

SECONDS_TO_DEGREES

public static final double SECONDS_TO_DEGREES
Conversion factor to convert seconds to degrees. E.g.
 degrees = seconds * SECONDS_TO_DEGREES
 

See Also:
Constant Field Values

SECONDS_TO_MINUTES

public static final double SECONDS_TO_MINUTES
Conversion factor to convert seconds to minutes. E.g.
 minutes = seconds * SECONDS_TO_MINUTES
 

See Also:
Constant Field Values

MICRONS_TO_REVOLUTIONS

public static final double MICRONS_TO_REVOLUTIONS
Conversion factor to convert microns to revolutions. E.g.
 revolutions = microns * MICRONS_TO_REVOLUTIONS
 

See Also:
Constant Field Values

MICRONS_TO_SECONDS

public static final double MICRONS_TO_SECONDS
Conversion factor to convert microns to seconds. E.g.
 microns = microns * MICRONS_TO_MICRONS
 

See Also:
Constant Field Values

MICRONS_TO_RADIANS

public static final double MICRONS_TO_RADIANS
Conversion factor to convert microns to radians. E.g.
 radians = microns * MICRONS_TO_RADIANS
 

See Also:
Constant Field Values

MICRONS_TO_DEGREES

public static final double MICRONS_TO_DEGREES
Conversion factor to convert microns to degrees. E.g.
 degrees = microns * MICRONS_TO_DEGREES
 

See Also:
Constant Field Values

MICRONS_TO_MINUTES

public static final double MICRONS_TO_MINUTES
Conversion factor to convert microns to minutes. E.g.
 minutes = microns * MICRONS_TO_MINUTES
 

See Also:
Constant Field Values

RADIANS_TO_REVOLUTIONS

public static final double RADIANS_TO_REVOLUTIONS
Conversion factor to convert radians to revolutions. E.g.
 revolutions = radians * RADIANS_TO_REVOLUTIONS;
 

See Also:
Constant Field Values

RADIANS_TO_DEGREES

public static final double RADIANS_TO_DEGREES
Conversion factor to convert radians to degrees. E.g.
 degrees = radians * RADIANS_TO_DEGREES;
 

See Also:
Constant Field Values

RADIANS_TO_MINUTES

public static final double RADIANS_TO_MINUTES
Conversion factor to convert radians to minutes. E.g.
 minutes = radians * RADIANS_TO_MINUTES;
 

See Also:
Constant Field Values

RADIANS_TO_SECONDS

public static final double RADIANS_TO_SECONDS
Conversion factor to convert radians to seconds. E.g.
 seconds = radians * RADIANS_TO_DEGREES;
 

See Also:
Constant Field Values

RADIANS_TO_MICRONS

public static final double RADIANS_TO_MICRONS
Conversion factor to convert radians to microns (1/1048576 second). E.g.
 microns = radians * RADIANS_TO_MICRONS;
 

See Also:
Constant Field Values

REVOLUTIONS_TO_RADIANS

public static final double REVOLUTIONS_TO_RADIANS
Conversion factor to convert revolutions to radians. E.g.
 radians = revolutions * REVOLUTIONS_TO_RADIANS;
 

See Also:
Constant Field Values

REVOLUTIONS_TO_DEGREES

public static final int REVOLUTIONS_TO_DEGREES
Conversion factor to convert revolutions to degrees. E.g.
 degrees = revolutions * REVOLUTIONS_TO_DEGREES;
 

See Also:
Constant Field Values

REVOLUTIONS_TO_MINUTES

public static final int REVOLUTIONS_TO_MINUTES
Conversion factor to convert revolutions to minutes. E.g.
 minutes = revolutions * REVOLUTIONS_TO_MINUTES;
 

See Also:
Constant Field Values

REVOLUTIONS_TO_SECONDS

public static final int REVOLUTIONS_TO_SECONDS
Conversion factor to convert revolutions to seconds. E.g.
 seconds = revolutions * REVOLUTIONS_TO_SECONDS;
 

See Also:
Constant Field Values

REVOLUTIONS_TO_MICRONS

public static final long REVOLUTIONS_TO_MICRONS
Conversion factor to convert revolutions to microns (1/1048576 second). E.g.
 microns = revolutions * REVOLUTIONS_TO_MICRONS;
 

See Also:
Constant Field Values

POINT_ZERO

public static final XyPoint POINT_ZERO
The point (0.0, 0.0).


EAST

public static final XyDirection EAST
The direction with theta = 0 and bearing = 90 (due east).


NORTH

public static final XyDirection NORTH
The direction with theta = 1/2 PI and bearing = 0 (due north).


WEST

public static final XyDirection WEST
The direction with theta = PI and bearing = 270 (due west).


SOUTH

public static final XyDirection SOUTH
The direction with theta = 3/2 PI and bearing = 180 (due south).


NORTHEAST

public static final XyDirection NORTHEAST
The direction with theta = 1/4 PI and bearing = 45 (northeast).


NORTHWEST

public static final XyDirection NORTHWEST
The direction with theta = 3/4 PI and bearing = 315 (northwest).


SOUTHWEST

public static final XyDirection SOUTHWEST
The direction with theta = 5/4 PI and bearing = 225 (southwest).


SOUTHEAST

public static final XyDirection SOUTHEAST
The direction with theta = 7/4 PI and bearing = 135 (southeast).


ANGLE_ZERO

public static final XyAngle ANGLE_ZERO
Angle representing no angle; 0 degrees, 0 radians.


ANGLE_SIXTIETH_CIRCLE

public static final XyAngle ANGLE_SIXTIETH_CIRCLE
Angle representing a sixtieth of a circle; 6 degrees, pi/30 radians.


ANGLE_EIGHTH_CIRCLE

public static final XyAngle ANGLE_EIGHTH_CIRCLE
Angle representing an eighth circle; 45 degrees, pi/4 radians.


ANGLE_QUARTER_CIRCLE

public static final XyAngle ANGLE_QUARTER_CIRCLE
Angle representing a quarter circle; 90 degrees, pi/2 radians.


ANGLE_THREE_EIGHTH_CIRCLE

public static final XyAngle ANGLE_THREE_EIGHTH_CIRCLE
Angle representing a 3/8 circle; 135 degrees, 3/4 pi radians.


ANGLE_HALF_CIRCLE

public static final XyAngle ANGLE_HALF_CIRCLE
Angle representing half a circle; 180 degrees, pi radians.


ANGLE_THREE_QUARTER_CIRCLE

public static final XyAngle ANGLE_THREE_QUARTER_CIRCLE
Angle representing half a circle; 270 degrees, 3/2 pi radians.


ANGLE_FULL_CIRCLE

public static final XyAngle ANGLE_FULL_CIRCLE
Angle representing a full circle; 360 degrees,2 pi radians.


ROTATION_ZERO

public static final XyRotation ROTATION_ZERO
No rotation at all.


ROTATION_QUARTER_LEFT

public static final XyRotation ROTATION_QUARTER_LEFT
Quarter turn to port.


ROTATION_QUARTER_RIGHT

public static final XyRotation ROTATION_QUARTER_RIGHT
Quarter turn to starboard.


ROTATION_HALF_LEFT

public static final XyRotation ROTATION_HALF_LEFT
Half turn to port.


ROTATION_HALF_RIGHT

public static final XyRotation ROTATION_HALF_RIGHT
Half turn to starboard.


AFFINE_IDENTITY

public static final XyAffineTransform AFFINE_IDENTITY
Identity affine transformation.


VECTOR_ZERO

public static final XyVector VECTOR_ZERO
Vector representing no delta - (0, 0).

Constructor Detail

XyConstants

public XyConstants()