public class Point3DDouble
extends java.lang.Object
When discussing spherical coordinate systems, this uses the physics conventions (ISO 80000-2:2019) discussed in the Wikipedia article for Spherical Coordinate System
A spherical coordinate is represented as (r, theta, phi) where r is the distance to the origin, theta is the angle down from the z axis (in radians), and phi is the angle starting from the x axis and rotating toward the y axis (in radians.) When these are mapped to a Point3DDouble, x is r, y is theta, and z is phi.
An altitude-azimuth (altAz) coordinate is represented as (r, alt, az) where r is the distance to the origin, alt is the angle "up" from the horizon, and az is the azimuth angle in radians with 0 being north and increasing toward the east. When these are mapped to a Point3DDouble, x is r, y is alt, and z is az.
A cylindrical coordinate is similar to altitude-azimuth and represented as (r, az, h) where r is the distance in the x-y plane to the z axis, az is the azimuth angle in radians with 0 being north (y axis) and increasing toward the east (x axis), and h is the height (equal to the z axis.) When these are mapped to a Point3DDouble, x is r, y is az, and z is h.
Modifier and Type | Field and Description |
---|---|
double |
x
The x coordinate.
|
double |
y
The y coordinate.
|
double |
z
The z coordinate.
|
Constructor and Description |
---|
Point3DDouble(double x,
double y,
double z)
Construct a Point3DDouble with the specified coordinates.
|
Point3DDouble(Point3DFloat orig)
Construct a Point3DDouble from a Point3DFloat
|
Point3DDouble(Point3DInt orig)
Construct a Point3DDouble from a Point3DInt
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns a String representation of this point.
|
public double x
public double y
public double z
public Point3DDouble(double x, double y, double z)
public Point3DDouble(Point3DInt orig)
public Point3DDouble(Point3DFloat orig)