Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/Mesh"

Index

Functions

Intersection

  • Intersection(p1: Vector2, d1: Vector2, p2: Vector2, d2: Vector2): [number, number]
  • Helper function for finding intersection between two rays.

    Parameters

    • p1: Vector2

      Position of first ray

    • d1: Vector2

      Direction of first ray

    • p2: Vector2

      Position of second ray

    • d2: Vector2

      Direction of second ray

    Returns [number, number]

    Intersection of rays

Generated using TypeDoc