geo

Types

Point type
A point on a plane, with a label to show by it.
Shape type
The kinds of area knows.

Shared

area (shape: Shape, size: number) => number
The area of a Shape of a size: a circle's radius, a square's or a regular hexagon's side.
distance (a: Point, b: Point, digits?: number | undefined) => number
The distance between two points, to `digits` decimal places if given.
manifest { name: string; }
Points, distances and shapes on a plane.
midpoint (a: Point, b: Point) => Point
The point halfway between two points.
perimeter (corners: Point[]) => number
How far it is around a closed shape's corners.

Tests

testArea () => void
testDistance () => void
testHexagon () => void
testMidpoint () => void
testPerimeter () => void