| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
Angle |
Real2Vector.angle(int i1,
int i2,
int i3)
get angle between 3 points
|
Angle |
Point3Vector.angle(int i1,
int i2,
int i3)
get angle between 3 points.
|
Angle |
Real2Vector.angle(IntSet is)
get angle between 3 points
|
Angle |
Point3Vector.angle(IntSet is)
get angle between 3 points
|
static Angle |
Point3.getAngle(Point3 p1,
Point3 p2,
Point3 p3)
get angle.
|
static Angle |
Real2.getAngle(Real2 p1,
Real2 p2,
Real2 p3)
get angle between 3 Real2s (the second is in the centre)
|
Angle |
Line2.getAngleMadeWith(Line2 line)
convenience method.
|
Angle |
Plane3.getAngleMadeWith(Plane3 pl2)
the angle between 2 planes.
|
Angle |
Vector2.getAngleMadeWith(Vector2 v)
I *think* I have written this so that the angle is positive as this
rotates anticlockwise to vector.
|
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.
|
Angle |
Transform2.getAngleOfRotation()
interpret current matrix as rotation about axis NOT YET CHECKED;
assume combined rotation and Xskew
and isotropic scale
(cos -sin) * (1 d) // d is tan(skew angle)
(sin cos) (0 1)
gives
(cos d.cos-sin)
(sin d.sin+cos)
|
Angle |
Transform2.getAngleOfRotationNew()
interpret current matrix as rotation about axis NOT YET CHECKED;
assume combined rotation and Xskew
and isotropic scale
(cos -sin) * (1 tand) // d is tan(skew angle)
(sin cos) (0 1)
gives
(cos tand.cos-sin)
(sin tand.sin+cos)
|
Angle |
Transform2.getAngleOfSkew(double eps)
interpret current matrix as rotation about axis NOT YET CHECKED;
assume combined rotation and Xskew
and isotropic scale
(cos -sin) * (1 tand) // d is tan(skew angle)
(sin cos) (0 1)
gives
(cos tand.cos-sin)
(sin tand.sin+cos)
|
Angle |
Polar.getTheta()
gets angular part
|
Angle |
Complex.getTheta()
angle.
|
static Angle |
Point3.getTorsion(Point3 p1,
Point3 p2,
Point3 p3,
Point3 p4)
torsion angle.
|
Angle |
Angle.multiplyBy(double f)
multiply an angle by a scalar
|
Angle |
Angle.plus(Angle a2)
add two angles
|
Angle |
Angle.subtract(Angle a2)
subtract two angles
|
Angle |
Point3Vector.torsion(int i1,
int i2,
int i3,
int i4)
get torsion angle between 4 points.
|
Angle |
Point3Vector.torsion(IntSet is)
get torsion angle between 4 points.
|
| Modifier and Type | Method and Description |
|---|---|
static Point3 |
Point3.calculateFromInternalCoordinates(Point3 p1,
Point3 p2,
Point3 p3,
double length,
Angle angle,
Angle torsion)
add point using internal coordinates.
|
Double |
Line2.calculateUnsignedDistanceBetweenLines(Line2 line,
Angle eps)
calculated unsigned distance between parallel lines.
|
int |
Transform3.getAxisAndAngle(Vector3 axis,
Angle ang)
interpret current matrix as rotation about general axis.
|
Integer |
Angle.getRightAngle(Angle eps)
Tests whether this is a right angle.
|
static Transform2 |
Transform2.getRotationAboutPoint(Angle angle,
Real2 point)
rotate about a point.
|
boolean |
Angle.greaterThan(Angle a)
is one angle greater than another (after normalisation)
|
boolean |
Angle.greaterThanOrEquals(Angle a)
is one angle greater than or equal to another (after normalisation)
|
boolean |
Line2.isAntiParallelTo(Line2 line,
Angle eps) |
boolean |
Angle.isEqualTo(Angle a)
are two angles equal
|
boolean |
Angle.isEqualTo(Angle a,
double eps)
are two angles equal
|
boolean |
Line2.isHorizontal(Angle eps) |
Boolean |
Line2.isParallelOrAntiParallelTo(Line2 line,
Angle eps)
are unsigned lines parallel.
|
Boolean |
Line2.isParallelTo(Line2 line,
Angle eps)
are two lines parallel within tolerance.
|
Boolean |
Line2.isPerpendicularTo(Line2 line,
Angle angleEps) |
boolean |
Line2.isVertical(Angle eps) |
boolean |
Angle.lessThan(Angle a)
is one angle less than another (after normalisation)
|
boolean |
Angle.lessThanOrEquals(Angle a)
is one angle less than or equal to another (after normalisation)
|
Angle |
Angle.plus(Angle a2)
add two angles
|
void |
Real2Vector.rotateAboutCentroid(Angle a)
rotate about centroid by given angle; MODIFIES 'this'
|
void |
Angle.shallowCopy(Angle a)
shallowCopy
|
Angle |
Angle.subtract(Angle a2)
subtract two angles
|
| Constructor and Description |
|---|
Angle(Angle a)
copy constructor
|
Complex(double r,
Angle th)
in polar coords
|
Polar(double a,
Angle b)
constructor.
|
Transform2(Angle zrot)
clockwise rotation about z- axis
|
Transform3(Angle xrot,
Angle yrot,
Angle zrot)
from rotation about the three orthogonal axes.
|
Transform3(Axis.Axis3 axis,
Angle rot)
from rotation about an axis.
|
Transform3(Line3 l,
Angle a)
Rotation about a line.
|
Transform3(Vector3 v,
Angle a)
from rotation about a vector.
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.