Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonRay

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonRay

Methods

createPickingRay

  • createPickingRay(): Ray
  • Creates a picking ray of the current mouse position in the active camera

    Returns Ray

    Ray

createRay

  • Create a ray that start at origin, has direction vector and optionally length

    Parameters

    Returns Ray

    ray

createRayFromTo

  • Create a ray from one point to another

    Parameters

    • inputs: FromToDto

      origin, direction and length

    Returns Ray

    ray

getDirection

  • getDirection(inputs: RayDto): Vector3
  • Get the direction of the ray

    Parameters

    Returns Vector3

    direction vector

getLength

  • getLength(inputs: RayDto): number
  • Get the length of the ray

    Parameters

    Returns number

    length

getOrigin

  • getOrigin(inputs: RayDto): Point3
  • Get the origin of the ray

    Parameters

    Returns Point3

    origin point

Generated using TypeDoc