|
||||||||
PREV NEXT | FRAMES NO FRAMES |
add
method takes two vectors and adds them, placing the
result in a third vector.
add
method takes two vectors and adds them, placing the
result in a third vector.
convert
methods have been overridden to allow 2d vectors
to be converted to 3d vectors and vice versa.
convert
methods have been overridden to allow 2d vectors
to be converted to 3d vectors and vice versa.
direction
method is a utility function that will return
a unit vector in the direction specified.
direction
method is a utility function that will return
a unit vector in the direction specified.
distance
method takes two vectors and computes their
(Euclidean) distance.
distance
method takes two vectors and computes their
(Euclidean) distance.
distance
method takes two vectors and computes their
(Euclidean) distance.
distance
method takes two vectors and computes their
(Euclidean) distance.
dotProduct
method computes the dot product between two
vectors using the standard inner product formula.
dotProduct
method computes the dot product between two
vectors using the standard inner product formula.
down
method is a utility function that will set the
destination operand to a unit vector pointing in the "down" direction.
east
method is a utility function that will set the
destination operand to a unit vector pointing in the "east" direction.
east
method is a utility function that will set the
destination operand to a unit vector pointing in the "east" direction.
null
if no mapping for the key exists in the map.
magnitude
method takes a Vector3d
and
computes its magnitude according the Euclidean norm.
magnitude
method takes a Vector2d
and
computes its magnitude according the Euclidean norm.
normalize
method takes a Vector3d
and if it
is non-zero, will normalize it so that its magnitude will be 1.
normalize
method takes a Vector2d
and if it
is non-zero, will normalize it so that its magnitude will be 1.
north
method is a utility function that will set the
destination operand to a unit vector pointing in the "north" direction.
north
method is a utility function that will set the
destination operand to a unit vector pointing in the "north" direction.
phi
method takes a Vector3d
and calculates
the elevation between the XY-plane and the vector.
quadrant
method is a utility function for two dimensional
vectors that takes a vector as a parameter and will return an integer
describing what quadrant of the xy plane the vector lies in.
rotate
method takes a Vector3d
and a scalar
float value and will rotate the vector in the xy plane.
scale
method takes a Vector3d
and a scalar
float value multiplies each component of the Vector, storing the result
in the third parameter.
scale
method takes a Vector2d
and a scalar
float value multiplies each component of the Vector, storing the result
in the third parameter.
set
method is basically a convenience method that sets
the internal values of the coordinates.
set
method is basically a convenience method that sets
the internal values of the coordinates copying them from another vector.
set
method is basically a convenience method that sets
the internal values of the coordinates.
set
is basically a convenience method that sets the internal values of the coordinates copying them from another vector.
south
method is a utility function that will set the
destination operand to a unit vector pointing in the "south" direction.
south
method is a utility function that will set the
destination operand to a unit vector pointing in the "south" direction.
sqDistance
method takes two vectors and computes the
square of their (Euclidean) distance.
sqDistance
method takes two vectors and computes the
square of their (Euclidean) distance.
sqDistance
method takes two vectors and computes the
square of their (Euclidean) distance.
sqDistance
method takes two vectors and computes the
square of their (Euclidean) distance.
subtract
method takes two vectors and subtracts them,
placing the result in a third vector.
subtract
method takes two vectors and subtracts them,
placing the result in a third vector.
theta
method takes a Vector3d
and calculates
the angle between the X-axis and the vector, ignoring the z component of
the vector.
up
method is a utility function that will set the
destination operand to a unit vector pointing in the "up" direction.
Vector2d
class implements a 2-dimensional vector that
can represent the position or velocity of an object within a 2D space.Vector2d
class returns an
object representing the zero vector.
Vector2d
class takes the two
coordinates as parameters and produces an object representing that vector.
Vector2d
class takes a
vector to copy into this new instance and returns an instance that
represents a copy of that vector.
Vector3d
class implements a 3-dimensional vector that
can represent the position or velocity of an object within a 3D space.Vector3d
class returns an
object representing the zero vector.
Vector3d
class takes the three
coordinates as parameters and produces an object representing that vector.
Vector3d
class takes a
vector to copy into this new instance and returns an instance that
represents a copy of that vector.
VectorConstants
class implements some simple utility
methods for obtaining vectors that are commonly used, such as zero vectors
unit direction vectors, and orthogonal vectors.VectorMath
class implements the mathematical functions
for manipulating vectors of two and three dimensions.west
method is a utility function that will set the
destination operand to a unit vector pointing in the "west" direction.
west
method is a utility function that will set the
destination operand to a unit vector pointing in the "west" direction.
zero
method is a convenience method to zero the
coordinates of the vector.
zero
method is a convenience method to zero the
coordinates of the vector.
ZeroVectorException
exception is thrown by utilities that
perform calculations on vectors.ZeroVectorException
class
takes a string as an argument and simply calls the super constructor.
|
||||||||
PREV NEXT | FRAMES NO FRAMES |