Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
992 B

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 05/04/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgDPolyPolygon.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of LgDPolyPolygon.cpp
  13. //----------------------------------------------------------------------------
  14. #include "stdafx.h"
  15. #include "LgLogger.h"
  16. #include "LgDPolyPolygon.h"
  17. CLgDPolyPolygon::CLgDPolyPolygon()
  18. {
  19. }
  20. CLgDPolyPolygon::~CLgDPolyPolygon()
  21. {
  22. }
  23. BOOL CLgDPolyPolygon::CrossProduct( CLgDLineSegment line, CLgDLineSegmentArray &array )
  24. {
  25. for( INT i = 0; i < GetCount(); i++ )
  26. GetAt(i).CrossProduct( line, array );
  27. return TRUE;
  28. }
  29. INT CLgDPolyPolygon::Minimize()
  30. {
  31. INT nCount = 0;
  32. for( INT i = 0; i < GetCount(); i++ )
  33. nCount += GetAt(i).Minimize();
  34. return nCount;
  35. }