public class AxisVector extends ComputedVector
| Constructor and Description |
|---|
AxisVector(int axisIndex,
int length) |
| Modifier and Type | Method and Description |
|---|---|
double |
dotProduct(AVector v) |
double |
dotProduct(Vector2 v) |
double |
dotProduct(Vector3 v) |
double |
elementSum()
Returns the sum of all elements in a vector
|
double |
get(int i) |
boolean |
isUnitLengthVector()
Returns true if the vector has unit length
|
boolean |
isZeroVector()
Returns true if this vector is a zero vector (all components zero)
|
int |
length() |
double |
magnitude()
Returns the magnitude (Euclidean length) of the vector
|
double |
magnitudeSquared() |
double |
normalise() |
isMutable, setabsolute, add, add, addMultiple, addMultiple, addMultiple, addMultipleToArray, addProduct, addProduct, addProduct, addToArray, addWeighted, angle, asList, asVector, clamp, clampMax, clampMin, clone, compareTo, copy, copyTo, copyTo, dimensionality, distance, distanceL1, distanceLinf, distanceSquared, divide, divide, divide, divideTo, dotProduct, epsilonEquals, epsilonEquals, equals, fill, fillRange, get, hashCode, interpolate, interpolate, isFullyMutable, isReference, iterator, join, maxAbsElement, multiply, multiply, multiply, multiplyTo, negate, normaliseMaxAbsElement, projectToPlane, reshape, scale, scale, scaleAdd, scaleToMagnitude, set, set, set, set, setValues, sub, subMultiple, subVector, toArray, toList, toStringpublic int length()
length in interface IVectorlength in class ComputedVectorpublic double magnitude()
AVectorpublic double magnitudeSquared()
magnitudeSquared in class AVectorpublic double elementSum()
AVectorelementSum in class AVectorpublic double dotProduct(AVector v)
dotProduct in class AVectorpublic boolean isZeroVector()
AVectorisZeroVector in class AVectorpublic boolean isUnitLengthVector()
AVectorisUnitLengthVector in class AVectorpublic double dotProduct(Vector3 v)
public double dotProduct(Vector2 v)
public double get(int i)
get in interface IVectorget in class ComputedVectorCopyright © 2013. All Rights Reserved.