Package org.jzy3d.maths.doubles
Class Coord3D
java.lang.Object
org.jzy3d.maths.doubles.Coord3D
Store coordinates in double precision (whereas
Coord3d store coordinates with float
precision)- Author:
- martin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double x, double y, double z) add(float value) Add a value to all components of the current Coord and return the result in a new Coord3d.Add a Coord3d to the current one and return the result in a new Coord3d.addSelf(float value) addSelf(float x, float y, float z) div(double value) Divise all components of the current Coord by the same value and return the result in a new Coord3d.Divise a Coord3d to the current one and return the result in a new Coord3d.voidbooleaninthashCode()mul(double value) Multiply all components of the current Coord and return the result in a new Coord3d.mul(double x, double y, double z) Multiply a Coord3d to the current one and return the result in a new Coord3d.voidpolar()Converts the current Coord3d into polar coordinates and return the result in a new Coord3d.sub(double value) Substract a value to all components of the current Coord and return the result in a new Coord3d.Substract a Coord3d to the current one and return the result in a new Coord3d.subSelf(double value) double[]toArray()Return an array representation of this coordinate.toString()Return a string representation of this coordinate.
-
Field Details
-
x
public double x -
y
public double y -
z
public double z
-
-
Constructor Details
-
Coord3D
public Coord3D(double x, double y, double z) -
Coord3D
-
-
Method Details
-
cartesian
-
cartesianSelf
-
polar
Converts the current Coord3d into polar coordinates and return the result in a new Coord3d.- Returns:
- the result Coord3d
-
polarSelf
-
add
Add a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
add
-
addSelf
-
addSelf
-
add
Add a value to all components of the current Coord and return the result in a new Coord3d.- Parameters:
value-- Returns:
- the result Coord3d
-
addSelf
-
sub
Substract a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
subSelf
-
sub
Substract a value to all components of the current Coord and return the result in a new Coord3d.- Parameters:
value-- Returns:
- the result Coord3d
-
subSelf
-
mul
Multiply a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
mul
-
mul
Multiply all components of the current Coord and return the result in a new Coord3d.- Parameters:
value-- Returns:
- the result Coord3d
-
mulSelf
-
div
Divise a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
divSelf
-
div
Divise all components of the current Coord by the same value and return the result in a new Coord3d.- Parameters:
value-- Returns:
- the result Coord3d
-
toString
Return a string representation of this coordinate. -
toCoord3d
-
toArray
public double[] toArray()Return an array representation of this coordinate. -
hashCode
public int hashCode() -
equals
-