public class AngleCalc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static double |
TWO_PI_RADS |
Constructor and Description |
---|
AngleCalc() |
Modifier and Type | Method and Description |
---|---|
static double |
calcAngle(double x1,
double y1,
double x2,
double y2) |
static java.util.Vector<java.awt.geom.Point2D> |
linearizePoint2d(java.util.Vector<java.awt.geom.Point2D> points,
double angleTolerance) |
static void |
main(java.lang.String[] args) |
static double |
nomalizeAngleDegrees180(double angle) |
static double |
nomalizeAngleDegrees360(double angle) |
static double |
nomalizeAngleRads2Pi(double angle) |
static double |
nomalizeAngleRadsPi(double angle) |
static double[] |
rotate(double angleRadians,
double x,
double y,
boolean clockwiseRotation)
XY Coordinate conversion considering a rotation angle.
|
public static final double TWO_PI_RADS
public static java.util.Vector<java.awt.geom.Point2D> linearizePoint2d(java.util.Vector<java.awt.geom.Point2D> points, double angleTolerance)
public static double calcAngle(double x1, double y1, double x2, double y2)
public static double nomalizeAngleRads2Pi(double angle)
angle
- public static double nomalizeAngleRadsPi(double angle)
angle
- public static double nomalizeAngleDegrees360(double angle)
angle
- public static double nomalizeAngleDegrees180(double angle)
angle
- public static double[] rotate(double angleRadians, double x, double y, boolean clockwiseRotation)
angleRadians
- anglex
- original x value on entry, rotated x value on exit.y
- original y value on entry, rotated y value on exit.clockwiseRotation
- clockwiseRotation rotation or notpublic static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.