⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vertexposition.as

📁 著名的flash 3d引擎 away 3d的源代码
💻 AS
字号:
package away3d.core.base{    import away3d.core.*;    import away3d.core.base.*;		/**	 * Vertex position value object.	 */    public class VertexPosition    {        use namespace arcane;            	/**    	 * Defines the x coordinate.    	 */        public var x:Number;            	/**    	 * Defines the y coordinate.    	 */        public var y:Number;            	/**    	 * Defines the z coordinate.    	 */        public var z:Number;        public var vertex:Vertex;    			/**		 * Creates a new <code>VertexPosition</code> object.		 *		 * @param	vertex	The vertex object used to define the default x, y and z values.		 */        public function VertexPosition(vertex:Vertex)        {            this.vertex = vertex;            this.x = 0;            this.y = 0;            this.z = 0;        }        		/**		 * Adjusts the position of the vertex object incrementally.		 * 		 * @param	k	The fraction by which to adjust the vertex values.		 */        public function adjust(k:Number = 1):void        {            vertex._x = vertex._x * (1 - k) + x * k;            vertex._y = vertex._y * (1 - k) + y * k;            vertex._z = vertex._z * (1 - k) + z * k;        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -