Fudge Core
    Preparing search index...

    Class Ray

    Defined by an origin and a direction of type Pick, rays are used to calculate picking and intersections

    Jirka Dell'Oro-Friedl, HFU, 2021

    Index

    Constructors

    Properties

    direction: Vector3
    length: number

    TODO: support length

    origin: Vector3

    Methods

    • Returns the shortest distance from the ray to the given target point. All values and calculations must be relative to the same coordinate system, preferably the world.

      Parameters

      Returns Vector3

    • Returns the point of intersection of this ray with a plane defined by the face. All values and calculations must be relative to the same coordinate system, preferably the world

      Parameters

      Returns Vector3

    • Returns the point of intersection of this ray with a plane defined by the given point of origin and the planes normal. All values and calculations must be relative to the same coordinate system, preferably the world

      Parameters

      Returns Vector3