new NearFarScalar
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. | 
See:
Source:
Members
- 
    far :Number
- 
    
    The upper bound of the camera range.- Default Value:
- 1.0
 
 
- 
    farValue :Number
- 
    
    The value at the upper bound of the camera range.- Default Value:
- 0.0
 
 
- 
    near :Number
- 
    
    The lower bound of the camera range.- Default Value:
- 0.0
 
 
- 
    nearValue :Number
- 
    
    The value at the lower bound of the camera range.- Default Value:
- 0.0
 
 
- 
    <static> packedLength :Number
- 
    
    The number of elements used to pack the object into an array.
Methods
- 
    clone
- 
    
    
    Duplicates this instance. Parameters:Name Type Argument Description resultNearFarScalar <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.
- 
    equals
- 
    
    
    Compares this instance to the provided NearFarScalar and returns trueif they are equal,falseotherwise.Parameters:Name Type Argument Description rightNearFarScalar <optional> 
 The right hand side NearFarScalar. Returns:Booleantrueif left and right are equal; otherwisefalse.
- 
    <static> clone
- 
    
    
    Duplicates a NearFarScalar instance. Parameters:Name Type Argument Description nearFarScalarNearFarScalar The NearFarScalar to duplicate. resultNearFarScalar <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> equals
- 
    
    
    Compares the provided NearFarScalar and returns trueif they are equal,falseotherwise.Parameters:Name Type Argument Description leftNearFarScalar <optional> 
 The first NearFarScalar. rightNearFarScalar <optional> 
 The second NearFarScalar. Returns:Booleantrueif left and right are equal; otherwisefalse.
- 
    <static> pack
- 
    
    
    Stores the provided instance into the provided array. Parameters:Name Type Argument Default Description valueNearFarScalar The value to pack. arrayArray The array to pack into. startingIndexNumber <optional> 
 0 The index into the array at which to start packing the elements. 
- 
    <static> unpack
- 
    
    
    Retrieves an instance from a packed array. Parameters:Name Type Argument Default Description arrayArray The packed array. startingIndexNumber <optional> 
 0 The starting index of the element to be unpacked. resultNearFarScalar <optional> 
 The object into which to store the result. 
