public class PointF
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
G2R |
static float |
PI |
float |
x |
float |
y |
Constructor and Description |
---|
PointF() |
PointF(float x,
float y) |
PointF(Point p) |
PointF(PointF p) |
Modifier and Type | Method and Description |
---|---|
static float |
angle(PointF start,
PointF end) |
PointF |
clone() |
static PointF |
diff(PointF a,
PointF b) |
static float |
distance(PointF a,
PointF b) |
Point |
floor() |
static PointF |
inter(PointF a,
PointF b,
float d) |
PointF |
invScale(float f) |
float |
length() |
PointF |
negate() |
PointF |
normalize() |
PointF |
offset(float dx,
float dy) |
PointF |
offset(PointF p) |
PointF |
polar(float a,
float l) |
PointF |
scale(float f) |
PointF |
set(float v) |
PointF |
set(float x,
float y) |
PointF |
set(PointF p) |
static PointF |
sum(PointF a,
PointF b) |
java.lang.String |
toString() |
public static final float PI
public static final float G2R
public float x
public float y
public PointF()
public PointF(float x, float y)
public PointF(PointF p)
public PointF(Point p)
public PointF clone()
clone
in class java.lang.Object
public PointF scale(float f)
public PointF invScale(float f)
public PointF set(float x, float y)
public PointF set(float v)
public PointF polar(float a, float l)
public PointF offset(float dx, float dy)
public PointF negate()
public PointF normalize()
public Point floor()
public float length()
public java.lang.String toString()
toString
in class java.lang.Object