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 Circle
Re-exports CirclePositioned
Re-exports CircularPath
Re-exports CompoundPath
Re-exports Dimensions
Re-exports Line
Re-exports Path
Re-exports Point
Re-exports Point3d
Re-exports PointCalculableShape
Re-exports PolyLine
Re-exports Rect
Re-exports RectArray
Re-exports RectPositioned
Re-exports RectPositionedArray
Re-exports ShapePositioned
Re-exports WithBeziers