//---------------------------------------------------------------------------- // Laser Guard Ltd. // Copyright © 2000-2002. All Rights Reserved. // Version 1.0 01/01/2000 // Last modification: 05/04/2003 // PROJECT: // SUBSYSTEM: // FILE: LgDPolyPolygon.cpp // AUTHOR: Sergey Chizhevskiy // OVERVIEW // ~~~~~~~~ // Source file of LgDPolyPolygon.cpp //---------------------------------------------------------------------------- #include "stdafx.h" #include "LgLogger.h" #include "LgDPolyPolygon.h" CLgDPolyPolygon::CLgDPolyPolygon() { } CLgDPolyPolygon::~CLgDPolyPolygon() { } BOOL CLgDPolyPolygon::CrossProduct( CLgDLineSegment line, CLgDLineSegmentArray &array ) { for( INT i = 0; i < GetCount(); i++ ) GetAt(i).CrossProduct( line, array ); return TRUE; } INT CLgDPolyPolygon::Minimize() { INT nCount = 0; for( INT i = 0; i < GetCount(); i++ ) nCount += GetAt(i).Minimize(); return nCount; }