/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

  1. package away3d.extrusions.utils
  2. {
  3. import flash.geom.Vector3D;
  4. /**
  5. * Creates a curved line segment definition required for the Path class.
  6. */
  7. public class PathSegment
  8. {
  9. /**
  10. * Defines the first vector of the PathSegment
  11. */
  12. public var pStart:Vector3D;
  13. /**
  14. * Defines the control vector of the PathSegment
  15. */
  16. public var pControl:Vector3D;
  17. /**
  18. * Defines the control vector of the PathSegment
  19. */
  20. public var pEnd:Vector3D;
  21. public function PathSegment(pStart:Vector3D, pControl:Vector3D, pEnd:Vector3D)
  22. {
  23. this.pStart = pStart;
  24. this.pControl = pControl;
  25. this.pEnd = pEnd;
  26. }
  27. public function toString():String
  28. {
  29. return pStart + ", " + pControl + ", " + pEnd;
  30. }
  31. }
  32. }