Appearance
KBE3D / KBCore / Cesium / NearFarScalar
类: NearFarScalar
Represents a scalar value's lower and upper bound at a near distance and far distance in eye space.
参数
The lower bound of the camera range.
参数
The value at the lower bound of the camera range.
参数
The upper bound of the camera range.
参数
The value at the upper bound of the camera range.
属性
packedLength
staticpackedLength:number
The number of elements used to pack the object into an array.
near
near:
number
The lower bound of the camera range.
nearValue
nearValue:
number
The value at the lower bound of the camera range.
far
far:
number
The upper bound of the camera range.
farValue
farValue:
number
The value at the upper bound of the camera range.
方法
clone()
staticclone(nearFarScalar:NearFarScalar,result?:NearFarScalar):NearFarScalar
Duplicates a NearFarScalar instance.
参数
nearFarScalar
NearFarScalar
The NearFarScalar to duplicate.
result?
NearFarScalar
The object onto which to store the result.
返回
NearFarScalar
The modified result parameter or a new NearFarScalar instance if one was not provided. (Returns undefined if nearFarScalar is undefined)
pack()
staticpack(value:NearFarScalar,array:number[],startingIndex?:number):number[]
Stores the provided instance into the provided array.
参数
value
NearFarScalar
The value to pack.
array
number[]
The array to pack into.
startingIndex?
number
The index into the array at which to start packing the elements.
返回
number[]
The array that was packed into
unpack()
staticunpack(array:number[],startingIndex?:number,result?:NearFarScalar):NearFarScalar
Retrieves an instance from a packed array.
参数
array
number[]
The packed array.
startingIndex?
number
The starting index of the element to be unpacked.
result?
NearFarScalar
The object into which to store the result.
返回
NearFarScalar
The modified result parameter or a new NearFarScalar instance if one was not provided.
equals()
staticequals(left?:NearFarScalar,right?:NearFarScalar):boolean
Compares the provided NearFarScalar and returns <code>true</code> if they are equal, <code>false</code> otherwise.
参数
left?
NearFarScalar
The first NearFarScalar.
right?
NearFarScalar
The second NearFarScalar.
返回
boolean
true if left and right are equal; otherwise false.
clone()
clone(
result?:NearFarScalar):NearFarScalar
Duplicates this instance.
参数
result?
NearFarScalar
The object onto which to store the result.
返回
NearFarScalar
The modified result parameter or a new NearFarScalar instance if one was not provided.
equals()
equals(
right?:NearFarScalar):boolean
Compares this instance to the provided NearFarScalar and returns <code>true</code> if they are equal, <code>false</code> otherwise.
参数
right?
NearFarScalar
The right hand side NearFarScalar.
返回
boolean
true if left and right are equal; otherwise false.
构造函数
构造函数
new NearFarScalar(
near?:number,nearValue?:number,far?:number,farValue?:number):NearFarScalar
参数
near?
number
nearValue?
number
far?
number
farValue?
number
返回
NearFarScalar
