geo
Types
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