Package | Description |
---|---|
pythagoras.f |
The Pythagoras geometry utility classes specialized on
float . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractVector
Provides most of the implementation of
IVector , obtaining only x and y from the derived
class. |
class |
Vector
Represents a vector in a plane.
|
Modifier and Type | Field and Description |
---|---|
static IVector |
Vectors.MAX_VALUE
A vector containing the maximum floating point value for all components.
|
static IVector |
Vectors.MIN_VALUE
A vector containing the minimum floating point value for all components
(note: the components are -
Float.MAX_VALUE , not Float.MIN_VALUE ). |
static IVector |
Vectors.UNIT_X
A unit vector in the X+ direction.
|
static IVector |
Vectors.UNIT_Y
A unit vector in the Y+ direction.
|
static IVector |
Vectors.ZERO
The zero vector.
|
Modifier and Type | Method and Description |
---|---|
IVector |
Ray2.direction() |
IVector |
IRay2.direction()
Returns a reference to the ray's unit direction vector.
|
IVector |
Ray2.origin() |
IVector |
IRay2.origin()
Returns a reference to the ray's point of origin.
|
Modifier and Type | Method and Description |
---|---|
Vector |
IVector.add(IVector other)
Adds a vector to this one.
|
Vector |
AbstractVector.add(IVector other) |
Vector |
IVector.add(IVector other,
Vector result)
Adds a vector to this one, storing the result in the object provided.
|
Vector |
AbstractVector.add(IVector other,
Vector result) |
Vector |
Vector.addLocal(IVector other)
Adds a vector in-place to this one.
|
Vector |
IVector.addScaled(IVector other,
float v)
Adds a scaled vector to this one.
|
Vector |
AbstractVector.addScaled(IVector other,
float v) |
Vector |
IVector.addScaled(IVector other,
float v,
Vector result)
Adds a scaled vector to this one and stores the result in the supplied vector.
|
Vector |
AbstractVector.addScaled(IVector other,
float v,
Vector result) |
Vector |
Vector.addScaledLocal(IVector other,
float v)
Adds a scaled vector in-place to this one.
|
float |
IVector.angleBetween(IVector other)
Returns the angle between this vector and the specified other vector.
|
float |
AbstractVector.angleBetween(IVector other) |
Vector |
IVector.cross(IVector other)
Computes the cross product of this and the specified other vector.
|
Vector |
AbstractVector.cross(IVector other) |
Vector |
IVector.cross(IVector other,
Vector result)
Computes the cross product of this and the specified other vector, placing the result in
the object supplied.
|
Vector |
AbstractVector.cross(IVector other,
Vector result) |
Vector |
Vector.crossLocal(IVector other)
Computes the cross product of this and the specified other vector, storing the result in
this vector.
|
float |
IVector.distance(IVector other)
Returns the distance from this vector to the specified other vector.
|
float |
AbstractVector.distance(IVector other) |
float |
IVector.distanceSq(IVector other)
Returns the squared distance from this vector to the specified other.
|
float |
AbstractVector.distanceSq(IVector other) |
float |
IVector.dot(IVector other)
Computes and returns the dot product of this and the specified other vector.
|
float |
AbstractVector.dot(IVector other) |
static boolean |
Vectors.epsilonEquals(IVector v1,
IVector v2)
Returns true if the supplied vectors' x and y components are equal to one another within
MathUtil.EPSILON . |
static boolean |
Vectors.epsilonEquals(IVector v1,
IVector v2,
float epsilon)
Returns true if the supplied vectors' x and y components are equal to one another within
epsilon . |
boolean |
Ray2.getIntersection(IVector center,
float radius,
Vector result) |
boolean |
IRay2.getIntersection(IVector center,
float radius,
Vector result)
Finds the intersection between the ray and a circle with the given center and radius.
|
boolean |
Ray2.getIntersection(IVector start,
IVector end,
float radius,
Vector result) |
boolean |
IRay2.getIntersection(IVector start,
IVector end,
float radius,
Vector result)
Finds the intersection between the ray and a capsule with the given start point, end point,
and radius.
|
boolean |
Ray2.getIntersection(IVector start,
IVector end,
Vector result) |
boolean |
IRay2.getIntersection(IVector start,
IVector end,
Vector result)
Finds the intersection between the ray and a line segment with the given start and end
points.
|
Vector |
Ray2.getNearestPoint(IVector point,
Vector result) |
Vector |
IRay2.getNearestPoint(IVector point,
Vector result)
Computes the nearest point on the Ray to the supplied point.
|
boolean |
Ray2.intersects(IVector pt) |
boolean |
IRay2.intersects(IVector pt)
Determines whether the ray intersects the specified point.
|
Vector |
Transform.inverseTransform(IVector v,
Vector into)
Inverse transforms the supplied vector, writing the result into
into . |
Vector |
IdentityTransform.inverseTransform(IVector v,
Vector into) |
Vector |
AffineTransform.inverseTransform(IVector v,
Vector into) |
Vector |
IVector.lerp(IVector other,
float t)
Linearly interpolates between this and the specified other vector by the supplied amount.
|
Vector |
AbstractVector.lerp(IVector other,
float t) |
Vector |
IVector.lerp(IVector other,
float t,
Vector result)
Linearly interpolates between this and the supplied other vector by the supplied amount,
storing the result in the supplied object.
|
Vector |
AbstractVector.lerp(IVector other,
float t,
Vector result) |
Vector |
Vector.lerpLocal(IVector other,
float t)
Linearly interpolates between this and
other in-place by the supplied amount. |
Vector |
IVector.rotateAndAdd(float angle,
IVector add,
Vector result)
Rotates this vector by the specified angle and adds another vector to it, placing the
result in the object provided.
|
Vector |
AbstractVector.rotateAndAdd(float angle,
IVector add,
Vector result) |
Vector |
IVector.rotateScaleAndAdd(float angle,
float scale,
IVector add,
Vector result)
Rotates this vector by the specified angle, applies a uniform scale, and adds another
vector to it, placing the result in the object provided.
|
Vector |
AbstractVector.rotateScaleAndAdd(float angle,
float scale,
IVector add,
Vector result) |
Vector |
IVector.scale(IVector other)
Scales this vector's x and y components independently by the x and y components of the
supplied vector.
|
Vector |
AbstractVector.scale(IVector other) |
Vector |
IVector.scale(IVector other,
Vector result)
Scales this vector's x and y components independently by the x and y components of the
supplied vector, and stores the result in the object provided.
|
Vector |
AbstractVector.scale(IVector other,
Vector result) |
Vector |
Vector.scaleLocal(IVector other)
Scales this vector's x and y components, in place, independently by the x and y components
of the supplied vector.
|
Ray2 |
Ray2.set(IVector origin,
IVector direction)
Sets the ray parameters to the values contained in the supplied vectors.
|
Matrix3 |
Matrix3.setToTransform(IVector translation,
float rotation)
Sets this to a matrix that first rotates, then translates.
|
Matrix3 |
Matrix3.setToTransform(IVector translation,
float rotation,
float scale)
Sets this to a matrix that first scales, then rotates, then translates.
|
Matrix3 |
Matrix3.setToTransform(IVector translation,
float rotation,
IVector scale)
Sets this to a matrix that first scales, then rotates, then translates.
|
Matrix3 |
Matrix3.setToTranslation(IVector translation)
Sets this to a translation matrix.
|
Matrix3 |
Matrix3.setTranslation(IVector translation)
Sets the translation component of this matrix.
|
Vector |
IVector.subtract(IVector other)
Subtracts a vector from this one.
|
Vector |
AbstractVector.subtract(IVector other) |
Vector |
IVector.subtract(IVector other,
Vector result)
Subtracts a vector from this one and places the result in the supplied object.
|
Vector |
AbstractVector.subtract(IVector other,
Vector result) |
Vector |
Vector.subtractLocal(IVector other)
Subtracts a vector in-place from this one.
|
Vector |
Transform.transform(IVector v,
Vector into)
Transforms the supplied vector, writing the result into
into . |
Vector |
IdentityTransform.transform(IVector v,
Vector into) |
Vector |
AffineTransform.transform(IVector v,
Vector into) |
Vector |
Matrix3.transformPoint(IVector point) |
Vector |
Transform.transformPoint(IVector v,
Vector into)
Transforms the supplied vector as a point (accounting for translation), writing the result
into
into . |
Vector |
Matrix3.transformPoint(IVector point,
Vector result) |
Vector |
IdentityTransform.transformPoint(IVector v,
Vector into) |
Vector |
AffineTransform.transformPoint(IVector v,
Vector into) |
Vector |
Matrix3.transformVector(IVector vector) |
Vector |
Matrix3.transformVector(IVector vector,
Vector result) |
Copyright © 2017. All rights reserved.