public final class SingleComponentVector extends AVector
| Constructor and Description |
|---|
SingleComponentVector(int componentIndex,
int dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
get(int i) |
boolean |
isFullyMutable()
Returns true if this vector is fully mutable, i.e.
|
int |
length() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
double |
normalise() |
void |
set(int i,
double value) |
absolute, add, add, addMultiple, addMultiple, addProduct, addProduct, addWeighted, angle, asList, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, hashCode, interpolate, interpolate, isMutable, isReference, isUnitLengthVector, isZeroVector, iterator, join, maxAbsComponent, multiply, multiply, multiply, multiplyTo, negate, projectToPlane, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toStringpublic SingleComponentVector(int componentIndex,
int dimensions)
public int length()
public double magnitude()
AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic boolean isFullyMutable()
AVectorisFullyMutable in class AVectorpublic double get(int i)
Copyright © 2012. All Rights Reserved.