Skip to content
FutureBlitz

    Install

    Import std.math.geometry

    Ray

    std.math.geometry

    struct

    Public Struct Ray Implements Equatable, Printable

    A half-line, from its Origin along its Direction.

    Examples

    
    Expect(Ray(Vec3(0, 0, 0), Vec3(1, 0, 0)).At(3) == Vec3(3, 0, 0))

    std/math/geometry.fb, line 336

    • Public Field Origin: Vec3 field #

      Where it starts.

    • Public Field Direction: Vec3 field #

      Which way it goes, and how far each length of it along the ray is.

    • Public Method At(distance: Float): Vec3 method #

      The point so far along the ray, in lengths of its Direction.

    • Public Method ToString(): String method #

      Its parts, as "Ray((0, 0, 0), (0, 0, -1))".

    Report an issue with this page or with FutureBlitz on GitHub.