NearFarScalar

NearFarScalar

new

Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.

Parameters:
Name Type Argument Default Description
near Number <optional>
0.0 The lower bound of the camera range.
nearValue Number <optional>
0.0 The value at the lower bound of the camera range.
far Number <optional>
1.0 The upper bound of the camera range.
farValue Number <optional>
0.0 The value at the upper bound of the camera range.
Source:

Members

:Number

The upper bound of the camera range.
Default Value:
  • 1.0

:Number

The value at the upper bound of the camera range.
Default Value:
  • 0.0

:Number

The lower bound of the camera range.
Default Value:
  • 0.0

:Number

The value at the lower bound of the camera range.
Default Value:
  • 0.0

Methods

<static>

Duplicates a NearFarScalar instance.

Parameters:
Name Type Argument Description
nearFarScalar NearFarScalar The NearFarScalar to duplicate.
result NearFarScalar <optional>
The object onto which to store the result.
Returns:
NearFarScalar The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)

<static>

Compares the provided NearFarScalar and returns true if they are equal, false otherwise.

Parameters:
Name Type Argument Description
left NearFarScalar <optional>
The first NearFarScalar.
right NearFarScalar <optional>
The second NearFarScalar.
Returns:
Boolean true if left and right are equal; otherwise false.