public class Point2DFloat
extends java.lang.Object
ListExpression
?Modifier and Type | Field and Description |
---|---|
float |
x
The x coordinate of the point.
|
float |
y
The y coordinate of the point.
|
Constructor and Description |
---|
Point2DFloat(float x,
float y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static float |
distance(float x1,
float y1,
float x2,
float y2)
Returns the distance between two points, (x1, y1) and (x2, y2).
|
Point2DFloat |
rotateAround(float cx,
float cy,
double theta)
Rotates this point around another point (cx, cy) with angle theta.
|
static Point2DFloat |
rotateAround(float x,
float y,
float cx,
float cy,
double theta)
Rotates a point (x,y) around another point (cx, cy) with angle theta
(specified in radians).
|
Point2DFloat |
rotateAround(Point2DFloat center,
double theta)
Rotates this point around another point (cx, cy) with angle theta.
|
Point2DFloat |
scaleAround(float cx,
float cy,
float scale)
Scales this point around another point (cx, cy) with scale factor
scale.
|
static Point2DFloat |
scaleAround(float x,
float y,
float cx,
float cy,
float scale)
Scales a point (x,y) around another point (cx, cy) with scale factor
scale.
|
Point2DFloat |
scaleAround(Point2DFloat center,
float scale)
Scales this point around another point (cx, cy) with scale factor
scale.
|
frink.expr.BasicListExpression |
toExpression()
Converts to a Frink expression as a
ListExpression
with [x,y] values. |
public float x
public float y
public static float distance(float x1, float y1, float x2, float y2)
public static Point2DFloat scaleAround(float x, float y, float cx, float cy, float scale)
public Point2DFloat scaleAround(float cx, float cy, float scale)
public Point2DFloat scaleAround(Point2DFloat center, float scale)
public static Point2DFloat rotateAround(float x, float y, float cx, float cy, double theta)
public Point2DFloat rotateAround(float cx, float cy, double theta)
public Point2DFloat rotateAround(Point2DFloat center, double theta)
public frink.expr.BasicListExpression toExpression()
ListExpression
with [x,y] values.