Vps web hosting - CHAPTER 12 Using Interpolator 12.1 The Interpolator class

CHAPTER 12 Using Interpolator 12.1 The Interpolator class 12.2 The Alpha class 12.3 Example of Interpolator usage 12.4 Using a cubic-spline interpolator 12.5 Summary 219 The Interpolatorclass defines the functionality for an important and powerful set of behaviors that deserve extra mention. The behaviors derived from Interpolatorallow an object s current state to be interpolated between a set of defined states as a function of time. This chapter introduces the Interpolatorclasses and the Alphaclass, which is used to control the speed of interpolation. 12.1 The Interpolator class java.lang.Object | +–javax.media.j3d.SceneGraphObject | +–javax.media.j3d.Node | +–javax.media.j3d.Leaf | +–javax.media.j3d.Behavior | +–javax.media.j3d.Interpolator Java 3D includes a rich set of behaviors for interpolating an object between states. These behaviors are important for many animation and visualization applications and are covered in detail in this section. Interpolatorbehaviors can be used to interpolate an object s: Color Linearly between diffuse material colors Path Position along a specified path Position Linearly between positions Rotation Linearly between rotations Scale Linearly between scale values Switchvalue Toggle Switch Node s visible child based on time Spline path Position along a specified spline path Transparency Linearly between transparency values All the Interpolationclasses require an Alphaobject. The Alphaclass is used to convert the current time to a value between 0 and 1 this value is then used by the Interpolatorto perform its specific action. The Alphaclass is described in section 12.2. 195
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.

Leave a Reply