/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
- package away3d.extrusions.utils
- {
- import flash.geom.Vector3D;
-
- /**
- * Creates a curved line segment definition required for the Path class.
- */
-
- public class PathSegment
- {
- /**
- * Defines the first vector of the PathSegment
- */
- public var pStart:Vector3D;
-
- /**
- * Defines the control vector of the PathSegment
- */
- public var pControl:Vector3D;
-
- /**
- * Defines the control vector of the PathSegment
- */
- public var pEnd:Vector3D;
-
-
- public function PathSegment(pStart:Vector3D, pControl:Vector3D, pEnd:Vector3D)
- {
- this.pStart = pStart;
- this.pControl = pControl;
- this.pEnd = pEnd;
- }
-
- public function toString():String
- {
- return pStart + ", " + pControl + ", " + pEnd;
- }
-
- }
- }