| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
Vector2 |
Line2.getUnitVector()
get unit vector convenience
|
Vector2 |
Line2.getVector() |
Vector2 |
Vector2.projectOnto(Vector2 v2)
projection of this onto vector.
|
| Modifier and Type | Method and Description |
|---|---|
Angle |
Vector2.getAngleMadeWith(Vector2 v)
I *think* I have written this so that the angle is positive as this
rotates anticlockwise to vector.
|
double |
Vector2.getPerpProduct(Vector2 v)
perp product (Hill).
|
boolean |
Vector2.isAntiParallelTo(Vector2 v,
double eps)
is vector antiparallel to another
calculates angle between vectors
|
boolean |
Vector2.isParallelTo(Vector2 v,
double eps)
is vector parallel to another
calculates angle between vectors
|
Vector2 |
Vector2.projectOnto(Vector2 v2)
projection of this onto vector.
|
| Constructor and Description |
|---|
Line2(Real2 from,
Vector2 v)
generates to
|
Transform2(RealSquareMatrix m,
Vector2 v)
from a 2x2 rotation matrix and a translation vector
|
Transform2(Vector2 v)
identity matrix with translation component
|
Transform2(Vector2 v1,
Vector2 v2)
rotation of one vector onto another
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.