Modifier and Type | Method and Description |
---|---|
Vector3f |
ICamera3D.getDirection()
Gets direction vector of the camera.
|
Vector3f |
ICamera3D.getPosition()
Gets position vector of the camera.
|
Vector3f |
ICamera3D.getUp()
Gets up vector of the camera.
|
Modifier and Type | Method and Description |
---|---|
void |
IFreeCamera.move(Vector3f v)
Translates the camera by a vector.
|
void |
ISphericalCamera.set(Vector3f position,
Vector3f target)
Sets position and target vectors of the camera.
|
void |
IFreeCamera.set(Vector3f position,
Vector3f direction)
Sets position and direction vectors of the camera.
|
void |
IFreeCamera.setDirection(Vector3f direction)
Sets direction vector of the camera.
|
void |
ISphericalCamera.setPosition(Vector3f position)
Sets position vector of the camera.
|
void |
IFreeCamera.setPosition(Vector3f position)
Sets position vector of the camera.
|
void |
ISphericalCamera.setTarget(Vector3f target)
Sets target vector of the camera.
|
void |
IFreeCamera.setUp(Vector3f up)
Sets up vector of the camera.
|
Modifier and Type | Field and Description |
---|---|
static Vector3f |
Vector3f.NAN |
static Vector3f |
Vector3f.NEGATIVE_INFINITY |
static Vector3f |
Vector3f.NEGATIVE_UNIT_X |
static Vector3f |
Vector3f.NEGATIVE_UNIT_Y |
static Vector3f |
Vector3f.NEGATIVE_UNIT_Z |
static Vector3f |
Vector3f.POSITIVE_INFINITY |
static Vector3f |
Vector3f.POSITIVE_UNIT_X |
static Vector3f |
Vector3f.POSITIVE_UNIT_XYZ |
static Vector3f |
Vector3f.POSITIVE_UNIT_Y |
static Vector3f |
Vector3f.POSITIVE_UNIT_Z |
static Vector3f |
Vector3f.ZERO |
Modifier and Type | Method and Description |
---|---|
Vector3f |
Vector3f.add(float addX,
float addY,
float addZ)
add adds the provided values to this vector, creating a new
vector that is then returned. |
Vector3f |
Vector3f.add(Vector3f vec)
add adds a provided vector to this vector creating a
resultant vector which is returned. |
Vector3f |
Vector3f.add(Vector3f vec,
Vector3f result)
add adds the values of a provided vector storing the values
in the supplied vector. |
Vector3f |
Vector3f.addLocal(float addX,
float addY,
float addZ)
addLocal adds the provided values to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
Vector3f |
Vector3f.addLocal(Vector3f vec)
addLocal adds a provided vector to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
static Vector3f |
FastMath.cartesianToSpherical(Vector3f cartCoords,
Vector3f store)
Converts a point from Cartesian coordinates (using positive Y as up) to
Spherical and stores the results in the store var.
|
static Vector3f |
FastMath.cartesianZToSpherical(Vector3f cartCoords,
Vector3f store)
Converts a point from Cartesian coordinates (using positive Z as up) to
Spherical and stores the results in the store var.
|
Vector3f |
Vector3f.clone() |
static Vector3f |
FastMath.computeNormal(Vector3f v1,
Vector3f v2,
Vector3f v3)
A method that computes normal for a triangle defined by three vertices.
|
Vector3f |
Vector3f.copy() |
Vector3f |
Vector3f.cross(float otherX,
float otherY,
float otherZ,
Vector3f result)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector2f.cross(Vector2f v)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.cross(Vector3f v)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.cross(Vector3f v,
Vector3f result)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.crossLocal(float otherX,
float otherY,
float otherZ)
crossLocal calculates the cross product of this vector with
a parameter vector v. |
Vector3f |
Vector3f.crossLocal(Vector3f v)
crossLocal calculates the cross product of this vector with
a parameter vector v. |
Vector3f |
Vector3f.divide(float scalar)
divide divides the values of this vector by a scalar and
returns the result. |
Vector3f |
Vector3f.divide(Vector3f scalar)
divide divides the values of this vector by a scalar and
returns the result. |
Vector3f |
Vector3f.divideLocal(float scalar)
divideLocal divides this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
Vector3f |
Vector3f.divideLocal(Vector3f scalar)
divideLocal divides this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
static Vector3f |
FastMath.extrapolateLinear(float scale,
Vector3f startValue,
Vector3f endValue)
Linear extrapolation from startValue to endValue by the given scale.
|
static Vector3f |
FastMath.extrapolateLinear(float scale,
Vector3f startValue,
Vector3f endValue,
Vector3f store)
Linear extrapolation from startValue to endValue by the given scale.
|
Vector3f |
Matrix3f.getColumn(int i)
getColumn returns one of three columns specified by the
parameter. |
Vector3f |
Matrix3f.getColumn(int i,
Vector3f store)
getColumn returns one of three columns specified by the
parameter. |
Vector3f |
Matrix4f.getEulerAngles()
Gets Euler angles from rotation matrix.
|
Vector3f |
Matrix3f.getEulerAngles()
Gets Euler angles from rotation matrix.
|
Vector3f |
Quaternion.getRotationColumn(int i)
getRotationColumn returns one of three columns specified by
the parameter. |
Vector3f |
Quaternion.getRotationColumn(int i,
Vector3f store)
getRotationColumn returns one of three columns specified by
the parameter. |
Vector3f |
Matrix3f.getRow(int i)
getColumn returns one of three rows as specified by the
parameter. |
Vector3f |
Matrix3f.getRow(int i,
Vector3f store)
getRow returns one of three rows as specified by the
parameter. |
Vector3f |
Vector3f.interpolate(Vector3f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from this to the
finalVec this=(1-changeAmnt)*this + changeAmnt * finalVec
|
Vector3f |
Vector3f.interpolate(Vector3f beginVec,
Vector3f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from beginVec to
finalVec this=(1-changeAmnt)*beginVec + changeAmnt * finalVec
|
static Vector3f |
FastMath.interpolateBezier(float u,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3)
Interpolate a spline between at least 4 control points following the Bezier equation.
|
static Vector3f |
FastMath.interpolateBezier(float u,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3,
Vector3f store)
Interpolate a spline between at least 4 control points following the Bezier equation.
|
static Vector3f |
FastMath.interpolateCatmullRom(float u,
float T,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3)
Interpolate a spline between at least 4 control points following the Catmull-Rom equation.
|
static Vector3f |
FastMath.interpolateCatmullRom(float u,
float T,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3,
Vector3f store)
Interpolate a spline between at least 4 control points following the Catmull-Rom equation.
|
static Vector3f |
FastMath.interpolateLinear(float scale,
Vector3f startValue,
Vector3f endValue)
Linear interpolation from startValue to endValue by the given percent.
|
static Vector3f |
FastMath.interpolateLinear(float scale,
Vector3f startValue,
Vector3f endValue,
Vector3f store)
Linear interpolation from startValue to endValue by the given percent.
|
Vector3f |
Vector3f.maxLocal(Vector3f other)
maxLocal computes the maximum value for each component in
this and other vector. |
Vector3f |
Vector3f.minLocal(Vector3f other)
minLocal computes the minimum value for each component in
this and other vector. |
Vector3f |
Vector3f.mult(float scalar)
mult multiplies this vector by a scalar. |
Vector3f |
Vector3f.mult(float scalar,
Vector3f product)
mult multiplies this vector by a scalar. |
Vector3f |
Vector3f.mult(Vector3f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.mult(Vector3f v)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix4f.mult(Vector3f vec)
mult multiplies a vector about a rotation matrix. |
Vector3f |
Matrix3f.mult(Vector3f vec)
mult multiplies this matrix by a given
Vector3f object. |
Vector3f |
Vector3f.mult(Vector3f vec,
Vector3f store)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.mult(Vector3f v,
Vector3f store)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix4f.mult(Vector3f vec,
Vector3f store)
mult multiplies a vector about a rotation matrix and adds
translation. |
Vector3f |
Matrix3f.mult(Vector3f vec,
Vector3f product)
Multiplies this 3x3 matrix by the 1x3 Vector vec and stores the result in
product.
|
Vector3f |
Matrix4f.multAcross(Vector3f vec,
Vector3f store)
mult multiplies a vector about a rotation matrix. |
Vector3f |
Vector3f.multLocal(float scalar)
multLocal multiplies this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
Vector3f |
Vector3f.multLocal(float x,
float y,
float z)
multLocal multiplies this vector by 3 scalars internally,
and returns a handle to this vector for easy chaining of calls. |
Vector3f |
Vector3f.multLocal(Vector3f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.multLocal(Vector3f v)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix3f.multLocal(Vector3f vec)
multLocal multiplies this matrix by a given
Vector3f object. |
Vector3f |
Matrix4f.multNormal(Vector3f vec,
Vector3f store)
multNormal multiplies a vector about a rotation matrix, but
does not add translation. |
Vector3f |
Matrix4f.multNormalAcross(Vector3f vec,
Vector3f store)
multNormal multiplies a vector about a rotation matrix, but
does not add translation. |
Vector3f |
Vector3f.negate()
negate returns the negative of this vector. |
Vector3f |
Vector3f.negateLocal()
negateLocal negates the internal values of this vector. |
Vector3f |
Vector3f.normalize()
normalize returns the unit vector of this vector. |
Vector3f |
Vector3f.normalizeLocal()
normalizeLocal makes this vector into a unit vector of
itself. |
Vector3f |
Vector3f.project(Vector3f other)
Projects this vector onto another vector
|
Vector3f |
Vector3f.projectLocal(Vector3f other)
Projects this vector onto another vector, stores the result in this
vector
|
Vector3f |
Vector3f.scaleAdd(float scalar,
Vector3f add)
scaleAdd multiplies this vector by a scalar then adds the
given Vector3f. |
Vector3f |
Vector3f.scaleAdd(float scalar,
Vector3f mult,
Vector3f add)
scaleAdd multiplies the given vector by a scalar then adds
the given vector. |
Vector3f |
Vector3f.set(float x,
float y,
float z)
set sets the x,y,z values of the vector based on passed
parameters. |
Vector3f |
Vector3f.set(Vector3f vect)
set sets the x,y,z values of the vector by copying the
supplied vector. |
Vector3f |
Vector3f.setX(float x) |
Vector3f |
Vector3f.setY(float y) |
Vector3f |
Vector3f.setZ(float z) |
static Vector3f |
FastMath.sphericalToCartesian(Vector3f sphereCoords,
Vector3f store)
Converts a point from Spherical coordinates to Cartesian (using positive
Y as up) and stores the results in the store var.
|
static Vector3f |
FastMath.sphericalToCartesianZ(Vector3f sphereCoords,
Vector3f store)
Converts a point from Spherical coordinates to Cartesian (using positive
Z as up) and stores the results in the store var.
|
Vector3f |
Vector3f.subtract(float subtractX,
float subtractY,
float subtractZ)
subtract subtracts the provided values from this vector,
creating a new vector that is then returned. |
Vector3f |
Vector3f.subtract(Vector3f vec)
subtract subtracts the values of a given vector from those
of this vector creating a new vector object. |
Vector3f |
Vector3f.subtract(Vector3f vec,
Vector3f result)
subtract |
Vector3f |
Vector3f.subtractLocal(float subtractX,
float subtractY,
float subtractZ)
subtractLocal subtracts the provided values from this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Vector3f.subtractLocal(Vector3f vec)
subtractLocal subtracts a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.toAngles(Vector3f angles)
toAngles returns this quaternion converted to Euler rotation
angles (yaw,roll,pitch).Note that the result is not always 100% accurate due to the implications of euler angles. |
Vector3f |
Matrix4f.toScaleVector()
Retreives the scale vector from the matrix.
|
Vector3f |
Matrix4f.toTranslationVector() |
Vector3f |
ColorRGBA.toVector3f()
Transform this
ColorRGBA to a Vector3f using x
= r, y = g, z = b. |
Vector3f |
ColorRGB.toVector3f()
Transform this
ColorRGBA to a Vector3f using x
= r, y = g, z = b. |
Vector3f |
Vector3f.transform(Matrix4f m,
Vector3f store) |
Vector3f |
Vector3f.transformDirection(Matrix4f m,
Vector3f store) |
Vector3f |
Vector3f.zero()
zero resets this vector's data to zero internally. |
Modifier and Type | Method and Description |
---|---|
Vector3f |
Vector3f.add(Vector3f vec)
add adds a provided vector to this vector creating a
resultant vector which is returned. |
Vector3f |
Vector3f.add(Vector3f vec,
Vector3f result)
add adds the values of a provided vector storing the values
in the supplied vector. |
Vector3f |
Vector3f.addLocal(Vector3f vec)
addLocal adds a provided vector to this vector internally,
and returns a handle to this vector for easy chaining of calls. |
float |
Vector3f.angleBetween(Vector3f otherVector)
angleBetween returns (in radians) the angle between two
vectors. |
void |
Matrix4f.angleRotation(Vector3f angles)
angleRotation sets this matrix to that of a rotation about
three axes (x, y, z). |
static Vector3f |
FastMath.cartesianToSpherical(Vector3f cartCoords,
Vector3f store)
Converts a point from Cartesian coordinates (using positive Y as up) to
Spherical and stores the results in the store var.
|
static Vector3f |
FastMath.cartesianZToSpherical(Vector3f cartCoords,
Vector3f store)
Converts a point from Cartesian coordinates (using positive Z as up) to
Spherical and stores the results in the store var.
|
static Vector3f |
FastMath.computeNormal(Vector3f v1,
Vector3f v2,
Vector3f v3)
A method that computes normal for a triangle defined by three vertices.
|
Vector3f |
Vector3f.cross(float otherX,
float otherY,
float otherZ,
Vector3f result)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.cross(Vector3f v)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.cross(Vector3f v,
Vector3f result)
cross calculates the cross product of this vector with a
parameter vector v. |
Vector3f |
Vector3f.crossLocal(Vector3f v)
crossLocal calculates the cross product of this vector with
a parameter vector v. |
float |
Vector3f.distance(Vector3f v)
distance calculates the distance between this vector and
vector v. |
float |
Vector3f.distanceSquared(Vector3f v)
distanceSquared calculates the distance squared between this
vector and vector v. |
Vector3f |
Vector3f.divide(Vector3f scalar)
divide divides the values of this vector by a scalar and
returns the result. |
Vector3f |
Vector3f.divideLocal(Vector3f scalar)
divideLocal divides this vector by a scalar internally, and
returns a handle to this vector for easy chaining of calls. |
float |
Vector3f.dot(Vector3f vec)
dot calculates the dot product of this vector with a
provided vector. |
static Vector3f |
FastMath.extrapolateLinear(float scale,
Vector3f startValue,
Vector3f endValue)
Linear extrapolation from startValue to endValue by the given scale.
|
static Vector3f |
FastMath.extrapolateLinear(float scale,
Vector3f startValue,
Vector3f endValue,
Vector3f store)
Linear extrapolation from startValue to endValue by the given scale.
|
Quaternion |
Quaternion.fromAngleAxis(float angle,
Vector3f axis)
fromAngleAxis sets this quaternion to the values specified
by an angle and an axis of rotation. |
void |
Matrix4f.fromAngleAxis(float angle,
Vector3f axis)
fromAngleAxis sets this matrix4f to the values specified by
an angle and an axis of rotation. |
void |
Matrix3f.fromAngleAxis(float angle,
Vector3f axis)
fromAngleAxis sets this matrix4f to the values specified by
an angle and an axis of rotation. |
Quaternion |
Quaternion.fromAngleNormalAxis(float angle,
Vector3f axis)
fromAngleNormalAxis sets this quaternion to the values
specified by an angle and a normalized axis of rotation. |
void |
Matrix4f.fromAngleNormalAxis(float angle,
Vector3f axis)
fromAngleNormalAxis sets this matrix4f to the values
specified by an angle and a normalized axis of rotation. |
void |
Matrix3f.fromAngleNormalAxis(float angle,
Vector3f axis)
fromAngleNormalAxis sets this matrix4f to the values
specified by an angle and a normalized axis of rotation. |
Quaternion |
Quaternion.fromAxes(Vector3f[] axis)
fromAxes creates a Quaternion that represents
the coordinate system defined by three axes. |
Quaternion |
Quaternion.fromAxes(Vector3f xAxis,
Vector3f yAxis,
Vector3f zAxis)
fromAxes creates a Quaternion that represents
the coordinate system defined by three axes. |
void |
Matrix3f.fromAxes(Vector3f uAxis,
Vector3f vAxis,
Vector3f wAxis)
Recreate Matrix using the provided axis.
|
void |
Matrix4f.fromFrame(Vector3f location,
Vector3f direction,
Vector3f up,
Vector3f left) |
void |
Matrix3f.fromStartEndVectors(Vector3f start,
Vector3f end)
A function for creating a rotation matrix that rotates a vector called
"start" into another vector called "end".
|
void |
Matrix4f.fromTwoVectors(Vector3f a,
Vector3f b)
Creates rotation matrix corresponding to rotation between two vectors.
|
void |
Matrix3f.fromTwoVectors(Vector3f a,
Vector3f b)
Creates rotation matrix corresponding to rotation between two vectors.
|
static void |
Vector3f.generateComplementBasis(Vector3f u,
Vector3f v,
Vector3f w) |
static void |
Vector3f.generateOrthonormalBasis(Vector3f u,
Vector3f v,
Vector3f w) |
static float |
FastMath.getBezierP1toP2Length(Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3)
Compute the lenght on a bezier spline between control point 1 and 2
|
static float |
FastMath.getCatmullRomP1toP2Length(Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3,
float startRange,
float endRange,
float curveTension)
Compute the lenght on a catmull rom spline between control point 1 and 2
|
Vector3f |
Matrix3f.getColumn(int i,
Vector3f store)
getColumn returns one of three columns specified by the
parameter. |
void |
Matrix4f.getEulerAngles(Vector3f result)
Gets Euler angles from rotation matrix.
|
void |
Matrix3f.getEulerAngles(Vector3f result)
Gets Euler angles from rotation matrix.
|
Vector3f |
Quaternion.getRotationColumn(int i,
Vector3f store)
getRotationColumn returns one of three columns specified by
the parameter. |
Vector3f |
Matrix3f.getRow(int i,
Vector3f store)
getRow returns one of three rows as specified by the
parameter. |
Vector3f |
Vector3f.interpolate(Vector3f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from this to the
finalVec this=(1-changeAmnt)*this + changeAmnt * finalVec
|
Vector3f |
Vector3f.interpolate(Vector3f beginVec,
Vector3f finalVec,
float changeAmnt)
Sets this vector to the interpolation by changeAmnt from beginVec to
finalVec this=(1-changeAmnt)*beginVec + changeAmnt * finalVec
|
static Vector3f |
FastMath.interpolateBezier(float u,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3)
Interpolate a spline between at least 4 control points following the Bezier equation.
|
static Vector3f |
FastMath.interpolateBezier(float u,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3,
Vector3f store)
Interpolate a spline between at least 4 control points following the Bezier equation.
|
static Vector3f |
FastMath.interpolateCatmullRom(float u,
float T,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3)
Interpolate a spline between at least 4 control points following the Catmull-Rom equation.
|
static Vector3f |
FastMath.interpolateCatmullRom(float u,
float T,
Vector3f p0,
Vector3f p1,
Vector3f p2,
Vector3f p3,
Vector3f store)
Interpolate a spline between at least 4 control points following the Catmull-Rom equation.
|
static Vector3f |
FastMath.interpolateLinear(float scale,
Vector3f startValue,
Vector3f endValue)
Linear interpolation from startValue to endValue by the given percent.
|
static Vector3f |
FastMath.interpolateLinear(float scale,
Vector3f startValue,
Vector3f endValue,
Vector3f store)
Linear interpolation from startValue to endValue by the given percent.
|
void |
Matrix4f.inverseRotateVect(Vector3f vec)
inverseRotateVect rotates a given Vector3f by the rotation
part of this matrix. |
void |
Matrix4f.inverseTranslateVect(Vector3f data)
inverseTranslateVect translates a given Vector3f by the
translation part of this matrix. |
static boolean |
Vector3f.isValidVector(Vector3f vector)
Check a vector...
|
void |
Quaternion.lookAt(Vector3f direction,
Vector3f up)
lookAt is a convienence method for auto-setting the
quaternion based on a direction and an up vector. |
void |
Matrix4f.lookAt(Vector3f eye,
Vector3f center,
Vector3f up) |
void |
Matrix4f.lookAtDirection(Vector3f eye,
Vector3f dir,
Vector3f up) |
Vector3f |
Vector3f.maxLocal(Vector3f other)
maxLocal computes the maximum value for each component in
this and other vector. |
Vector3f |
Vector3f.minLocal(Vector3f other)
minLocal computes the minimum value for each component in
this and other vector. |
Vector3f |
Vector3f.mult(float scalar,
Vector3f product)
mult multiplies this vector by a scalar. |
Vector3f |
Vector3f.mult(Vector3f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.mult(Vector3f v)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix4f.mult(Vector3f vec)
mult multiplies a vector about a rotation matrix. |
Vector3f |
Matrix3f.mult(Vector3f vec)
mult multiplies this matrix by a given
Vector3f object. |
Vector3f |
Vector3f.mult(Vector3f vec,
Vector3f store)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.mult(Vector3f v,
Vector3f store)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix4f.mult(Vector3f vec,
Vector3f store)
mult multiplies a vector about a rotation matrix and adds
translation. |
Vector3f |
Matrix3f.mult(Vector3f vec,
Vector3f product)
Multiplies this 3x3 matrix by the 1x3 Vector vec and stores the result in
product.
|
Vector3f |
Matrix4f.multAcross(Vector3f vec,
Vector3f store)
mult multiplies a vector about a rotation matrix. |
Vector3f |
Vector3f.multLocal(Vector3f vec)
multLocal multiplies a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
Vector3f |
Quaternion.multLocal(Vector3f v)
mult multiplies this quaternion by a parameter vector. |
Vector3f |
Matrix3f.multLocal(Vector3f vec)
multLocal multiplies this matrix by a given
Vector3f object. |
Vector3f |
Matrix4f.multNormal(Vector3f vec,
Vector3f store)
multNormal multiplies a vector about a rotation matrix, but
does not add translation. |
Vector3f |
Matrix4f.multNormalAcross(Vector3f vec,
Vector3f store)
multNormal multiplies a vector about a rotation matrix, but
does not add translation. |
float |
Matrix4f.multProj(Vector3f vec,
Vector3f store)
mult multiplies a vector about a rotation matrix and adds
translation. |
Vector3f |
Vector3f.project(Vector3f other)
Projects this vector onto another vector
|
Vector3f |
Vector3f.projectLocal(Vector3f other)
Projects this vector onto another vector, stores the result in this
vector
|
Matrix4f |
Matrix4f.rotate(Vector3f pitchYawRoll)
Same as
Matrix4f.rotate(float, float, float) but the arguments are wrapped in a vector. |
Matrix4f |
Matrix4f.rotateAxis(float angle,
Vector3f axis)
Same as
Matrix4f.rotateAxis(float, float, float, float) but axis' components are wrapped in a vector. |
Matrix4f |
Matrix4f.rotateAxisDeg(float angle,
Vector3f axis)
Same as
Matrix4f.rotateAxisDeg(float, float, float, float) but axis' components are wrapped in a vector. |
Matrix4f |
Matrix4f.rotateDeg(Vector3f pitchYawRoll)
Same as
Matrix4f.rotateDeg(float, float, float) but the arguments are wrapped in a vector. |
void |
Matrix4f.rotateVect(Vector3f vec) |
Matrix4f |
Matrix4f.scale(Vector3f scaleVec)
Same as
Matrix4f.scale(float, float, float) but arguments are wrapped in a vector. |
void |
Matrix3f.scale(Vector3f scale)
scale scales the operation performed by this matrix on a
per-component basis. |
Vector3f |
Vector3f.scaleAdd(float scalar,
Vector3f add)
scaleAdd multiplies this vector by a scalar then adds the
given Vector3f. |
Vector3f |
Vector3f.scaleAdd(float scalar,
Vector3f mult,
Vector3f add)
scaleAdd multiplies the given vector by a scalar then adds
the given vector. |
Vector3f |
Vector3f.set(Vector3f vect)
set sets the x,y,z values of the vector by copying the
supplied vector. |
Matrix3f |
Matrix3f.setColumn(int i,
Vector3f column)
setColumn sets a particular column of this matrix to that
represented by the provided vector. |
Matrix3f |
Matrix3f.setRow(int i,
Vector3f row)
setRow sets a particular row of this matrix to that
represented by the provided vector. |
void |
Matrix4f.setScale(Vector3f scale) |
void |
Matrix4f.setTransform(Vector3f position,
Vector3f scale,
Matrix3f rotMat) |
void |
Matrix4f.setTranslation(Vector3f translation)
setTranslation will set the matrix's translation values. |
static Vector3f |
FastMath.sphericalToCartesian(Vector3f sphereCoords,
Vector3f store)
Converts a point from Spherical coordinates to Cartesian (using positive
Y as up) and stores the results in the store var.
|
static Vector3f |
FastMath.sphericalToCartesianZ(Vector3f sphereCoords,
Vector3f store)
Converts a point from Spherical coordinates to Cartesian (using positive
Z as up) and stores the results in the store var.
|
Vector3f |
Vector3f.subtract(Vector3f vec)
subtract subtracts the values of a given vector from those
of this vector creating a new vector object. |
Vector3f |
Vector3f.subtract(Vector3f vec,
Vector3f result)
subtract |
Vector3f |
Vector3f.subtractLocal(Vector3f vec)
subtractLocal subtracts a provided vector to this vector
internally, and returns a handle to this vector for easy chaining of
calls. |
float |
Quaternion.toAngleAxis(Vector3f axisStore)
toAngleAxis sets a given angle and axis to that represented
by the current quaternion. |
Vector3f |
Quaternion.toAngles(Vector3f angles)
toAngles returns this quaternion converted to Euler rotation
angles (yaw,roll,pitch).Note that the result is not always 100% accurate due to the implications of euler angles. |
void |
Quaternion.toAxes(Vector3f[] axis)
toAxes takes in an array of three vectors. |
void |
Matrix4f.toScaleVector(Vector3f vector)
Retreives the scale vector from the matrix and stores it into a given
vector.
|
void |
Matrix4f.toTranslationVector(Vector3f vector) |
Vector3f |
Vector3f.transform(Matrix4f m,
Vector3f store) |
Vector3f |
Vector3f.transformDirection(Matrix4f m,
Vector3f store) |
Matrix4f |
Matrix4f.translate(Vector3f trans)
Same as
Matrix4f.translate(float, float, float) but the arguments are wrapped in a vector. |
void |
Matrix4f.translateVect(Vector3f data)
inverseTranslateVect translates a given Vector3f by the
translation part of this matrix. |
Constructor and Description |
---|
Vector3f(Vector3f copy)
Constructor instantiates a new
Vector3f that is a copy of
the provided vector |
Modifier and Type | Method and Description |
---|---|
Vector3f |
SliderVec3UC.getDefaultMaxValue() |
Vector3f |
SliderVec3UC.getDefaultMinValue() |
Vector3f |
SliderVec3UC.getDefaultStepSize() |
Vector3f |
SliderVec3UC.getDefaultValue() |
Vector3f |
SliderVec3UC.getMaxValue() |
Vector3f |
SliderVec3UC.getMinValue() |
Vector3f |
SliderVec3UC.getStepSize() |
static Vector3f |
DefaultStepSizeProvider.getStepSize(Vector3f minValue,
Vector3f maxValue) |
Vector3f |
SliderVec3UC.getValue() |
Modifier and Type | Method and Description |
---|---|
static Vector3f |
DefaultStepSizeProvider.getStepSize(Vector3f minValue,
Vector3f maxValue) |
void |
SliderVec3UC.setDefaultMaxValue(Vector3f defaultMaxValue) |
void |
SliderVec3UC.setDefaultMinValue(Vector3f defaultMinValue) |
void |
SliderVec3UC.setDefaultStepSize(Vector3f defaultStepSize) |
void |
SliderVec3UC.setDefaultValue(Vector3f defaultValue) |
void |
SliderVec3UC.setMaxValue(Vector3f maxValue) |
void |
SliderVec3UC.setMinValue(Vector3f minValue) |
void |
SliderVec3UC.setStepSize(Vector3f stepSize) |
void |
SliderVec3UC.setValue(Vector3f value) |
Modifier and Type | Method and Description |
---|---|
Vector3f |
JSNative.newVector3()
Creates a new 3D Vector with all components being zeros.
|
Vector3f |
JSNative.newVector3(float x,
float y,
float z)
Creates a new 3D Vector.
|
Modifier and Type | Method and Description |
---|---|
void |
JSFragxRenderer.setPostprocessUniform(int location,
Vector3f v)
Sets uniform variable of the postprocessing shader with GLSL's type
vec3 . |
void |
JSFragxRenderer.setPostprocessUniform(String name,
Vector3f v)
Sets uniform variable of the postprocessing shader with GLSL's type
vec3 . |
void |
JSFragxRenderer.setUniform(int location,
Vector3f v)
Sets uniform variable with GLSL's type
vec3 . |
void |
JSFragxRenderer.setUniform(String name,
Vector3f v)
Sets uniform variable with GLSL's type
vec3 . |
Modifier and Type | Method and Description |
---|---|
Vector3f |
Line.getColor() |
Vector3f |
Axes.getColorX() |
Vector3f |
Axes.getColorY() |
Vector3f |
Axes.getColorZ() |
Vector3f |
Line.getP1() |
Vector3f |
Line.getP2() |
Modifier and Type | Method and Description |
---|---|
Line |
GeometryFactory.createLine(Vector3f p1,
Vector3f p2)
Creates a line with the following Vertex Attributes:
0 - Position (vec3) 1 - Color (vec3) |
void |
Line.setP1(Vector3f p1) |
void |
Line.setP2(Vector3f p2) |
Constructor and Description |
---|
Line(javax.media.opengl.GL gl,
Vector3f p1,
Vector3f p2) |
Modifier and Type | Method and Description |
---|---|
void |
GLSLProgram.setUniform(int location,
Vector3f v)
Sets uniform variable with GLSL's type
vec3 . |
void |
GLSLProgram.setUniform(String name,
Vector3f v)
Sets uniform variable with GLSL's type
vec3 . |