geline2d.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. // DESCRIPTION:
  11. //
  12. // This file contains the class AcGeLine2d - A mathematical entity
  13. // used to represent an infinite line in 2-space.
  14. #ifndef AC_GELINE2D_H
  15. #define AC_GELINE2D_H
  16. #include "gelent2d.h"
  17. #pragma pack (push, 8)
  18. class
  19. GE_DLLEXPIMPORT
  20. AcGeLine2d : public AcGeLinearEnt2d
  21. {
  22. public:
  23. AcGeLine2d();
  24. AcGeLine2d(const AcGeLine2d& line);
  25. AcGeLine2d(const AcGePoint2d& pnt, const AcGeVector2d& vec);
  26. AcGeLine2d(const AcGePoint2d& pnt1, const AcGePoint2d& pnt2);
  27. // The x-axis and y-axis lines.
  28. //
  29. static const AcGeLine2d kXAxis;
  30. static const AcGeLine2d kYAxis;
  31. // Set methods.
  32. //
  33. AcGeLine2d& set (const AcGePoint2d& pnt, const AcGeVector2d& vec);
  34. AcGeLine2d& set (const AcGePoint2d& pnt1, const AcGePoint2d& pnt2);
  35. // Assignment operator.
  36. //
  37. AcGeLine2d& operator = (const AcGeLine2d& line);
  38. };
  39. #pragma pack (pop)
  40. #endif