T - A phantom type parameterpublic final class PVectorM4D<T> extends Object implements PVector4DType<T>
A four-dimensional mutable vector type with double elements.
Values of this type cannot be accessed safely from multiple threads without explicit synchronization.
| Modifier and Type | Class and Description |
|---|---|
static class |
PVectorM4D.ContextPVM4D
Preallocated storage to allow all vector functions to run without
allocating.
|
| Constructor and Description |
|---|
PVectorM4D()
Default constructor, initializing the vector with values
[0.0, 0.0,
0.0, 1.0]. |
PVectorM4D(double in_x,
double in_y,
double in_z,
double in_w)
Construct a vector initialized with the given values.
|
PVectorM4D(PVectorReadable4DType<T> in_v)
Construct a vector initialized with the values given in the vector
v. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V extends PVectorWritable4DType<T>> |
absolute(PVectorReadable4DType<T> v,
V out)
Calculate the absolute values of the elements in vector
v, saving
the result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
absoluteInPlace(V v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static <T,V extends PVectorWritable4DType<T>> |
add(PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1,
V out)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
addInPlace(V v0,
PVectorReadable4DType<T> v1)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to v0. |
static <T,V extends PVectorWritable4DType<T>> |
addScaled(PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1,
double r,
V out)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the result to
out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
addScaledInPlace(V v0,
PVectorReadable4DType<T> v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the result to
v0. |
static <T> boolean |
almostEqual(com.io7m.jequality.AlmostEqualDouble.ContextRelative context,
PVectorReadable4DType<T> va,
PVectorReadable4DType<T> vb)
Determine whether or not the vectors
va and vb are equal to
within the degree of error given in context. |
static <T,V extends PVectorWritable4DType<T>> |
clamp(PVectorReadable4DType<T> v,
double minimum,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4DType<T>> |
clampByPVector(PVectorReadable4DType<T> v,
PVectorReadable4DType<T> minimum,
PVectorReadable4DType<T> maximum,
V out)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum and maximum, saving
the result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampByPVectorInPlace(V v,
PVectorReadable4DType<T> minimum,
PVectorReadable4DType<T> maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum and maximum, saving
the result to v. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampInPlace(V v,
double minimum,
double maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4DType<T>> |
clampMaximum(PVectorReadable4DType<T> v,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable4DType<T>> |
clampMaximumByPVector(PVectorReadable4DType<T> v,
PVectorReadable4DType<T> maximum,
V out)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in maximum, saving the result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampMaximumByPVectorInPlace(V v,
PVectorReadable4DType<T> maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in maximum, saving the result to v. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampMaximumInPlace(V v,
double maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable4DType<T>> |
clampMinimum(PVectorReadable4DType<T> v,
double minimum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4DType<T>> |
clampMinimumByPVector(PVectorReadable4DType<T> v,
PVectorReadable4DType<T> minimum,
V out)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum, saving the result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampMinimumByPVectorInPlace(V v,
PVectorReadable4DType<T> minimum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum, saving the result to v. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
clampMinimumInPlace(V v,
double minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4DType<T>> |
copy(PVectorReadable4DType<T> input,
V output)
Copy all elements of the vector
input to the vector output. |
void |
copyFrom2D(VectorReadable2DType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFrom3D(VectorReadable3DType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFrom4D(VectorReadable4DType in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFromTyped2D(PVectorReadable2DType<T> in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFromTyped3D(PVectorReadable3DType<T> in_v)
Set the current vector to the contents of the input vector.
|
void |
copyFromTyped4D(PVectorReadable4DType<T> in_v)
Set the current vector to the contents of the input vector.
|
static <T> double |
distance(PVectorM4D.ContextPVM4D c,
PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1)
Calculate the distance between the two vectors
v0 and v1. |
static <T> double |
dotProduct(PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
boolean |
equals(Object obj) |
double |
getWD() |
double |
getXD() |
double |
getYD() |
double |
getZD() |
int |
hashCode() |
static <T,V extends PVectorWritable4DType<T>> |
interpolateLinear(PVectorM4D.ContextPVM4D c,
PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1,
double alpha,
V r)
Linearly interpolate between
v0 and v1 by the amount alpha, saving the result to r. |
static <T> double |
magnitude(PVectorReadable4DType<T> v)
Calculate the magnitude of the vector
v. |
static <T> double |
magnitudeSquared(PVectorReadable4DType<T> v)
Calculate the squared magnitude of the vector
v. |
static <T,V extends PVectorWritable4DType<T>> |
normalize(PVectorReadable4DType<T> v,
V out)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
normalizeInPlace(V v)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in v. |
static <T,V extends PVectorWritable4DType<T>> |
orthoNormalize(PVectorM4D.ContextPVM4D c,
PVectorReadable4DType<T> v0,
V v0_out,
PVectorReadable4DType<T> v1,
V v1_out)
Orthonormalize and return the vectors
v0 and v1 . |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
orthoNormalizeInPlace(PVectorM4D.ContextPVM4D c,
V v0,
V v1)
Orthonormalize and the vectors
v0 and v1. |
static <T,V extends PVectorWritable4DType<T>> |
projection(PVectorReadable4DType<T> p,
PVectorReadable4DType<T> q,
V r)
Calculate the projection of the vector
p onto the vector q,
saving the result in r. |
static <T,V extends PVectorWritable4DType<T>> |
scale(PVectorReadable4DType<T> v,
double r,
V out)
Scale the vector
v by the scalar r, saving the result to
out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
scaleInPlace(V v,
double r)
Scale the vector
v by the scalar r, saving the result to
v. |
void |
set2D(double in_x,
double in_y)
Set the current
x and y values of the current vector. |
void |
set3D(double in_x,
double in_y,
double in_z)
Set the current
x, y and z values of the current
vector. |
void |
set4D(double in_x,
double in_y,
double in_z,
double in_w)
Set the current
x, y, z and w values of the
current vector. |
void |
setWD(double in_w)
Set the current
w value of the current vector. |
void |
setXD(double in_x)
Set the current
x value of the current vector. |
void |
setYD(double in_y)
Set the current
y value of the current vector. |
void |
setZD(double in_z)
Set the current
z value of the current vector. |
static <T,V extends PVectorWritable4DType<T>> |
subtract(PVectorReadable4DType<T> v0,
PVectorReadable4DType<T> v1,
V out)
Subtract the vector
v1 from the vector v0, saving the
result to out. |
static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> |
subtractInPlace(V v0,
PVectorReadable4DType<T> v1)
Subtract the vector
v1 from the vector v0, saving the
result to v0. |
String |
toString() |
public PVectorM4D()
[0.0, 0.0,
0.0, 1.0].public PVectorM4D(double in_x,
double in_y,
double in_z,
double in_w)
in_x - The x valuein_y - The y valuein_z - The z valuein_w - The w valuepublic PVectorM4D(PVectorReadable4DType<T> in_v)
v.in_v - The source vectorpublic static <T,V extends PVectorWritable4DType<T>> V absolute(PVectorReadable4DType<T> v, V out)
v, saving
the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorout - The output vector(abs v.x, abs v.y, abs v.z, abs.w)public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V absoluteInPlace(V v)
v,
modifying the vector in-place.T - A phantom type parameterV - The precise type of vectorv - The input vector(abs v.x, abs v.y, abs v.z, abs v.w)public static <T,V extends PVectorWritable4DType<T>> V add(PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1, V out)
v0 and v1,
saving the result to out.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vectorout - The output vector(v0.x + v1.x, v0.y + v1.y, v0.z + v1.z, v0.w + v1.w)public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V addInPlace(V v0, PVectorReadable4DType<T> v1)
v0 and v1,
saving the result to v0.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vector(v0.x + v1.x, v0.y + v1.y, v0.z + v1.z, v0.w + v1.w)public static <T,V extends PVectorWritable4DType<T>> V addScaled(PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1, double r, V out)
v0 and the
element-wise product of v1 and r, saving the result to
out.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vectorout - The output vectorr - The scaling value(v0.x + (v1.x * r), v0.y + (v1.y * r), v0.z + (v1.z * r),
v0.w + (v1.w * r))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V addScaledInPlace(V v0, PVectorReadable4DType<T> v1, double r)
v0 and the
element-wise product of v1 and r, saving the result to
v0.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vectorr - The scaling value(v0.x + (v1.x * r), v0.y + (v1.y * r), v0.z + (v1.z * r),
v0.w + (v1.w * r))public static <T> boolean almostEqual(com.io7m.jequality.AlmostEqualDouble.ContextRelative context,
PVectorReadable4DType<T> va,
PVectorReadable4DType<T> vb)
va and vb are equal to
within the degree of error given in context.T - A phantom type parametercontext - The equality contextva - The left input vectorvb - The right input vectortrue if the vectors are almost equalAlmostEqualDouble.almostEqual(AlmostEqualDouble.ContextRelative,
double, double)public static <T,V extends PVectorWritable4DType<T>> V clamp(PVectorReadable4DType<T> v, double minimum, double maximum, V out)
v to the range [minimum ..
maximum] inclusive, saving the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The minimum allowed valuemaximum - The maximum allowed valueout - The output vectormaximum and at
least minimumpublic static <T,V extends PVectorWritable4DType<T>> V clampByPVector(PVectorReadable4DType<T> v, PVectorReadable4DType<T> minimum, PVectorReadable4DType<T> maximum, V out)
v to the inclusive range given by
the corresponding elements in minimum and maximum, saving
the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The vector containing the minimum acceptable valuesmaximum - The vector containing the maximum acceptable valuesout - The output vector(min(max(v.x, minimum.x), maximum.x), min(max(v.y,
minimum.y), maximum.y), min(max(v.z, minimum.z), maximum.z), min(max(v.w,
minimum.w), maximum.w))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampByPVectorInPlace(V v, PVectorReadable4DType<T> minimum, PVectorReadable4DType<T> maximum)
v to the inclusive range given by
the corresponding elements in minimum and maximum, saving
the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The vector containing the minimum acceptable valuesmaximum - The vector containing the maximum acceptable values(min(max(v.x, minimum.x), maximum.x), min(max(v.y,
minimum.y), maximum.y), min(max(v.z, minimum.z), maximum.z), min(max(v.w,
minimum.w), maximum.w))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampInPlace(V v, double minimum, double maximum)
v to the range [minimum ..
maximum] inclusive, saving the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The minimum allowed valuemaximum - The maximum allowed valuemaximum and at
least minimum, in vpublic static <T,V extends PVectorWritable4DType<T>> V clampMaximum(PVectorReadable4DType<T> v, double maximum, V out)
v to the range [-Infinity
.. maximum] inclusive, saving the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorout - The output vectormaximum - The maximum allowed valuemaximumpublic static <T,V extends PVectorWritable4DType<T>> V clampMaximumByPVector(PVectorReadable4DType<T> v, PVectorReadable4DType<T> maximum, V out)
v to the inclusive range given by
the corresponding elements in maximum, saving the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectormaximum - The vector containing the maximum acceptable valuesout - The output vector(min(v.x, maximum.x), min(v.y, maximum.y), min(v.z,
maximum.z), min(v.w, maximum.w))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampMaximumByPVectorInPlace(V v, PVectorReadable4DType<T> maximum)
v to the inclusive range given by
the corresponding elements in maximum, saving the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectormaximum - The vector containing the maximum acceptable values(min(v.x, maximum.x), min(v.y, maximum.y), min(v.z,
maximum.z), min(v.w, maximum.w))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampMaximumInPlace(V v, double maximum)
v to the range [-Infinity
.. maximum] inclusive, saving the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectormaximum - The maximum allowed valuemaximum , in
vpublic static <T,V extends PVectorWritable4DType<T>> V clampMinimum(PVectorReadable4DType<T> v, double minimum, V out)
v to the range [minimum ..
Infinity] inclusive, saving the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorout - The output vectorminimum - The minimum allowed valueminimumpublic static <T,V extends PVectorWritable4DType<T>> V clampMinimumByPVector(PVectorReadable4DType<T> v, PVectorReadable4DType<T> minimum, V out)
v to the inclusive range given by
the corresponding elements in minimum, saving the result to out.T - A phantom type parameterV - The precise type of vectorv - The input vectorout - The output vectorminimum - The vector containing the minimum acceptable values(max(v.x, minimum.x), max(v.y, minimum.y), max(v.z,
minimum.z), max(v.w, minimum.w))public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampMinimumByPVectorInPlace(V v, PVectorReadable4DType<T> minimum)
v to the inclusive range given by
the corresponding elements in minimum, saving the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The vector containing the minimum acceptable values(max(v.x, minimum.x), max(v.y, minimum.y), max(v.z,
minimum.z), max(v.w, minimum.w)) , in vpublic static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V clampMinimumInPlace(V v, double minimum)
v to the range [minimum ..
Infinity] inclusive, saving the result to v.T - A phantom type parameterV - The precise type of vectorv - The input vectorminimum - The minimum allowed valueminimum, in
v.public static <T,V extends PVectorWritable4DType<T>> V copy(PVectorReadable4DType<T> input, V output)
input to the vector output.T - A phantom type parameterV - The precise type of vectorinput - The input vectoroutput - The output vectorpublic static <T> double distance(PVectorM4D.ContextPVM4D c, PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1)
v0 and v1.T - A phantom type parameterc - Preallocated storagev0 - The left input vectorv1 - The right input vectorpublic static <T> double dotProduct(PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1)
v0 and v1.T - A phantom type parameterv0 - The left input vectorv1 - The right input vectorpublic static <T,V extends PVectorWritable4DType<T>> V interpolateLinear(PVectorM4D.ContextPVM4D c, PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1, double alpha, V r)
v0 and v1 by the amount alpha, saving the result to r.
The alpha parameter controls the degree of interpolation, such
that:
interpolateLinear(v0, v1, 0.0, r) -> r = v0interpolateLinear(v0, v1, 1.0, r) -> r = v1T - A phantom type parameterV - The precise type of vectorc - Preallocated storagev0 - The left input vectorv1 - The right input vectoralpha - The interpolation value, between 0.0 and 1.0r - The result vectorrpublic static <T> double magnitude(PVectorReadable4DType<T> v)
v.
Correspondingly, magnitude(normalize(v)) == 1.0.T - A phantom type parameterv - The input vectorpublic static <T> double magnitudeSquared(PVectorReadable4DType<T> v)
v.T - A phantom type parameterv - The input vectorpublic static <T,V extends PVectorWritable4DType<T>> V normalize(PVectorReadable4DType<T> v, V out)
v but with magnitude
equal to 1.0 in out. The function returns the zero vector
iff the input is the zero vector.T - A phantom type parameterV - The precise type of vectorv - The input vectorout - The output vectorpublic static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V normalizeInPlace(V v)
v but with magnitude
equal to 1.0 in v. The function returns the zero vector iff
the input is the zero vector.T - A phantom type parameterV - The precise type of vectorv - The input vectorpublic static <T,V extends PVectorWritable4DType<T>> void orthoNormalize(PVectorM4D.ContextPVM4D c, PVectorReadable4DType<T> v0, V v0_out, PVectorReadable4DType<T> v1, V v1_out)
Orthonormalize and return the vectors v0 and v1 .
See GSP
T - A phantom type parameterV - The precise type of vectorc - Preallocated storagev0 - The left vectorv0_out - The orthonormalized form of v0v1 - The right vectorv1_out - The orthonormalized form of v1public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> void orthoNormalizeInPlace(PVectorM4D.ContextPVM4D c, V v0, V v1)
Orthonormalize and the vectors v0 and v1.
See GSP
V - The precise type of vectorT - A phantom type parameterc - Preallocated storagev0 - The left vectorv1 - The right vectorpublic static <T,V extends PVectorWritable4DType<T>> V projection(PVectorReadable4DType<T> p, PVectorReadable4DType<T> q, V r)
p onto the vector q,
saving the result in r.T - A phantom type parameterV - The precise type of vectorp - The left vectorq - The right vectorr - The output vector((dotProduct p q) / magnitudeSquared q) * qpublic static <T,V extends PVectorWritable4DType<T>> V scale(PVectorReadable4DType<T> v, double r, V out)
v by the scalar r, saving the result to
out.T - A phantom type parameterV - The precise type of vectorv - The input vectorr - The scaling valueout - The output vector(v.x * r, v.y * r, v.z * r, v.w * r)public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V scaleInPlace(V v, double r)
v by the scalar r, saving the result to
v.T - A phantom type parameterV - The precise type of vectorv - The input vectorr - The scaling value(v.x * r, v.y * r, v.z * r, v.w * r)public static <T,V extends PVectorWritable4DType<T>> V subtract(PVectorReadable4DType<T> v0, PVectorReadable4DType<T> v1, V out)
v1 from the vector v0, saving the
result to out.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vectorout - The output vector(v0.x - v1.x, v0.y - v1.y, v0.z - v1.z, v0.w - v1.w)public static <T,V extends PVectorWritable4DType<T> & PVectorReadable4DType<T>> V subtractInPlace(V v0, PVectorReadable4DType<T> v1)
v1 from the vector v0, saving the
result to v0.T - A phantom type parameterV - The precise type of vectorv0 - The left input vectorv1 - The right input vector(v0.x - v1.x, v0.y - v1.y, v0.z - v1.z, v0.w - v1.w)public void copyFrom2D(VectorReadable2DType in_v)
VectorWritable2DTypecopyFrom2D in interface VectorWritable2DTypein_v - The input vectorpublic void copyFrom3D(VectorReadable3DType in_v)
VectorWritable3DTypecopyFrom3D in interface VectorWritable3DTypein_v - The input vectorpublic void copyFrom4D(VectorReadable4DType in_v)
VectorWritable4DTypecopyFrom4D in interface VectorWritable4DTypein_v - The input vectorpublic void copyFromTyped2D(PVectorReadable2DType<T> in_v)
PVectorWritable2DTypecopyFromTyped2D in interface PVectorWritable2DType<T>in_v - The input vectorpublic void copyFromTyped3D(PVectorReadable3DType<T> in_v)
PVectorWritable3DTypecopyFromTyped3D in interface PVectorWritable3DType<T>in_v - The input vectorpublic void copyFromTyped4D(PVectorReadable4DType<T> in_v)
PVectorWritable4DTypecopyFromTyped4D in interface PVectorWritable4DType<T>in_v - The input vectorpublic double getWD()
getWD in interface VectorReadable4DTypepublic void setWD(double in_w)
VectorWritable4DTypew value of the current vector.setWD in interface VectorWritable4DTypein_w - The new w value.public double getXD()
getXD in interface VectorReadable2DTypepublic void setXD(double in_x)
VectorWritable2DTypex value of the current vector.setXD in interface VectorWritable2DTypein_x - The new x value.public double getYD()
getYD in interface VectorReadable2DTypepublic void setYD(double in_y)
VectorWritable2DTypey value of the current vector.setYD in interface VectorWritable2DTypein_y - The new y value.public double getZD()
getZD in interface VectorReadable3DTypepublic void setZD(double in_z)
VectorWritable3DTypez value of the current vector.setZD in interface VectorWritable3DTypein_z - The new z value.public void set2D(double in_x,
double in_y)
VectorWritable2DTypex and y values of the current vector.set2D in interface VectorWritable2DTypein_x - The new x value.in_y - The new y value.public void set3D(double in_x,
double in_y,
double in_z)
VectorWritable3DTypex, y and z values of the current
vector.set3D in interface VectorWritable3DTypein_x - The new x value.in_y - The new y value.in_z - The new z value.public void set4D(double in_x,
double in_y,
double in_z,
double in_w)
VectorWritable4DTypex, y, z and w values of the
current vector.set4D in interface VectorWritable4DTypein_x - The new x value.in_y - The new y value.in_z - The new z value.in_w - The new w value.Copyright © 2016 <code@io7m.com> http://io7m.com