Show / Hide Table of Contents

    Struct Ray4

    Represent of a line that extends to infinity

    public struct Ray4

    Constructors

    Ray4(Vector4, Vector4)

    Create new Ray.

    public Ray4(Vector4 origin, Vector4 direction)

    Fields

    direction

    Direction of the ray

    public Vector4 direction

    origin

    Starting position of the ray

    public Vector4 origin

    Methods

    GetPoint(Single)

    Get a point that travels for given distance

    public Vector4 GetPoint(float distance)

    Operators

    Multiply(Ray4, Single)

    The GetPoint's exotic alternative

    public static Vector4 operator *(Ray4 ray, float distance)
    ▲ Copyright © 2017 Wello Soft