Package org.jzy3d.maths.doubles
Class Coord3D
- java.lang.Object
-
- org.jzy3d.maths.doubles.Coord3D
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coord3Dadd(double x, double y, double z)Coord3Dadd(float value)Add a value to all components of the current Coord and return the result in a new Coord3d.Coord3Dadd(Coord3D c2)Add a Coord3d to the current one and return the result in a new Coord3d.Coord3DaddSelf(float value)Coord3DaddSelf(float x, float y, float z)Coord3DaddSelf(Coord3d c2)Coord3Dcartesian()Coord3DcartesianSelf()Coord3Ddiv(double value)Divise all components of the current Coord by the same value and return the result in a new Coord3d.Coord3Ddiv(Coord3D c2)Divise a Coord3d to the current one and return the result in a new Coord3d.voiddivSelf(Coord3D c2)booleanequals(Object obj)inthashCode()Coord3Dmul(double value)Multiply all components of the current Coord and return the result in a new Coord3d.Coord3Dmul(double x, double y, double z)Coord3Dmul(Coord3D c2)Multiply a Coord3d to the current one and return the result in a new Coord3d.voidmulSelf(Coord3D c2)Coord3Dpolar()Converts the current Coord3d into polar coordinates and return the result in a new Coord3d.Coord3DpolarSelf()Coord3Dsub(double value)Substract a value to all components of the current Coord and return the result in a new Coord3d.Coord3Dsub(Coord3D c2)Substract a Coord3d to the current one and return the result in a new Coord3d.Coord3DsubSelf(double value)Coord3DsubSelf(Coord3D c2)double[]toArray()Return an array representation of this coordinate.Coord3dtoCoord3d()StringtoString()Return a string representation of this coordinate.
-
-
-
Constructor Detail
-
Coord3D
public Coord3D(double x, double y, double z)
-
Coord3D
public Coord3D(Coord3d c)
-
-
Method Detail
-
cartesian
public Coord3D cartesian()
-
cartesianSelf
public Coord3D cartesianSelf()
-
polar
public Coord3D polar()
Converts the current Coord3d into polar coordinates and return the result in a new Coord3d.- Returns:
- the result Coord3d
-
polarSelf
public Coord3D polarSelf()
-
add
public Coord3D add(Coord3D c2)
Add a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
add
public Coord3D add(double x, double y, double z)
-
addSelf
public Coord3D addSelf(float x, float y, float z)
-
add
public Coord3D add(float value)
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
public Coord3D addSelf(float value)
-
sub
public Coord3D sub(Coord3D c2)
Substract a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
sub
public Coord3D sub(double value)
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
public Coord3D subSelf(double value)
-
mul
public Coord3D mul(Coord3D c2)
Multiply a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
mul
public Coord3D mul(double x, double y, double z)
-
mul
public Coord3D mul(double value)
Multiply all components of the current Coord and return the result in a new Coord3d.- Parameters:
value-- Returns:
- the result Coord3d
-
mulSelf
public void mulSelf(Coord3D c2)
-
div
public Coord3D div(Coord3D c2)
Divise a Coord3d to the current one and return the result in a new Coord3d.- Parameters:
c2-- Returns:
- the result Coord3d
-
divSelf
public void divSelf(Coord3D c2)
-
div
public Coord3D div(double value)
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
public String toString()
Return a string representation of this coordinate.
-
toCoord3d
public Coord3d toCoord3d()
-
toArray
public double[] toArray()
Return an array representation of this coordinate.
-
-