@0b5vr/experimental
    Preparing search index...

    Class Ray3

    A 3D ray.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    direction: Vector3

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

    origin: Vector3

    The origin of the ray.

    Accessors

    Methods

    • 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 [number, number] | null