Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "cubic-line"

Index

Functions

Functions

Const cubicFromLine

  • cubicFromLine(a: Vec, b: Vec): Vec[]
  • Converts line segment a -> b into a cubic curve, which when sampled yields uniformly spaced points. The inner control points are located at 1/3 and 2/3 respectively.

    Parameters

    • a: Vec

      line endpoint

    • b: Vec

      line endpoint

    Returns Vec[]

Generated using TypeDoc