geray2d.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // DESCRIPTION:
  12. //
  13. // This file contains the class AcGeRay2d - A mathematical entity
  14. // used to represent a ray (half line) in 2-space.
  15. #ifndef AC_GERAY2D_H
  16. #define AC_GERAY2D_H
  17. #include "gelent2d.h"
  18. #pragma pack (push, 8)
  19. class
  20. GE_DLLEXPIMPORT
  21. AcGeRay2d : public AcGeLinearEnt2d
  22. {
  23. public:
  24. AcGeRay2d();
  25. AcGeRay2d(const AcGeRay2d& line);
  26. AcGeRay2d(const AcGePoint2d& pnt, const AcGeVector2d& vec);
  27. AcGeRay2d(const AcGePoint2d& pnt1, const AcGePoint2d& pnt2);
  28. // Set methods.
  29. //
  30. AcGeRay2d& set (const AcGePoint2d& pnt, const AcGeVector2d& vec);
  31. AcGeRay2d& set (const AcGePoint2d& pnt1, const AcGePoint2d& pnt2);
  32. // Assignment operator.
  33. //
  34. AcGeRay2d& operator = (const AcGeRay2d& line);
  35. };
  36. #pragma pack (pop)
  37. #endif