Skip to content

Object constructor broken with quadraticBezier #45

@Izhaki

Description

@Izhaki

From https://github.com/thelonious/kld-intersections/blob/development/docs/ShapeInfo.md#quadratic-bezier:

ShapeInfo.quadraticBezier({p1: {x: 10, y: 20}, p2: {x: 5, y: 10}, p3: {x: 15, y: 30}})

But running this:

  const quadShape = ShapeInfo.quadraticBezier({
    p1: { x: 160, y: 50 },
    p2: { x: 110, y: 90 },
    p3: { x: 60, y: 50 },
  });
  console.log(quadShape);

Logs this:

ShapeInfo {name: "Bezier2", args: Array(3)}
  args: Array(3)
    0: Point2D {x: 160, y: 50}
    1: Point2D {x: 160, y: 50}
    2: Point2D {x: 160, y: 50}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions