public class Vector3d extends Object
| Constructor and Description |
|---|
Vector3d(double x,
double y,
double z) |
| Modifier and Type | Method and Description |
|---|---|
double |
angleTo(Vector3d v)
Calculates the angle between ‘this’ vector and supplied vector.
|
double |
angleTo(Vector3d v,
Vector3d vSign)
Calculates the angle between ‘this’ vector and supplied vector.
|
Vector3d |
applyTransform(HelmertTransform t)
Applies Helmert transform to ‘this’ point using transform parameters t.
|
Vector3d |
cross(Vector3d v) |
double |
dot(Vector3d v) |
double |
getX() |
double |
getY() |
double |
getZ() |
double |
length() |
Vector3d |
minus(Vector3d v) |
Vector3d |
negate() |
Vector3d |
plus(Vector3d v) |
Vector3d |
rotateAround(Vector3d axis,
double theta)
Rotates ‘this’ point around an axis by a specified angle.
|
Vector3d |
times(double scale) |
LatLonE |
toLatLon(LatLonDatum datum)
Converts ‘this’ point from cartesian (x/y/z) coordinates to polar (lat/lon) coordinates on
specified datum.
|
String |
toString() |
Vector3d |
unit()
Normalize vector to its unit length vector
|
public double getX()
public double getY()
public double getZ()
public Vector3d times(double scale)
public Vector3d negate()
public double dot(Vector3d v)
public double length()
public Vector3d unit()
public double angleTo(Vector3d v, Vector3d vSign)
{Vector3d} - v{Vector3d} - [vSign] - If supplied (and out of plane of this and v), angle is signed +ve if
this->v is clockwise looking along vSign, -ve in opposite direction (otherwise unsigned angle).public double angleTo(Vector3d v)
public Vector3d rotateAround(Vector3d axis, double theta)
{Vector3d} - axis - The axis being rotated around.{number} - theta - The angle of rotation (in radians).public Vector3d applyTransform(HelmertTransform t)
public LatLonE toLatLon(LatLonDatum datum)
{LatLonE.datum.transform} - datum - Datum to use when converting point.Copyright © 2019. All rights reserved.