Click or drag to resize

NearFarScalar Structure

A numeric value which will be linearly interpolated between two values based on an object's distance from the camera, in eye coordinates. The computed value will interpolate between the near value and the far value while the camera distance falls between the near distance and the far distance, and will be clamped to the near or far value while the distance is less than the near distance or greater than the far distance, respectively.

Namespace:  AGI.Foundation.Cesium
Assembly:  AGI.Foundation.Cesium (in AGI.Foundation.Cesium.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public struct NearFarScalar : IEquatable<NearFarScalar>

The NearFarScalar type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFarDistance
Gets the upper bound of the camera distance range.
Public propertyFarValue
Gets the value to use at the upper bound of the camera distance range.
Public propertyItem
Gets the value of the specified element with index of 0, 1, 2, and 3 corresponding to the coordinates NearDistance, NearValue, FarDistance, FarValue.
Public propertyLength
Gets the number of elements in this set of coordinates.
Public propertyNearDistance
Gets the lower bound of the camera distance range.
Public propertyNearValue
Gets the value to use at the lower bound of the camera distance range.
Top
Methods
  NameDescription
Public methodEquals(NearFarScalar)
Indicates whether another instance of this type is exactly equal to this instance.
Public methodEquals(Object)
Indicates whether another object is exactly equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the string representation of the value of this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Returns if the two instances are exactly equal.
Public operatorStatic memberInequality
Returns if the two instances are not exactly equal.
Top
See Also