Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a point on the shape boundary for which MAT vertex information has not necessarily been calculated.

Index

Constructors

constructor

  • Parameters

    • curve: Curve

      The Curve on the shape boundary this points belong to.

    • t: number

      The bezier parameter value on the curve to identify the point coordinates.

    Returns PointOnShape

Properties

curve

curve: Curve

The Curve on the shape boundary this points belong to.

Private p_

p_: number[] = undefined

t

t: number

The bezier parameter value on the curve to identify the point coordinates.

Static Private calcOsculatingCircleRadius

calcOsculatingCircleRadius: function = memoize(function(pos: PointOnShape) {let ps = pos.curve.ps;let t = pos.t;let κ = -curvature(ps, t);// κ > 0 => bending inwardsreturn 1/κ;})

Calculates and returns the osculating circle radius of the bezier at a specific t. If it is found to have negative or nearly zero radius it is clipped to have positive radius so it can point into the shape.

param
param

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Static Private getCorner

getCorner: function = memoize(function(pos: PointOnShape) {if (pos.t !== 0 && pos.t !== 1) { return undefined; }return Curve.getCornerAtEnd(pos.t === 1 ? pos.curve : pos.curve.prev);})

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Static Private isDullCorner

isDullCorner: function = memoize(function(pos: PointOnShape) {let corner = PointOnShape.getCorner(pos);return corner && corner.isDull;})

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Static Private isQuiteDullCorner

isQuiteDullCorner: function = memoize(function(pos: PointOnShape) {let corner = PointOnShape.getCorner(pos);return corner && corner.isQuiteDull;})

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Static Private isQuiteSharpCorner

isQuiteSharpCorner: function = memoize(function(pos: PointOnShape) {let corner = PointOnShape.getCorner(pos);return corner && corner.isQuiteSharp;})

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Static Private isSharpCorner

isSharpCorner: function = memoize(function(pos: PointOnShape) {let corner = PointOnShape.getCorner(pos);return corner && corner.isSharp;})

Type declaration

    • (a: T): U
    • Parameters

      • a: T

      Returns U

Accessors

p

  • get p(): number[]

Methods

Static Private calcOrder

  • Calculates the order (to distinguish between points lying on top of each other) of the contact point if it is a dull corner.

    Parameters

    Returns number

Static Private compare

Static Private compareInclOrder

Static getOsculatingCircle

  • Returns the osculating circle at this point of the curve.

    Parameters

    • maxOsculatingCircleRadius: number

      If not Number.POSITIVE_INFINITY then the circle radius will be limited to this value.

    • pos: PointOnShape

      The PointOnShape identifying the point.

    Returns Circle

Static Private toHumanString

Generated using TypeDoc