Namespace Geometry

Functions for different shapes, paths and coordinate spaces.

A foundation module is Points for working with x, y (and maybe z). It has the top-level helper functions: degreeToRadian and radianToDegree

Basic shapes: Arcs, Circles, Ellipses, Lines, Rects, Triangles

Curves & paths: Beziers, Paths, Compound

Util:

  • Polar: Polar coordinates
  • Scaler: Simplify back and forth conversion between absolute/relative Cartesian coordinates
  • Shapes: Generates a few shapes like arrows
  • SurfacePoints: Generate points within a shape. Useful for creating patterns
  • Vectors: Vector operations working on either Cartesian or polar coordinates
// If library is stored two directories up under `ixfx/`
import {Lines, Points} from '../../ixfx/dist/geometry.js';
// Import from web
import {Lines, Points} from 'https://unpkg.com/ixfx/dist/geometry.js'

References

Re-exports Arc
Re-exports ArcPositioned
Re-exports Circle
Re-exports CirclePositioned
Re-exports CircularPath
Re-exports CompoundPath
Re-exports Dimensions
Re-exports Grid
Re-exports GridArray1d
Re-exports GridBoundsLogic
Re-exports GridCardinalDirection
Re-exports GridCardinalDirectionOptional
Re-exports GridCell
Re-exports GridCellAccessor
Re-exports GridCellAndValue
Re-exports GridCellSetter
Re-exports GridCreateVisitor
Re-exports GridIdentifyNeighbours
Re-exports GridNeighbour
Re-exports GridNeighbourMaybe
Re-exports GridNeighbourSelectionLogic
Re-exports GridNeighbourSelector
Re-exports GridNeighbours
Re-exports GridReadable
Re-exports GridVisitorOpts
Re-exports GridVisual
Re-exports GridWritable
Re-exports Line
Re-exports Path
Re-exports Point
Re-exports Point3d
Re-exports PointCalculableShape
Re-exports PolyLine
Re-exports Rect
Re-exports Rect3d
Re-exports Rect3dPositioned
Re-exports RectArray
Re-exports RectPositioned
Re-exports RectPositionedArray
Re-exports ShapePositioned
Re-exports WithBeziers