org.wamblee.gps.geometry
Class Coordinates
java.lang.Object
org.wamblee.gps.geometry.Coordinates
- All Implemented Interfaces:
- java.io.Serializable
public class Coordinates
- extends java.lang.Object
- implements java.io.Serializable
Coordinates in some 3-dimensional coordinate system.
- Author:
- Erik Brakkee
- See Also:
- Serialized Form
|
Constructor Summary |
Coordinates(double aX1,
double aX2,
double aX3)
Constructs the coordinates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Coordinates
public Coordinates(double aX1,
double aX2,
double aX3)
- Constructs the coordinates.
- Parameters:
aX1 - First coordinate.aX2 - Second coordinate.aX3 - Third coordinate.
getX1
public double getX1()
getX2
public double getX2()
getX3
public double getX3()
getX
public double getX(int i)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
add
public Coordinates add(Coordinates aC)
subtract
public Coordinates subtract(Coordinates aC)
innerProduct
public double innerProduct(Coordinates aC)
outerProduct
public Coordinates outerProduct(Coordinates aC)
norm
public double norm()
scale
public Coordinates scale(double aMultiplier)
normalize
public Coordinates normalize()
Copyright © 2010. All Rights Reserved.