public class Geom
extends java.lang.Object
Constructor and Description |
---|
Geom() |
Modifier and Type | Method and Description |
---|---|
static double |
allowedFraction(double x,
double y,
double vx,
double vy,
double[] xyxy) |
static double |
altDistanceTo(Position pos,
double[] xyxy) |
static double |
angleTo(Position position) |
static Position[] |
copyPositionArray(Position[] pa) |
static double |
distance(double x1,
double y1,
double x2,
double y2) |
static double |
distance2(double x1,
double y1,
double x2,
double y2) |
static double |
distanceBetween(Position pos,
Position pse) |
static double |
distanceTo(Position pos,
double[] xyxy) |
private static double |
fCross(double xa,
double ya,
double xb,
double yb,
double xc,
double yc,
double xd,
double yd) |
static Position[] |
getBoundary(java.util.ArrayList<Position> apts) |
static double |
intersectFraction(Position pa,
Position pb,
double[] xyxy) |
static void |
main(java.lang.String[] argv) |
static double |
perimeterDistance(Position pos,
Heading h,
double radius) |
static void |
rotateAbout(Position[] rp,
Position rpc,
double rad) |
static Position |
translatedRotatedPoint(Position b,
Position pc,
Heading h) |
static Position[] |
translatedRotatedPoints(Position[] bdry,
Position pc,
Heading h) |
static Position[] |
translatedRotatedPoints(Position[] bdry,
Position pt,
Heading h,
Position pcen) |
public static double allowedFraction(double x, double y, double vx, double vy, double[] xyxy)
private static final double fCross(double xa, double ya, double xb, double yb, double xc, double yc, double xd, double yd)
public static double distanceTo(Position pos, double[] xyxy)
public static double altDistanceTo(Position pos, double[] xyxy)
public static double distance(double x1, double y1, double x2, double y2)
public static double distance2(double x1, double y1, double x2, double y2)
public static void main(java.lang.String[] argv)
public static Position translatedRotatedPoint(Position b, Position pc, Heading h)
public static Position[] translatedRotatedPoints(Position[] bdry, Position pc, Heading h)
public static Position[] translatedRotatedPoints(Position[] bdry, Position pt, Heading h, Position pcen)
public static double angleTo(Position position)
Copyright © 2013. All Rights Reserved.