@JsType(isNative=true,
namespace="Cesium",
name="NearFarScalar")
public class NearFarScalar
extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
far
The upper bound of the camera range.
|
double |
farValue
The value at the upper bound of the camera range.
|
double |
near
The lower bound of the camera range.
|
double |
nearValue
The value at the lower bound of the camera range.
|
| Constructor and Description |
|---|
NearFarScalar()
Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
|
NearFarScalar(Number near,
Number nearValue,
Number far,
Number farValue)
Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
|
| Modifier and Type | Method and Description |
|---|---|
NearFarScalar |
clone()
Duplicates this instance.
|
NearFarScalar |
clone(NearFarScalar result)
Duplicates this instance.
|
static NearFarScalar |
clone(NearFarScalar nearFarScalar,
NearFarScalar result)
Duplicates a NearFarScalar instance.
|
boolean |
equals(NearFarScalar right)
Compares this instance to the provided NearFarScalar and returns true if they are equal, false otherwise.
|
static boolean |
equals(NearFarScalar left,
NearFarScalar right)
Compares the provided NearFarScalar and returns true if they are equal, false otherwise.
|
double[] |
pack(NearFarScalar value,
double[] array)
Stores the provided instance into the provided array.
|
double[] |
pack(NearFarScalar value,
double[] array,
int startingIndex)
Stores the provided instance into the provided array.
|
static int |
packedLength()
The number of elements used to pack the object into an array.
|
static NearFarScalar |
unpack(double[] array)
Retrieves an instance from a packed array.
|
static NearFarScalar |
unpack(double[] array,
int startingIndex)
Retrieves an instance from a packed array.
|
static NearFarScalar |
unpack(double[] array,
int startingIndex,
NearFarScalar result)
Retrieves an instance from a packed array.
|
@JsProperty public double far
@JsProperty public double farValue
@JsProperty public double near
@JsProperty public double nearValue
@JsConstructor public NearFarScalar()
Packable@JsConstructor public NearFarScalar(Number near, Number nearValue, Number far, Number farValue)
near - The lower bound of the camera range. Default: 0.0.nearValue - The value at the lower bound of the camera range. Default: 0.0.far - The upper bound of the camera range. Default: 1.0.farValue - The value at the upper bound of the camera range. Default: 0.0.Packable@JsProperty(name="packedLength") public static int packedLength()
@JsMethod public static NearFarScalar clone(NearFarScalar nearFarScalar, NearFarScalar result)
nearFarScalar - The NearFarScalar to duplicate.result - The object onto which to store the result.@JsMethod public static boolean equals(NearFarScalar left, NearFarScalar right)
left - The first NearFarScalar.right - The second NearFarScalar.@JsMethod public double[] pack(NearFarScalar value, double[] array)
value - The value to pack.array - The array to pack into.@JsMethod public double[] pack(NearFarScalar value, double[] array, int startingIndex)
value - The value to pack.array - The array to pack into.startingIndex - The index into the array at which to start packing the elements. Default: 0.@JsMethod public static NearFarScalar unpack(double[] array)
array - The packed array.@JsMethod public static NearFarScalar unpack(double[] array, int startingIndex)
array - The packed array.startingIndex - The starting index of the element to be unpacked. Default: 0.@JsMethod public static NearFarScalar unpack(double[] array, int startingIndex, NearFarScalar result)
array - The packed array.startingIndex - The starting index of the element to be unpacked. Default: 0.result - The object into which to store the result.@JsMethod public NearFarScalar clone()
@JsMethod public NearFarScalar clone(NearFarScalar result)
result - The object onto which to store the result.@JsMethod public boolean equals(NearFarScalar right)
right - The right hand side NearFarScalar.Copyright © 2019. All rights reserved.