code: 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;
          }
docs: 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.