new VelocityVectorProperty(position, normalize)
Parameters:
normalize
(Boolean)
(default true
)
是否規(guī)范化計(jì)算的速度矢量。
Example
//Create an entity with a billboard rotated to match its velocity.
var position = new bmgl.SampledProperty();
position.addSamples(...);
var entity = viewer.entities.add({
position : position,
billboard : {
image : 'image.png',
alignedAxis : new bmgl.VelocityVectorProperty(position, true) // alignedAxis must be a unit vector
}
}));
Members
(readonly) definitionChanged : Event
獲取每當(dāng)此屬性的定義更改時(shí)引發(fā)的事件。
(readonly) isConstant : Boolean
獲取一個(gè)值,該值指示此屬性是否為常量。
normalize : Boolean
獲取或設(shè)置此屬性生成的向量是否將被規(guī)范化。
position : Property
獲取或設(shè)置用于計(jì)算速度矢量的位置屬性。
Methods
equals(other) → {Boolean}
將此屬性與提供的屬性進(jìn)行比較,如果相等,則返回
true
,否則返回false
。
Parameters:
獲取所提供時(shí)間的屬性值。