public class Projection extends Object
| Constructor and Description |
|---|
Projection(Vector v,
List<Vector> basis)
Project a vector v onto a set of basis \(\{w_{i}\}\).
|
Projection(Vector v,
Vector w)
Project a vector v onto another vector.
|
Projection(Vector v,
Vector[] basis)
Project a vector v onto a set of basis \(\{w_{i}\}\).
|
| Modifier and Type | Method and Description |
|---|---|
ImmutableVector |
getOrthogonalVector()
Get the orthogonal vector which is equal to v minus the projection of v on \(\{w_{i}\}\).
|
double |
getProjectionLength(int i)
Get the length of v projected on each dimension \(\{w_{i}\}\).
|
ImmutableVector |
getProjectionVector(int i)
Get the i-th projected vector of v on \(\{w_{i}\}\).
|
public Projection(Vector v, List<Vector> basis)
v - a vectorbasis - \(\{w_{i}\}\)public Projection(Vector v, Vector[] basis)
v - a vectorbasis - \(\{w_{i}\}\)public ImmutableVector getOrthogonalVector()
public double getProjectionLength(int i)
i - an index, counting from 0public ImmutableVector getProjectionVector(int i)
i - an index, counting from 0Copyright © 2010-2026 NM Group. All Rights Reserved.