CoordinateSystemHelper
public static class CartesianHelper
Point2D ComputeCoordinateFromPolar(double angle, double radius)Summary: Computes the coordinate from polar.
Parameters:
angle
- The angle.
radius
- The radius.
double DistanceBetweenTwoPoints(Point2D pointA, Point2D pointB)Summary: The Euclidean distance between two points of the plane with Cartesian coordinates (x1,y1) and (x2,y2). d = Sqrt((x2-x1)^2 + (y2-y1)^2)
Parameters:
pointA
- The first point2d
pointB
- The second point2dReturns: The distance
double DistanceBetweenTwoPoints(Point3D pointA, Point3D pointB)Summary: The Euclidean distance between two points of the plane with Cartesian coordinates (x1,y1) and (x2,y2). d = Sqrt((x2-x1)^2 + (y2-y1)^2)
Parameters:
pointA
- The first point2d
pointB
- The second point2dReturns: The distance
double DistanceBetweenTwoPoints(CartesianCoordinate coordinateA, CartesianCoordinate coordinateB)Summary: The Euclidean distance between two points of the plane with Cartesian coordinates (x1,y1) and (x2,y2). d = Sqrt((x2-x1)^2 + (y2-y1)^2)
Parameters:
pointA
- The first point2d
pointB
- The second point2dReturns: The distance
double DistanceBetweenTwoPoints(double x1, double y1, double x2, double y2)Summary: The Euclidean distance between two points of the plane with Cartesian coordinates (x1,y1) and (x2,y2). d = Sqrt((x2-x1)^2 + (y2-y1)^2)
Parameters:
pointA
- The first point2d
pointB
- The second point2dReturns: The distance
double DistanceBetweenTwoPoints(double x1, double y1, double z1, double x2, double y2, double z2)Summary: The Euclidean distance between two points of the plane with Cartesian coordinates (x1,y1) and (x2,y2). d = Sqrt((x2-x1)^2 + (y2-y1)^2)
Parameters:
pointA
- The first point2d
pointB
- The second point2dReturns: The distance