Package | Description |
---|---|
org.cell2d.celick | |
org.cell2d.celick.geom |
Modifier and Type | Method and Description |
---|---|
Vector2f |
ShapeFill.getOffsetAt(Shape shape,
float x,
float y)
Get the offset for a vertex at a given location based on it's shape
|
Modifier and Type | Field and Description |
---|---|
Vector2f |
GeomUtil.HitResult.pt
The position of the intersection
|
Modifier and Type | Method and Description |
---|---|
Vector2f |
Vector2f.add(double theta)
Adjust this vector by a given angle
|
Vector2f |
Vector2f.add(Vector2f v)
Add a vector to this vector
|
Vector2f |
Vector2f.copy()
Return a copy of this vector
|
Vector2f |
TexCoordGenerator.getCoordFor(float x,
float y)
Get the texture coordinate for a given render position
|
Vector2f |
Line.getEnd()
Get the end point of the line
|
Vector2f |
Shape.getLocation()
Get the top-left location of this shape.
|
Vector2f |
Vector2f.getNormal()
The normal of the vector
|
Vector2f |
Vector2f.getPerpendicular()
A vector perpendicular to this vector.
|
Vector2f |
Line.getStart()
Get the start point of the line
|
Vector2f |
Line.intersect(Line other)
Intersect this line with another
|
Vector2f |
Line.intersect(Line other,
boolean limit)
Intersect this line with another
|
Vector2f |
Vector2f.negate()
Negate this vector
|
Vector2f |
Vector2f.negateLocal()
Negate this vector without creating a new copy
|
Vector2f |
Vector2f.normalise()
Normalise the vector
|
Vector2f |
Curve.pointAt(float t)
Get the point at a particular location on the curve
|
Vector2f |
Vector2f.scale(float a)
Scale this vector by a value
|
Vector2f |
Vector2f.set(float[] pt)
Set the values in this vector
|
Vector2f |
Vector2f.set(float x,
float y)
Set the values in this vector
|
Vector2f |
Vector2f.sub(double theta)
Adjust this vector by a given angle
|
Vector2f |
Vector2f.sub(Vector2f v)
Subtract a vector from this vector
|
Vector2f |
Transform.transform(Vector2f pt)
Transform the vector2f based on the matrix defined in this transform
|
Modifier and Type | Method and Description |
---|---|
Vector2f |
Vector2f.add(Vector2f v)
Add a vector to this vector
|
boolean |
MannTriangulator.PointBag.contains(Vector2f point)
Check if the point provided was contained
|
float |
Line.distance(Vector2f point)
Get the shortest distance from a point to this line
|
float |
Vector2f.distance(Vector2f other)
Get the distance from this point to another
|
float |
Line.distanceSquared(Vector2f point)
Get the shortest distance squared from a point to this line
|
float |
Vector2f.distanceSquared(Vector2f other)
Get the distance from this point to another, squared.
|
boolean |
MannTriangulator.PointBag.doesIntersectSegment(Vector2f v1,
Vector2f v2)
Check if the points in this bag form a path intersecting
with the specified path
|
float |
Vector2f.dot(Vector2f other)
Dot this vector against another
|
void |
Line.getClosestPoint(Vector2f point,
Vector2f result)
Get the closest point on the line to a given point
|
boolean |
Line.intersect(Line other,
boolean limit,
Vector2f result)
Intersect this line with another
|
boolean |
Line.on(Vector2f point)
Check if the given point is on the line
|
void |
Vector2f.projectOntoUnit(Vector2f b,
Vector2f result)
Project this vector onto another
|
void |
Vector2f.set(Vector2f other)
Set the value of this vector
|
void |
Line.set(Vector2f start,
Vector2f end)
Configure the line
|
void |
Shape.setLocation(Vector2f loc)
Set the top-left location of this shape
|
Vector2f |
Vector2f.sub(Vector2f v)
Subtract a vector from this vector
|
Vector2f |
Transform.transform(Vector2f pt)
Transform the vector2f based on the matrix defined in this transform
|
Constructor and Description |
---|
Curve(Vector2f p1,
Vector2f c1,
Vector2f c2,
Vector2f p2)
Create a new curve with the default segments (20)
|
Curve(Vector2f p1,
Vector2f c1,
Vector2f c2,
Vector2f p2,
int segments)
Create a new curve
|
Line(Vector2f start,
Vector2f end)
Create a new line based on two points
|
Vector2f(Vector2f other)
Create a new vector based on another
|