ixfx
    Preparing search index...

    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'

    Namespaces

    Arcs
    Beziers
    Circles
    Compound
    Convolve2d
    CurveSimplification
    Ellipses
    Grids
    Layouts
    Lines
    Paths
    Points
    Polar
    QuadTree
    Rects
    Scaler
    Shapes
    SurfacePoints
    Triangles
    Vectors
    Waypoints

    Type Aliases

    CompoundPath
    Dimensions
    Grid
    GridArray1d
    GridBoundsLogic
    GridCardinalDirection
    GridCardinalDirectionOptional
    GridCell
    GridCellAccessor
    GridCellAndValue
    GridCellSetter
    GridCreateVisitor
    GridIdentifyNeighbours
    GridNeighbour
    GridNeighbourMaybe
    GridNeighbours
    GridNeighbourSelectionLogic
    GridNeighbourSelector
    GridReadable
    GridVisitorOpts
    GridVisual
    GridWritable
    Line
    Path
    Point
    Point3d
    PolyLine
    Rect
    Rect3d
    Rect3dPositioned
    RectArray
    RectPositioned
    RectPositionedArray
    Triangle
    Vector
    WithBeziers

    Functions

    degreeArc
    degreesSum
    degreeToRadian
    radianArc
    radianInvert
    radiansFromAxisX
    radiansSum
    radianToDegree

    References

    Arc → Geometry.Arcs.Arc
    ArcPositioned → Geometry.Arcs.ArcPositioned
    Circle → Geometry.Circles.Circle
    CirclePositioned → Geometry.Circles.CirclePositioned
    CircularPath → Geometry.Circles.CircularPath
    PointCalculableShape → Geometry.Shapes.PointCalculableShape
    ShapePositioned → Geometry.Shapes.ShapePositioned