PageRenderTime 51ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/src/away3d/extrusions/utils/PathSegment.as

http://github.com/away3d/away3d-core-fp11
ActionScript | 40 lines | 20 code | 8 blank | 12 comment | 0 complexity | 52066a496303631e193ced2b58681bf2 MD5 | raw file
 1package away3d.extrusions.utils
 2{
 3	import flash.geom.Vector3D;
 4
 5	/**
 6    * Creates a curved line segment definition required for the Path class.
 7    */ 
 8	
 9	public class PathSegment
10	{
11		/**
12		* Defines the first vector of the PathSegment
13		*/
14		public var pStart:Vector3D;
15		
16		/**
17		* Defines the control vector of the PathSegment
18		*/
19		public var pControl:Vector3D;
20		
21		/**
22		* Defines the control vector of the PathSegment
23		*/
24		public var pEnd:Vector3D;
25		 
26		
27		public function PathSegment(pStart:Vector3D, pControl:Vector3D, pEnd:Vector3D)
28		{
29			this.pStart = pStart;
30			this.pControl = pControl;
31			this.pEnd = pEnd;
32		}
33		
34		public function toString():String
35		{
36			return pStart + ", " + pControl + ", " + pEnd;
37		}
38		
39	}
40}