| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Field and Description |
|---|---|
protected Vector3 |
Plane3.vect
vector of plane (normalised)
|
static Vector3 |
Vector3.XV
X axis
|
static Vector3 |
Vector3.YV
Y axis
|
static Vector3 |
Vector3.ZEROV
zero-length vector
|
static Vector3 |
Vector3.ZV
Z axis
|
| Modifier and Type | Method and Description |
|---|---|
Vector3 |
Vector3.clone(Point3 p)
from Point3 vector is from origin to point
|
Vector3 |
Vector3.clone(Vector3 v)
copy constructor: synonym for copy constructor
|
Vector3 |
Vector3.cross(Vector3 v3)
create cross product.
|
Vector3 |
Vector3.getNonColinearVector()
get any vector not colinear with this.
|
Vector3 |
Vector3.getPerpendicularVector()
get any vector perpendicular to this.
|
Vector3 |
Transform3.getTranslation()
get translation component.
|
Vector3 |
Vector3.getUnitVector()
get normalized vector.
|
Vector3 |
Line3.getVector()
get vector from line.
|
Vector3 |
Plane3.getVector()
get vector.
|
Vector3 |
Vector3.multiplyBy(double f)
scalar multiplication.
|
Vector3 |
Vector3.negative()
negative of vector.
|
Vector3 |
Vector3.negativeEquals()
negative of vector.
|
Vector3 |
Vector3.normalise()
Deprecated.
(use normalize())
|
Vector3 |
Point3.normaliseCrystallographically()
normalise crystallographically.
|
Vector3 |
Vector3.normalize()
normalize vector.
|
Vector3 |
Vector3.plus(Vector3 v3)
vector addition.
|
Vector3 |
Vector3.projectOnto(Vector3 v)
projection of this onto vector.
|
Vector3 |
Vector3.round()
sets vector components to nearest integer value.
|
Vector3 |
Point3.subtract(Point3 p2)
vector between two points.
|
Vector3 |
Vector3.subtract(Vector3 v3)
vector subtraction.
|
Vector3 |
Vector3.transform(Transform3 t)
create transformed vector.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3 |
Vector3.clone(Vector3 v)
copy constructor: synonym for copy constructor
|
Vector3 |
Vector3.cross(Vector3 v3)
create cross product.
|
double |
Vector3.dot(Vector3 v3)
create dot product.
|
Angle |
Vector3.getAngleMadeWith(Vector3 v2)
calculate unsigned angle between vectors result = angle between this and
v2 uses acos(this.dot.v2) so angle is unsigned does not alter this.
|
int |
Transform3.getAxisAndAngle(Vector3 axis,
Angle ang)
interpret current matrix as rotation about general axis.
|
double |
Vector3.getScalarTripleProduct(Vector3 v2,
Vector3 v3)
calculate scalar triple product between vectors.
|
void |
Transform3.incrementTranslation(Vector3 dt)
increment translation component.
|
boolean |
Vector3.isColinearVector(Vector3 v)
are two vectors colinear.
|
boolean |
Vector3.isEqualTo(Vector3 v)
are two vectors equal lengths.
|
boolean |
Vector3.isIdenticalTo(Vector3 v)
are two vectors equal in all components.
|
boolean |
Vector3.longerThan(Vector3 v)
vector length > vector length
|
Point3 |
Point3.plus(Vector3 v)
New point from point+vector does NOT alter this
|
Vector3 |
Vector3.plus(Vector3 v3)
vector addition.
|
Point3Vector |
Point3Vector.plus(Vector3 v)
translate by a vector - do NOT modify
this |
void |
Point3.plusEquals(Vector3 v)
point from point and vector.
|
void |
Vector3.plusEquals(Vector3 v3)
vector addition.
|
void |
Point3Vector.plusEquals(Vector3 v)
translate by a vector - modify
this |
Vector3 |
Vector3.projectOnto(Vector3 v)
projection of this onto vector.
|
void |
Point3Vector.setElementAt(Vector3 v,
int i)
sets a given coordinate (i) to vector
|
void |
Transform3.setTranslation(Vector3 t)
set translation component.
|
Point3 |
Point3.subtract(Vector3 v)
New point from point minus vector.
|
Vector3 |
Vector3.subtract(Vector3 v3)
vector subtraction.
|
Point3Vector |
Point3Vector.subtract(Vector3 v)
translate negatively.
|
void |
Point3.subtractEquals(Vector3 vec3)
Shift point from vector3.
|
void |
Vector3.subtractEquals(Vector3 v3)
vector subtraction.
|
| Constructor and Description |
|---|
Line3(Point3 p,
Vector3 v)
construct from point and vector.
|
Plane3(Vector3 v,
double d)
formed from plane and distance.
|
Point3(Vector3 v)
make a point from a vector creates the point at head of vector rooted at
the origin
|
Transform3(RealSquareMatrix m,
Vector3 v)
from a matrix and vector.
|
Transform3(Vector3 v)
identity matrix with translation component.
|
Transform3(Vector3 v,
Angle a)
from rotation about a vector.
|
Transform3(Vector3 v1,
Vector3 v2)
rotation of one vector onto another.
|
Transform3(Vector3 v1,
Vector3 v2,
Vector3 v3)
from 3 vector components.
|
Vector3(Vector3 v)
copy constructor:
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.