Options
All
  • Public
  • Public/Protected
  • All
Menu

Module physics/intersects-3d

Index

Functions

intersection3dPlaneLine

  • intersection3dPlaneLine(planePointX: number, planePointY: number, planePointZ: number, planeNormalX: number, planeNormalY: number, planeNormalZ: number, linePointX: number, linePointY: number, linePointZ: number, lineDirectionX: number, lineDirectionY: number, lineDirectionZ: number, limit?: number): null | ReadonlySimpleVector3
  • Parameters

    • planePointX: number
    • planePointY: number
    • planePointZ: number
    • planeNormalX: number
    • planeNormalY: number
    • planeNormalZ: number
    • linePointX: number
    • linePointY: number
    • linePointZ: number
    • lineDirectionX: number
    • lineDirectionY: number
    • lineDirectionZ: number
    • Optional limit: number

    Returns null | ReadonlySimpleVector3

intersection3dPlaneLineIntersectionAdvanced

  • Determines the point of intersection between a plane defined by a point and a normal vector and a line defined by a point and a direction vector.

    Parameters

    • planePoint: Vector3

      A point on the plane.

    • planeNormal: Vector3

      The normal vector of the plane.

    • linePoint: Vector3

      A point on the line.

    • lineDirection: Vector3

      The direction vector of the line.

    • limit: number = 1e-6

    Returns null | ReadonlySimpleVector3

    The point of intersection between the line and the plane, null if the line is parallel to the plane.

intersection3dVectorSquare

  • intersection3dVectorSquare(r1x: number, r1y: number, r1z: number, r2x: number, r2y: number, r2z: number, s1x: number, s1y: number, s1z: number, s2x: number, s2y: number, s2z: number, s3x: number, s3y: number, s3z: number): boolean
  • Parameters

    • r1x: number
    • r1y: number
    • r1z: number
    • r2x: number
    • r2y: number
    • r2z: number
    • s1x: number
    • s1y: number
    • s1z: number
    • s2x: number
    • s2y: number
    • s2z: number
    • s3x: number
    • s3y: number
    • s3z: number

    Returns boolean

intersection3dVectorSquare_2

Generated using TypeDoc