Package | Description |
---|---|
pythagoras.d |
The Pythagoras geometry utility classes specialized on
double . |
Modifier and Type | Field and Description |
---|---|
Vector3 |
Ray3.direction
The ray's unit direction vector.
|
Vector3 |
Ray3.origin
The ray's point of origin.
|
Modifier and Type | Method and Description |
---|---|
Vector3 |
Vector3.abs() |
Vector3 |
IVector3.abs()
Absolute-values this vector.
|
Vector3 |
Vector3.abs(Vector3 result) |
Vector3 |
IVector3.abs(Vector3 result)
Absolute-values this vector, storing the result in the supplied object.
|
Vector3 |
Vector3.absLocal()
Absolute-values this vector in-place.
|
Vector3 |
Vector3.add(double x,
double y,
double z) |
Vector3 |
IVector3.add(double x,
double y,
double z)
Adds a vector to this one.
|
Vector3 |
Vector3.add(double x,
double y,
double z,
Vector3 result) |
Vector3 |
IVector3.add(double x,
double y,
double z,
Vector3 result)
Adds a vector to this one and stores the result in the object provided.
|
Vector3 |
Vector3.add(IVector3 other) |
Vector3 |
IVector3.add(IVector3 other)
Adds a vector to this one.
|
Vector3 |
Vector3.add(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.add(IVector3 other,
Vector3 result)
Adds a vector to this one, storing the result in the object provided.
|
Vector3 |
Vector3.addLocal(double x,
double y,
double z)
Adds a vector in-place to this one.
|
Vector3 |
Vector3.addLocal(IVector3 other)
Adds a vector in-place to this one.
|
Vector3 |
Vector3.addScaled(IVector3 other,
double v) |
Vector3 |
IVector3.addScaled(IVector3 other,
double v)
Adds a scaled vector to this one.
|
Vector3 |
Vector3.addScaled(IVector3 other,
double v,
Vector3 result) |
Vector3 |
IVector3.addScaled(IVector3 other,
double v,
Vector3 result)
Adds a scaled vector to this one and stores the result in the supplied vector.
|
Vector3 |
Vector3.addScaledLocal(IVector3 other,
double v)
Adds a scaled vector in-place to this one.
|
Vector3 |
IBox.center()
Returns the center of the box as a new vector.
|
Vector3 |
Box.center() |
Vector3 |
IBox.center(Vector3 result)
Places the location of the center of the box into the given result vector.
|
Vector3 |
Box.center(Vector3 result) |
Vector3 |
Vector3.cross(IVector3 other) |
Vector3 |
IVector3.cross(IVector3 other)
Computes the cross product of this and the specified other vector.
|
Vector3 |
Vector3.cross(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.cross(IVector3 other,
Vector3 result)
Computes the cross product of this and the specified other vector, placing the result
in the object supplied.
|
Vector3 |
Vector3.crossLocal(IVector3 other)
Computes the cross product of this and the specified other vector, storing the result
in this vector.
|
Vector3 |
Ray3.direction() |
Vector3 |
Matrix4.extractScale() |
Vector3 |
IMatrix4.extractScale()
Extracts the scale component of the matrix.
|
Vector3 |
Matrix4.extractScale(Vector3 result) |
Vector3 |
IMatrix4.extractScale(Vector3 result)
Extracts the scale component of the matrix and places it in the provided result vector.
|
Vector3 |
Vector3.lerp(IVector3 other,
double t) |
Vector3 |
IVector3.lerp(IVector3 other,
double t)
Linearly interpolates between this and the specified other vector by the supplied amount.
|
Vector3 |
Vector3.lerp(IVector3 other,
double t,
Vector3 result) |
Vector3 |
IVector3.lerp(IVector3 other,
double t,
Vector3 result)
Linearly interpolates between this and the supplied other vector by the supplied amount,
storing the result in the supplied object.
|
Vector3 |
Vector3.lerpLocal(IVector3 other,
double t)
Linearly interpolates between this and the specified other vector in-place by the supplied
amount.
|
Vector3 |
Vector3.mult(double v) |
Vector3 |
IVector3.mult(double v)
Multiplies this vector by a scalar.
|
Vector3 |
Vector3.mult(double v,
Vector3 result) |
Vector3 |
IVector3.mult(double v,
Vector3 result)
Multiplies this vector by a scalar and places the result in the supplied object.
|
Vector3 |
Vector3.mult(IVector3 other) |
Vector3 |
IVector3.mult(IVector3 other)
Multiplies this vector by another.
|
Vector3 |
Vector3.mult(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.mult(IVector3 other,
Vector3 result)
Multiplies this vector by another, storing the result in the object provided.
|
Vector3 |
Vector3.multLocal(double v)
Multiplies this vector in-place by a scalar.
|
Vector3 |
Vector3.multLocal(IVector3 other)
Multiplies this vector in-place by another.
|
Vector3 |
Vector3.negate() |
Vector3 |
IVector3.negate()
Negates this vector.
|
Vector3 |
Vector3.negate(Vector3 result) |
Vector3 |
IVector3.negate(Vector3 result)
Negates this vector, storing the result in the supplied object.
|
Vector3 |
Vector3.negateLocal()
Negates this vector in-place.
|
Vector3 |
Vector3.normalize() |
Vector3 |
IVector3.normalize()
Normalizes this vector.
|
Vector3 |
Vector3.normalize(Vector3 result) |
Vector3 |
IVector3.normalize(Vector3 result)
Normalizes this vector, storing the result in the object supplied.
|
Vector3 |
Vector3.normalizeLocal()
Normalizes this vector in-place.
|
Vector3 |
Ray3.origin() |
Vector3 |
Matrix4.projectPoint(IVector3 point) |
Vector3 |
IMatrix4.projectPoint(IVector3 point)
Projects the supplied point using this matrix.
|
Vector3 |
Matrix4.projectPoint(IVector3 point,
Vector3 result) |
Vector3 |
IMatrix4.projectPoint(IVector3 point,
Vector3 result)
Projects the supplied point using this matrix and places the result in the object supplied.
|
Vector3 |
Matrix4.projectPointLocal(Vector3 point) |
Vector3 |
IMatrix4.projectPointLocal(Vector3 point)
Projects the supplied point in-place using this matrix.
|
Vector3 |
Vector3.set(double[] values)
Copies the elements of an array.
|
Vector3 |
Vector3.set(double x,
double y,
double z)
Sets all of the elements of the vector.
|
Vector3 |
Vector3.set(IVector3 other)
Copies the elements of another vector.
|
Vector3 |
Vector3.subtract(IVector3 other) |
Vector3 |
IVector3.subtract(IVector3 other)
Subtracts a vector from this one.
|
Vector3 |
Vector3.subtract(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.subtract(IVector3 other,
Vector3 result)
Subtracts a vector from this one and places the result in the supplied object.
|
Vector3 |
Vector3.subtractLocal(IVector3 other)
Subtracts a vector in-place from this one.
|
Vector3 |
Quaternion.toAngles() |
Vector3 |
IQuaternion.toAngles()
Computes and returns the angles to pass to
Quaternion.fromAngles(pythagoras.d.Vector3) to reproduce this
rotation. |
Vector3 |
Quaternion.toAngles(Vector3 result) |
Vector3 |
IQuaternion.toAngles(Vector3 result)
Computes the angles to pass to
Quaternion.fromAngles(pythagoras.d.Vector3) to reproduce this rotation,
placing them in the provided vector. |
Vector3 |
Quaternion.transform(IVector3 vector) |
Vector3 |
Matrix3.transform(IVector3 vector) |
Vector3 |
IQuaternion.transform(IVector3 vector)
Transforms a vector by this quaternion.
|
Vector3 |
Quaternion.transform(IVector3 vector,
Vector3 result) |
Vector3 |
Matrix3.transform(IVector3 vector,
Vector3 result) |
Vector3 |
IQuaternion.transform(IVector3 vector,
Vector3 result)
Transforms a vector by this quaternion and places the result in the provided object.
|
Vector3 |
Quaternion.transformAndAdd(IVector3 vector,
IVector3 add,
Vector3 result) |
Vector3 |
IQuaternion.transformAndAdd(IVector3 vector,
IVector3 add,
Vector3 result)
Transforms a vector by this quaternion and adds another vector to it, placing the result
in the object provided.
|
Vector3 |
Quaternion.transformLocal(Vector3 vector)
Transforms a vector in-place by this quaternion.
|
Vector3 |
Matrix3.transformLocal(Vector3 vector) |
Vector3 |
Matrix4.transformPoint(IVector3 point) |
Vector3 |
IMatrix4.transformPoint(IVector3 point)
Transforms a point by this matrix.
|
Vector3 |
Matrix4.transformPoint(IVector3 point,
Vector3 result) |
Vector3 |
IMatrix4.transformPoint(IVector3 point,
Vector3 result)
Transforms a point by this matrix and places the result in the object provided.
|
Vector3 |
Matrix4.transformPointLocal(Vector3 point) |
Vector3 |
IMatrix4.transformPointLocal(Vector3 point)
Transforms a point in-place by this matrix.
|
Vector3 |
Quaternion.transformScaleAndAdd(IVector3 vector,
double scale,
IVector3 add,
Vector3 result) |
Vector3 |
IQuaternion.transformScaleAndAdd(IVector3 vector,
double scale,
IVector3 add,
Vector3 result)
Transforms a vector by this quaternion, applies a uniform scale, and adds another vector to
it, placing the result in the object provided.
|
Vector3 |
Quaternion.transformUnitX(Vector3 result) |
Vector3 |
IQuaternion.transformUnitX(Vector3 result)
Transforms the unit x vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Quaternion.transformUnitY(Vector3 result) |
Vector3 |
IQuaternion.transformUnitY(Vector3 result)
Transforms the unit y vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Quaternion.transformUnitZ(Vector3 result) |
Vector3 |
IQuaternion.transformUnitZ(Vector3 result)
Transforms the unit z vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Matrix4.transformVector(IVector3 vector) |
Vector3 |
IMatrix4.transformVector(IVector3 vector)
Transforms a vector by this inner 3x3 part of this matrix.
|
Vector3 |
Matrix4.transformVector(IVector3 vector,
Vector3 result) |
Vector3 |
IMatrix4.transformVector(IVector3 vector,
Vector3 result)
Transforms a vector by the inner 3x3 part of this matrix and places the result in the object
provided.
|
Vector3 |
Matrix4.transformVectorLocal(Vector3 vector) |
Vector3 |
IMatrix4.transformVectorLocal(Vector3 vector)
Transforms a vector in-place by the inner 3x3 part of this matrix.
|
Vector3 |
IBox.vertex(int code,
Vector3 result)
Retrieves one of the eight vertices of the box.
|
Vector3 |
Box.vertex(int code,
Vector3 result) |
Modifier and Type | Method and Description |
---|---|
Vector3 |
Vector3.abs(Vector3 result) |
Vector3 |
IVector3.abs(Vector3 result)
Absolute-values this vector, storing the result in the supplied object.
|
Vector3 |
Vector3.add(double x,
double y,
double z,
Vector3 result) |
Vector3 |
IVector3.add(double x,
double y,
double z,
Vector3 result)
Adds a vector to this one and stores the result in the object provided.
|
Vector3 |
Vector3.add(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.add(IVector3 other,
Vector3 result)
Adds a vector to this one, storing the result in the object provided.
|
Vector3 |
Vector3.addScaled(IVector3 other,
double v,
Vector3 result) |
Vector3 |
IVector3.addScaled(IVector3 other,
double v,
Vector3 result)
Adds a scaled vector to this one and stores the result in the supplied vector.
|
Vector3 |
IBox.center(Vector3 result)
Places the location of the center of the box into the given result vector.
|
Vector3 |
Box.center(Vector3 result) |
Vector3 |
Vector3.cross(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.cross(IVector3 other,
Vector3 result)
Computes the cross product of this and the specified other vector, placing the result
in the object supplied.
|
double |
Frustum.distance(Vector3 point)
Determines the maximum signed distance of the point from the planes of the frustum.
|
Vector3 |
Matrix4.extractScale(Vector3 result) |
Vector3 |
IMatrix4.extractScale(Vector3 result)
Extracts the scale component of the matrix and places it in the provided result vector.
|
Quaternion |
Quaternion.fromAngles(Vector3 angles)
Sets this quaternion to one that first rotates about x by the specified number of radians,
then rotates about y, then about z.
|
void |
Matrix3.getColumn(int col,
Vector3 result) |
void |
Matrix3.getRow(int row,
Vector3 result) |
boolean |
Plane.intersection(IRay3 ray,
Vector3 result) |
boolean |
IPlane.intersection(IRay3 ray,
Vector3 result)
Computes the intersection of the supplied ray with this plane, placing the result
in the given vector (if the ray intersects).
|
boolean |
IBox.intersection(IRay3 ray,
Vector3 result)
Finds the location of the (first) intersection between the specified ray and this box.
|
boolean |
Box.intersection(IRay3 ray,
Vector3 result) |
Vector3 |
Vector3.lerp(IVector3 other,
double t,
Vector3 result) |
Vector3 |
IVector3.lerp(IVector3 other,
double t,
Vector3 result)
Linearly interpolates between this and the supplied other vector by the supplied amount,
storing the result in the supplied object.
|
Vector3 |
Vector3.mult(double v,
Vector3 result) |
Vector3 |
IVector3.mult(double v,
Vector3 result)
Multiplies this vector by a scalar and places the result in the supplied object.
|
Vector3 |
Vector3.mult(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.mult(IVector3 other,
Vector3 result)
Multiplies this vector by another, storing the result in the object provided.
|
Vector3 |
Vector3.negate(Vector3 result) |
Vector3 |
IVector3.negate(Vector3 result)
Negates this vector, storing the result in the supplied object.
|
Vector3 |
Vector3.normalize(Vector3 result) |
Vector3 |
IVector3.normalize(Vector3 result)
Normalizes this vector, storing the result in the object supplied.
|
Vector3 |
Matrix4.projectPoint(IVector3 point,
Vector3 result) |
Vector3 |
IMatrix4.projectPoint(IVector3 point,
Vector3 result)
Projects the supplied point using this matrix and places the result in the object supplied.
|
Vector3 |
Matrix4.projectPointLocal(Vector3 point) |
Vector3 |
IMatrix4.projectPointLocal(Vector3 point)
Projects the supplied point in-place using this matrix.
|
Ray3 |
Ray3.set(Vector3 origin,
Vector3 direction)
Sets the ray parameters to the values contained in the supplied vectors.
|
void |
Matrix3.setColumn(int col,
Vector3 v)
Sets the specified column (0, 1, 2) to the supplied vector.
|
void |
Matrix3.setRow(int row,
Vector3 v)
Sets the specified row (0, 1, 2) to the supplied vector.
|
Vector3 |
Vector3.subtract(IVector3 other,
Vector3 result) |
Vector3 |
IVector3.subtract(IVector3 other,
Vector3 result)
Subtracts a vector from this one and places the result in the supplied object.
|
Vector3 |
Quaternion.toAngles(Vector3 result) |
Vector3 |
IQuaternion.toAngles(Vector3 result)
Computes the angles to pass to
Quaternion.fromAngles(pythagoras.d.Vector3) to reproduce this rotation,
placing them in the provided vector. |
Vector3 |
Quaternion.transform(IVector3 vector,
Vector3 result) |
Vector3 |
Matrix3.transform(IVector3 vector,
Vector3 result) |
Vector3 |
IQuaternion.transform(IVector3 vector,
Vector3 result)
Transforms a vector by this quaternion and places the result in the provided object.
|
Vector3 |
Quaternion.transformAndAdd(IVector3 vector,
IVector3 add,
Vector3 result) |
Vector3 |
IQuaternion.transformAndAdd(IVector3 vector,
IVector3 add,
Vector3 result)
Transforms a vector by this quaternion and adds another vector to it, placing the result
in the object provided.
|
Vector3 |
Quaternion.transformLocal(Vector3 vector)
Transforms a vector in-place by this quaternion.
|
Vector3 |
Matrix3.transformLocal(Vector3 vector) |
Vector3 |
Matrix4.transformPoint(IVector3 point,
Vector3 result) |
Vector3 |
IMatrix4.transformPoint(IVector3 point,
Vector3 result)
Transforms a point by this matrix and places the result in the object provided.
|
Vector3 |
Matrix4.transformPointLocal(Vector3 point) |
Vector3 |
IMatrix4.transformPointLocal(Vector3 point)
Transforms a point in-place by this matrix.
|
Vector3 |
Quaternion.transformScaleAndAdd(IVector3 vector,
double scale,
IVector3 add,
Vector3 result) |
Vector3 |
IQuaternion.transformScaleAndAdd(IVector3 vector,
double scale,
IVector3 add,
Vector3 result)
Transforms a vector by this quaternion, applies a uniform scale, and adds another vector to
it, placing the result in the object provided.
|
Vector3 |
Quaternion.transformUnitX(Vector3 result) |
Vector3 |
IQuaternion.transformUnitX(Vector3 result)
Transforms the unit x vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Quaternion.transformUnitY(Vector3 result) |
Vector3 |
IQuaternion.transformUnitY(Vector3 result)
Transforms the unit y vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Quaternion.transformUnitZ(Vector3 result) |
Vector3 |
IQuaternion.transformUnitZ(Vector3 result)
Transforms the unit z vector by this quaternion, placing the result in the provided object.
|
Vector3 |
Matrix4.transformVector(IVector3 vector,
Vector3 result) |
Vector3 |
IMatrix4.transformVector(IVector3 vector,
Vector3 result)
Transforms a vector by the inner 3x3 part of this matrix and places the result in the object
provided.
|
Vector3 |
Matrix4.transformVectorLocal(Vector3 vector) |
Vector3 |
IMatrix4.transformVectorLocal(Vector3 vector)
Transforms a vector in-place by the inner 3x3 part of this matrix.
|
Vector3 |
IBox.vertex(int code,
Vector3 result)
Retrieves one of the eight vertices of the box.
|
Vector3 |
Box.vertex(int code,
Vector3 result) |
Constructor and Description |
---|
Ray3(Vector3 origin,
Vector3 direction)
Creates a ray with the values contained in the supplied origin point and unit direction
vector.
|
Copyright © 2017. All rights reserved.