| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Class and Description |
|---|---|
class |
VectorI4I
A four-dimensional immutable vector type with integer elements.
|
class |
VectorM4I
A four-dimensional mutable vector type with integer elements.
|
| Modifier and Type | Method and Description |
|---|---|
static VectorI4I |
VectorI4I.absolute(VectorReadable4IType v)
Calculate the absolute values of the elements in vector
v. |
static VectorM4I |
VectorM4I.absolute(VectorReadable4IType v,
VectorM4I out)
Calculate the absolute values of the elements in vector
v,
saving the result to out. |
static VectorI4I |
VectorI4I.add(VectorReadable4IType v0,
VectorReadable4IType v1)
Calculate the element-wise sum of the vectors
v0 and
v1. |
static VectorM4I |
VectorM4I.add(VectorReadable4IType v0,
VectorReadable4IType v1,
VectorM4I out)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to out. |
static VectorM4I |
VectorM4I.addInPlace(VectorM4I v0,
VectorReadable4IType v1)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to v0. |
static VectorI4I |
VectorI4I.addScaled(VectorReadable4IType v0,
VectorReadable4IType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r. |
static VectorM4I |
VectorM4I.addScaled(VectorReadable4IType v0,
VectorReadable4IType v1,
double r,
VectorM4I 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 VectorM4I |
VectorM4I.addScaledInPlace(VectorM4I v0,
VectorReadable4IType 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 VectorI4I |
VectorI4I.clamp(VectorReadable4IType v,
int minimum,
int maximum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4I |
VectorM4I.clamp(VectorReadable4IType v,
int minimum,
int maximum,
VectorM4I out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorI4I |
VectorI4I.clampByVector(VectorReadable4IType v,
VectorReadable4IType minimum,
VectorReadable4IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum. |
static VectorM4I |
VectorM4I.clampByVector(VectorReadable4IType v,
VectorReadable4IType minimum,
VectorReadable4IType maximum,
VectorM4I 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 VectorM4I |
VectorM4I.clampByVectorInPlace(VectorM4I v,
VectorReadable4IType minimum,
VectorReadable4IType 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 VectorI4I |
VectorI4I.clampMaximum(VectorReadable4IType v,
int maximum)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4I |
VectorM4I.clampMaximum(VectorReadable4IType v,
int maximum,
VectorM4I out)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorI4I |
VectorI4I.clampMaximumByVector(VectorReadable4IType v,
VectorReadable4IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum. |
static VectorM4I |
VectorM4I.clampMaximumByVector(VectorReadable4IType v,
VectorReadable4IType maximum,
VectorM4I 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 VectorM4I |
VectorM4I.clampMaximumByVectorInPlace(VectorM4I v,
VectorReadable4IType 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 VectorI4I |
VectorI4I.clampMinimum(VectorReadable4IType v,
int minimum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4I |
VectorM4I.clampMinimum(VectorReadable4IType v,
int minimum,
VectorM4I out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorI4I |
VectorI4I.clampMinimumByVector(VectorReadable4IType v,
VectorReadable4IType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum. |
static VectorM4I |
VectorM4I.clampMinimumByVector(VectorReadable4IType v,
VectorReadable4IType minimum,
VectorM4I 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 VectorM4I |
VectorM4I.clampMinimumByVectorInPlace(VectorM4I v,
VectorReadable4IType 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 extends VectorWritable4IType> |
VectorM4I.copy(VectorReadable4IType input,
T output)
Copy all elements of the vector
input to the vector
output. |
void |
VectorWritable4IType.copyFrom4I(VectorReadable4IType in_v)
Set the current vector to the contents of the input vector.
|
void |
VectorM4I.copyFrom4I(VectorReadable4IType in_v) |
static int |
VectorM4I.distance(VectorReadable4IType v0,
VectorReadable4IType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static int |
VectorI4I.distance(VectorReadable4IType v0,
VectorReadable4IType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static int |
VectorM4I.dotProduct(VectorReadable4IType v0,
VectorReadable4IType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static int |
VectorI4I.dotProduct(VectorReadable4IType v0,
VectorReadable4IType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static VectorI4I |
VectorI4I.interpolateLinear(VectorReadable4IType v0,
VectorReadable4IType v1,
double alpha)
Linearly interpolate between
v0 and v1 by the
amount alpha. |
static VectorM4I |
VectorM4I.interpolateLinear(VectorReadable4IType v0,
VectorReadable4IType v1,
double alpha,
VectorM4I r)
Linearly interpolate between
v0 and v1 by the
amount alpha, saving the result to r. |
static int |
VectorM4I.magnitude(VectorReadable4IType v)
Calculate the magnitude of the vector
v. |
static int |
VectorI4I.magnitude(VectorReadable4IType v)
Calculate the magnitude of the vector
v. |
static int |
VectorM4I.magnitudeSquared(VectorReadable4IType v)
Calculate the squared magnitude of the vector
v. |
static int |
VectorI4I.magnitudeSquared(VectorReadable4IType v)
Calculate the squared magnitude of the vector
v. |
static VectorI4I |
VectorI4I.projection(VectorReadable4IType p,
VectorReadable4IType q)
Calculate the projection of the vector
p onto the vector
q. |
static VectorM4I |
VectorM4I.projection(VectorReadable4IType p,
VectorReadable4IType q,
VectorM4I r)
Calculate the projection of the vector
p onto the vector
q, saving the result in r. |
static VectorI4I |
VectorI4I.scale(VectorReadable4IType v,
double r)
Scale the vector
v by the scalar r. |
static VectorM4I |
VectorM4I.scale(VectorReadable4IType v,
double r,
VectorM4I out)
Scale the vector
v by the scalar r, saving the
result to out. |
static VectorI4I |
VectorI4I.subtract(VectorReadable4IType v0,
VectorReadable4IType v1)
Subtract the vector
v1 from the vector v0. |
static VectorM4I |
VectorM4I.subtract(VectorReadable4IType v0,
VectorReadable4IType v1,
VectorM4I out)
Subtract the vector
v1 from the vector v0,
saving the result to out. |
static VectorM4I |
VectorM4I.subtractInPlace(VectorM4I v0,
VectorReadable4IType v1)
Subtract the vector
v1 from the vector v0,
saving the result to v0. |
| Constructor and Description |
|---|
VectorI4I(VectorReadable4IType in_v)
Construct a vector initialized with the values given in the vector
in_v. |
VectorM4I(VectorReadable4IType in_v)
Construct a vector initialized with the values given in the vector
v. |
Copyright © 2014 <code@io7m.com> http://io7m.com