• Preparing search index...
  • The search index is not available
@xeokit/sdk - v0.1.0
  • @xeokit/sdk
  • base
  • math
  • polygon2D
  • perpDistance2D

Function perpDistance2D

  • perpDistance2D(p: Point2D, a: Point2D, b: Point2D): number

    Perpendicular distance from p to the (infinite) line through a and b. Falls back to Euclidean point-to-point distance when a and b coincide (degenerate segment), so the caller doesn't need to filter those out before measuring.

    Parameters

    • p: Point2D
    • a: Point2D
    • b: Point2D

    Returns number

    • Defined in packages/sdk/src/base/math/polygon2D.ts:135

Settings

Member Visibility
@xeokit/sdk - v0.1.0
  • Loading...

Generated using TypeDoc