$darkmode
DENOPTIM
|
Utilities for working in the Cartesian space. More...
Static Public Member Functions | |
static void | translateOrigin (Vector3d v, Point3d newOrigin) |
Changes the origin of a vector. More... | |
static Vector3d | getVectorFromTo (Point3d a, Point3d b) |
Creates an object Vector3d that originates from point a and goes to point b . More... | |
static Vector3d | getSumOfVector (Vector3d A, Vector3d B) |
Get sum of vector A and B. More... | |
static Vector3d | getDiffOfVector (Vector3d A, Vector3d B) |
Calculates the vector difference of vectors A and B. More... | |
static Vector3d | getNormalDirection (Vector3d dir) |
Generate a vector that is perpendicular to the given one. More... | |
static void | rotatedVectorWAxisAngle (Vector3d v, Vector3d axis, double ang) |
Rotate a vector according to a given rotation axis and angle. More... | |
Utilities for working in the Cartesian space.
Definition at line 15 of file CartesianSpaceUtils.java.
|
static |
Calculates the vector difference of vectors A and B.
A | vector A |
B | vector B |
Definition at line 71 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().
|
static |
Generate a vector that is perpendicular to the given one.
No control over which perpendicular direction will be chosen.
dir | input direction |
Definition at line 84 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().
|
static |
Get sum of vector A and B.
A | vector A |
B | vector B |
Definition at line 58 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().
|
static |
Creates an object Vector3d
that originates from point a
and goes to point b
.
a | starting point |
b | termination point |
a
to b
Definition at line 41 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().
|
static |
Rotate a vector according to a given rotation axis and angle.
v | original vector to be rotated |
axis | rotation axis |
ang | rotation angle |
Definition at line 137 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().
|
static |
Changes the origin of a vector.
v | the original vector. |
newOrigin | the new origin as a point in Cartesian space |
Definition at line 25 of file CartesianSpaceUtils.java.
Referenced by denoptim.utils.DummyAtomHandler.getDummyInSafeDirection().