Constructor and Description |
---|
Coord3D(Coord3d c) |
Coord3D(double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
Coord3D |
add(Coord3D c2)
Add a Coord3d to the current one and return the result in a new Coord3d.
|
Coord3D |
add(double x,
double y,
double z) |
Coord3D |
add(float value)
Add a value to all components of the current Coord and return the result
in a new Coord3d.
|
Coord3D |
addSelf(Coord3d c2) |
Coord3D |
addSelf(float value) |
Coord3D |
addSelf(float x,
float y,
float z) |
Coord3D |
cartesian() |
Coord3D |
cartesianSelf() |
Coord3D |
div(Coord3D c2)
Divise a Coord3d to the current one and return the result in a new
Coord3d.
|
Coord3D |
div(double value)
Divise all components of the current Coord by the same value and return
the result in a new Coord3d.
|
void |
divSelf(Coord3D c2) |
boolean |
equals(Object obj) |
int |
hashCode() |
Coord3D |
mul(Coord3D c2)
Multiply a Coord3d to the current one and return the result in a new
Coord3d.
|
Coord3D |
mul(double value)
Multiply all components of the current Coord and return the result in a
new Coord3d.
|
Coord3D |
mul(double x,
double y,
double z) |
void |
mulSelf(Coord3D c2) |
Coord3D |
polar()
Converts the current Coord3d into polar coordinates and return the result
in a new Coord3d.
|
Coord3D |
polarSelf() |
Coord3D |
sub(Coord3D c2)
Substract a Coord3d to the current one and return the result in a new
Coord3d.
|
Coord3D |
sub(double value)
Substract a value to all components of the current Coord and return the
result in a new Coord3d.
|
Coord3D |
subSelf(Coord3D c2) |
Coord3D |
subSelf(double value) |
double[] |
toArray()
Return an array representation of this coordinate.
|
Coord3d |
toCoord3d() |
String |
toString()
Return a string representation of this coordinate.
|
public Coord3D(double x, double y, double z)
public Coord3D(Coord3d c)
public Coord3D cartesian()
public Coord3D cartesianSelf()
public Coord3D polar()
public Coord3D polarSelf()
public Coord3D add(Coord3D c2)
c2
- public Coord3D add(double x, double y, double z)
public Coord3D addSelf(float x, float y, float z)
public Coord3D add(float value)
value
- public Coord3D addSelf(float value)
public Coord3D sub(Coord3D c2)
c2
- public Coord3D sub(double value)
value
- public Coord3D subSelf(double value)
public Coord3D mul(Coord3D c2)
c2
- public Coord3D mul(double x, double y, double z)
public Coord3D mul(double value)
value
- public void mulSelf(Coord3D c2)
public Coord3D div(Coord3D c2)
c2
- public void divSelf(Coord3D c2)
public Coord3D div(double value)
value
- public String toString()
public Coord3d toCoord3d()
public double[] toArray()
Copyright © 2018. All rights reserved.