public class MathXGeom extends Object
Constructor and Description |
---|
MathXGeom() |
Modifier and Type | Method and Description |
---|---|
static Point2D.Double |
rotatePoint2D(double x,
double y,
double rad)
Rotate a 2D point around the given angle.
|
static Point2D.Double |
rotatePoint2D(Point2D.Double p,
double rad)
Rotate a 2D point around the given angle.
|
public static Point2D.Double rotatePoint2D(Point2D.Double p, double rad)
p
- Point to rotate.rad
- Rotation angle in radiant.public static Point2D.Double rotatePoint2D(double x, double y, double rad)
x
- x-coordinate of the point.y
- y-coordinate of the point.rad
- Rotation angle in radiant.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.