public class BresenhamLine extends Object
Other methods we used are Bresenham (only integer start and end values) and Xiaolin Wu (anti aliasing). See some discussion here: http://stackoverflow.com/a/3234074/194609 and here http://stackoverflow.com/q/24679963/194609
Constructor and Description |
---|
BresenhamLine() |
Modifier and Type | Method and Description |
---|---|
static void |
bresenham(int y1,
int x1,
int y2,
int x2,
PointEmitter emitter) |
static void |
calcPoints(double lat1,
double lon1,
double lat2,
double lon2,
PointEmitter emitter,
double offsetLat,
double offsetLon,
double deltaLat,
double deltaLon)
Calls the Bresenham algorithm but make it working for double values
|
static void |
calcPoints(int y1,
int x1,
int y2,
int x2,
PointEmitter emitter) |
public static void calcPoints(int y1, int x1, int y2, int x2, PointEmitter emitter)
public static void bresenham(int y1, int x1, int y2, int x2, PointEmitter emitter)
public static void calcPoints(double lat1, double lon1, double lat2, double lon2, PointEmitter emitter, double offsetLat, double offsetLon, double deltaLat, double deltaLon)
Copyright © 2012–2019. All rights reserved.