Uses of Class
cloud.opencode.base.math.linalg.Vector
Packages that use Vector
-
Uses of Vector in cloud.opencode.base.math
Methods in cloud.opencode.base.math that return Vector -
Uses of Vector in cloud.opencode.base.math.linalg
Methods in cloud.opencode.base.math.linalg that return VectorModifier and TypeMethodDescriptionReturns the element-wise sum of this vector and another.Returns the cross product of this 3D vector and another 3D vector.Matrix.multiplyVector(Vector v) Returns the result of multiplying this matrix by a vector.Vector.negate()Returns the negation of this vector (all components multiplied by -1).Vector.normalize()Returns the unit vector in the same direction as this vector.static VectorVector.of(double... components) Vector.scale(double scalar) Returns this vector scaled by the given scalar.Returns the element-wise difference of this vector and another.static VectorVector.unit(int dimension, int index) Creates a unit vector with 1.0 at the given index and 0.0 elsewhere.static VectorVector.zero(int dimension) Creates a zero vector of the given dimension.Methods in cloud.opencode.base.math.linalg with parameters of type VectorModifier and TypeMethodDescriptionReturns the element-wise sum of this vector and another.doubleReturns the angle in radians between this vector and another.Returns the cross product of this 3D vector and another 3D vector.doubleVector.distanceTo(Vector other) Returns the Euclidean distance from this vector to another.doubleReturns the dot product of this vector and another.Matrix.multiplyVector(Vector v) Returns the result of multiplying this matrix by a vector.Returns the element-wise difference of this vector and another.