Package com.epimorphics.geo
Class Vector3d
- java.lang.Object
-
- com.epimorphics.geo.Vector3d
-
public class Vector3d extends Object
-
-
Constructor Summary
Constructors Constructor Description Vector3d(double x, double y, double z)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleangleTo(Vector3d v)Calculates the angle between ‘this’ vector and supplied vector.doubleangleTo(Vector3d v, Vector3d vSign)Calculates the angle between ‘this’ vector and supplied vector.Vector3dapplyTransform(HelmertTransform t)Applies Helmert transform to ‘this’ point using transform parameters t.Vector3dcross(Vector3d v)doubledot(Vector3d v)doublegetX()doublegetY()doublegetZ()doublelength()Vector3dminus(Vector3d v)Vector3dnegate()Vector3dplus(Vector3d v)Vector3drotateAround(Vector3d axis, double theta)Rotates ‘this’ point around an axis by a specified angle.Vector3dtimes(double scale)LatLonEtoLatLon(LatLonDatum datum)Converts ‘this’ point from cartesian (x/y/z) coordinates to polar (lat/lon) coordinates on specified datum.StringtoString()Vector3dunit()Normalize vector to its unit length vector
-
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
getZ
public double getZ()
-
times
public Vector3d times(double scale)
-
negate
public Vector3d negate()
-
dot
public double dot(Vector3d v)
-
length
public double length()
-
unit
public Vector3d unit()
Normalize vector to its unit length vector
-
angleTo
public double angleTo(Vector3d v, Vector3d vSign)
Calculates the angle between ‘this’ vector and supplied vector.
-
angleTo
public double angleTo(Vector3d v)
Calculates the angle between ‘this’ vector and supplied vector.
-
rotateAround
public Vector3d rotateAround(Vector3d axis, double theta)
Rotates ‘this’ point around an axis by a specified angle.
-
applyTransform
public Vector3d applyTransform(HelmertTransform t)
Applies Helmert transform to ‘this’ point using transform parameters t.
-
toLatLon
public LatLonE toLatLon(LatLonDatum datum)
Converts ‘this’ point from cartesian (x/y/z) coordinates to polar (lat/lon) coordinates on specified datum.
-
-