| Modifier and Type | Method and Description |
|---|---|
Vector |
Vector.direction()
Returns a unit vector in the direction of this vector.
|
Vector |
Vector.minus(Vector that)
Returns the difference between this vector and that vector: this - that.
|
Vector |
Vector.plus(Vector that)
Returns the sum of this vector and that vector: this + that.
|
Vector |
Vector.times(double factor)
Returns the product of this factor multiplied by the scalar factor: this * factor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Vector.distanceTo(Vector that)
Returns the Euclidean distance between this vector and that vector.
|
double |
Vector.dot(Vector that)
Returns the inner product of this vector with that vector.
|
Vector |
Vector.minus(Vector that)
Returns the difference between this vector and that vector: this - that.
|
Vector |
Vector.plus(Vector that)
Returns the sum of this vector and that vector: this + that.
|
Copyright © 2014. All Rights Reserved.