public class Point extends Object
Modifier and Type | Field and Description |
---|---|
long |
timeOffsetNano |
float |
x |
float |
y |
Constructor and Description |
---|
Point(float x,
float y) |
Point(float x,
float y,
long timeOffsetNano) |
Modifier and Type | Method and Description |
---|---|
float |
crossProduct(Point a,
Point b)
Calculates the cross product of vec(this, a) and vec(this, b) where vec(x,y) is the
vector from point x to point y
|
float |
dist(Point a) |
float |
dotProduct(Point a,
Point b)
Calculates the dot product of vec(this, a) and vec(this, b) where vec(x,y) is the
vector from point x to point y
|
boolean |
equals(Point p) |
float |
getAngle(Point a,
Point b)
Calculates the angle in radians created by points (a, this, b).
|
public Point(float x, float y)
public Point(float x, float y, long timeOffsetNano)
public boolean equals(Point p)
public float dist(Point a)
public float crossProduct(Point a, Point b)
public float dotProduct(Point a, Point b)