arrows library

Classes

Arrow

Enums

ArcDirection

Functions

getAngle(double x0, double y0, double x1, double y1) double
Get an angle (radians) between two points.
getAngliness(double x0, double y0, double x1, double y1) double
Get a normal value representing how close two points are from being at a 45 degree angle.
getArrow(double x0, double y0, double x1, double y1, {double bow = 0, double stretchMin = 0, double stretchMax = 420, double stretch = 0.5, double padStart = 0, double padEnd = 0, bool flip = false, bool straights = true, ArcDirection arcDirection = ArcDirection.Auto}) Arrow
getDistance(double x0, double y0, double x1, double y1) double
Get the distance between two points.
getPointBetween(double x0, double y0, double x1, double y1, {double d = 0.5}) List<double>
Get a point between two points.
getSector(double angle, {double doubleberOfSectors = 8}) int
Get the sector of an angle (e.g. quadrant, octant)
mod(double value, List<double> a, List<double> b, {bool clamp = false}) double
Modulate a value between two ranges
projectPoint(double x0, double y0, double angle, double distance) List<double>
Move a point in an angle by a distance.
rotatePoint(double x, double y, double cx, double cy, double angle) List<double>
Rotate a point around a center.