|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ReadonlyVec2D | |
---|---|
toxi.geom |
Uses of ReadonlyVec2D in toxi.geom |
---|
Classes in toxi.geom that implement ReadonlyVec2D | |
---|---|
class |
Circle
This class overrides Ellipse to define a 2D circle and provides
several utility methods for it, including factory methods to construct
circles from points. |
class |
Ellipse
This class defines a 2D ellipse and provides several utility methods for it. |
class |
Ray2D
A simple 2D ray datatype |
class |
Vec2D
Comprehensive 2D vector class with additional basic intersection and collision detection features. |
Fields in toxi.geom declared as ReadonlyVec2D | |
---|---|
ReadonlyVec2D |
IsectData2D.dir
|
static ReadonlyVec2D |
Vec2D.MAX_VALUE
Defines vector with both coords set to Float.MAX_VALUE. |
static ReadonlyVec2D |
Vec2D.MIN_VALUE
Defines vector with both coords set to Float.MIN_VALUE. |
ReadonlyVec2D |
IsectData2D.normal
|
ReadonlyVec2D |
IsectData2D.pos
|
static ReadonlyVec2D |
Vec2D.X_AXIS
Defines positive X axis |
static ReadonlyVec2D |
Vec2D.Y_AXIS
Defines positive Y axis |
static ReadonlyVec2D |
Vec2D.ZERO
Defines the zero vector. |
Methods in toxi.geom that return ReadonlyVec2D | |
---|---|
ReadonlyVec2D |
PointQuadtree.getOffset()
|
ReadonlyVec2D |
Vec2D.Axis.getVector()
|
ReadonlyVec2D |
Rect.intersectsRay(Ray2D ray,
float minDist,
float maxDist)
Checks if the rectangle intersects with the given ray and if so computes the first intersection point. |
Methods in toxi.geom with parameters of type ReadonlyVec2D | |
---|---|
Vec2D |
Vec2D.add(ReadonlyVec2D v)
|
Spline2D |
Spline2D.add(ReadonlyVec2D p)
Adds the given point to the list of control points. |
Vec2D |
ReadonlyVec2D.add(ReadonlyVec2D v)
Add vector v and returns result as new vector. |
float |
Vec2D.angleBetween(ReadonlyVec2D v)
|
float |
ReadonlyVec2D.angleBetween(ReadonlyVec2D v)
Computes the angle between this vector and vector V. |
float |
Vec2D.angleBetween(ReadonlyVec2D v,
boolean forceNormalize)
|
float |
ReadonlyVec2D.angleBetween(ReadonlyVec2D v,
boolean forceNormalize)
Computes the angle between this vector and vector V |
Vec2D |
Line2D.closestPointTo(ReadonlyVec2D p)
Computes the closest point on this line to the point given. |
int |
Vec2D.compareTo(ReadonlyVec2D v)
|
int |
ReadonlyVec2D.compareTo(ReadonlyVec2D v)
Compares the length of the vector with another one. |
boolean |
Triangle2D.containsPoint(ReadonlyVec2D p)
Checks if point vector is inside the triangle created by the points a, b and c. |
boolean |
Shape2D.containsPoint(ReadonlyVec2D p)
Checks if the point is within the given shape. |
boolean |
Rect.containsPoint(ReadonlyVec2D p)
Checks if the given point is within the rectangle's bounds. |
boolean |
Polygon2D.containsPoint(ReadonlyVec2D p)
|
boolean |
PointQuadtree.containsPoint(ReadonlyVec2D p)
|
boolean |
Ellipse.containsPoint(ReadonlyVec2D p)
|
boolean |
Circle.containsPoint(ReadonlyVec2D p)
|
static Triangle2D |
Triangle2D.createEquilateralFrom(ReadonlyVec2D a,
ReadonlyVec2D b)
|
float |
Vec2D.cross(ReadonlyVec2D v)
|
float |
ReadonlyVec2D.cross(ReadonlyVec2D v)
Calculates the cross-product with the given vector. |
float |
Vec2D.distanceTo(ReadonlyVec2D v)
|
float |
ReadonlyVec2D.distanceTo(ReadonlyVec2D v)
Calculates distance to another vector |
float |
Vec2D.distanceToSquared(ReadonlyVec2D v)
|
float |
ReadonlyVec2D.distanceToSquared(ReadonlyVec2D v)
Calculates the squared distance to another vector |
float |
Vec2D.dot(ReadonlyVec2D v)
|
float |
ReadonlyVec2D.dot(ReadonlyVec2D v)
Computes the scalar product (dot product) with the given vector. |
boolean |
Vec2D.equalsWithTolerance(ReadonlyVec2D v,
float tolerance)
|
boolean |
ReadonlyVec2D.equalsWithTolerance(ReadonlyVec2D v,
float tolerance)
Compares this vector with the one given. |
static Rect |
Rect.fromCenterExtent(ReadonlyVec2D center,
Vec2D extent)
Factory method, constructs a new rectangle from a center point and extent vector. |
Vec2D |
Triangle2D.getClosestPointTo(ReadonlyVec2D p)
Finds and returns the closest point on any of the triangle edges to the point given. |
PointQuadtree |
PointQuadtree.getLeafForPoint(ReadonlyVec2D p)
Finds the leaf node which spatially relates to the given point |
Vec2D |
Vec2D.getReflected(ReadonlyVec2D normal)
|
Vec2D |
ReadonlyVec2D.getReflected(ReadonlyVec2D normal)
|
Vec2D[] |
Circle.getTangentPoints(ReadonlyVec2D p)
|
Vec2D |
Vec2D.interpolateTo(ReadonlyVec2D v,
float f)
|
Vec2D |
ReadonlyVec2D.interpolateTo(ReadonlyVec2D v,
float f)
Interpolates the vector towards the given target vector, using linear interpolation |
Vec2D |
Vec2D.interpolateTo(ReadonlyVec2D v,
float f,
InterpolateStrategy s)
|
Vec2D |
ReadonlyVec2D.interpolateTo(ReadonlyVec2D v,
float f,
InterpolateStrategy s)
Interpolates the vector towards the given target vector, using the given InterpolateStrategy |
Vec2D |
Vec2D.interpolateToSelf(ReadonlyVec2D v,
float f)
Interpolates the vector towards the given target vector, using linear interpolation |
Vec2D |
Vec2D.interpolateToSelf(ReadonlyVec2D v,
float f,
InterpolateStrategy s)
Interpolates the vector towards the given target vector, using the given InterpolateStrategy |
boolean |
Vec2D.isInCircle(ReadonlyVec2D sO,
float sR)
|
boolean |
ReadonlyVec2D.isInCircle(ReadonlyVec2D sO,
float sR)
Checks if the point is inside the given sphere. |
Vec2D |
Vec2D.reflect(ReadonlyVec2D normal)
|
boolean |
PointQuadtree.remove(ReadonlyVec2D p)
Removes a point from the tree and (optionally) tries to release memory by reducing now empty sub-branches. |
Vec2D |
Vec2D.scale(ReadonlyVec2D s)
|
Vec2D |
ReadonlyVec2D.scale(ReadonlyVec2D s)
|
Vec2D |
Vec2D.set(ReadonlyVec2D v)
|
Ray2D |
Ray2D.setDirection(ReadonlyVec2D d)
Uses a normalized copy of the given vector as the ray direction. |
Vec2D |
Vec2D.sub(ReadonlyVec2D v)
|
Vec2D |
ReadonlyVec2D.sub(ReadonlyVec2D v)
|
Constructors in toxi.geom with parameters of type ReadonlyVec2D | |
---|---|
Circle(ReadonlyVec2D origin,
float radius)
|
|
Ellipse(ReadonlyVec2D v,
float r)
|
|
Ellipse(ReadonlyVec2D v,
ReadonlyVec2D r)
|
|
Line2D.LineIntersection(Line2D.LineIntersection.Type type,
ReadonlyVec2D pos)
|
|
Line2D(ReadonlyVec2D a,
ReadonlyVec2D b)
|
|
Ray2D(float x,
float y,
ReadonlyVec2D d)
|
|
Ray2D(ReadonlyVec2D o,
ReadonlyVec2D d)
|
|
Rect(ReadonlyVec2D topLeft,
ReadonlyVec2D bottomRight)
Constructs a new rectangle defined by its top left and bottom right points. |
|
Triangle2D(ReadonlyVec2D a,
ReadonlyVec2D b,
ReadonlyVec2D c)
|
|
Vec2D(ReadonlyVec2D v)
Creates a new vector with the coordinates of the given vector |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |