Options
All
  • Public
  • Public/Protected
  • All
Menu

A 3D ray.

Hierarchy

  • Ray3

Index

Constructors

Properties

direction: Vector3

The direction of the ray. Make sure the direction is normalized.

origin: Vector3

The origin of the ray.

Accessors

Methods

  • distanceToSphere(sphere: Sphere3): null | [number, number]
  • Return distances from given ray to sphere.

    The returning distance can be negative.

    The first returning value will be the distance of the incident point. If the ray does not intersect with sphere, it will return null.

    Parameters

    Returns null | [number, number]

Generated using TypeDoc