src/geom/Line.js
function (origin, direction) {
            if (!origin) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
                    "Origin is null or undefined."));
            }

            if (!direction) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
                    "Direction is null or undefined."));
            }

            /**
             * This line's origin.
             * @type {Vec3}
             */
            this.origin = origin;

            /**
             * This line's direction.
             * @type {Vec3}
             */
            this.direction = direction;
        }
function (origin, direction) {
            if (!origin) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
                    "Origin is null or undefined."));
            }

            if (!direction) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Line", "constructor",
                    "Direction is null or undefined."));
            }

            /**
             * This line's origin.
             * @type {Vec3}
             */
            this.origin = origin;

            /**
             * This line's direction.
             * @type {Vec3}
             */
            this.direction = direction;
        }
function ( origin , direction ) { if ( ! origin ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "Line" , "constructor" , "Origin is null or undefined." ) ) ; } if ( ! direction ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "Line" , "constructor" , "Direction is null or undefined." ) ) ; } /**
             * This line's origin.
             * @type {Vec3}
             */ this . origin = origin ; /**
             * This line's direction.
             * @type {Vec3}
             */ this . direction = direction ; }
Constructs a line from a specified origin and direction.
@alias Line
@constructor
@classdesc Represents a line in Cartesian coordinates.
@param {Vec3} origin The line's origin.
@param {Vec3} direction The line's direction.
@throws {ArgumentError} If either the origin or the direction are null or undefined.
Constructs a line from a specified origin and direction .