(^274) | Chapter 9: Computational Geometry
Figure 9-17. LineState class
Example 9-3. LineSweep Java implementation
public class LineSweep extends IntersectionDetection {
// Store line sweep state and event queue
LineState lineState = new LineState( );
EventQueue eq = new EventQueue( );
// Compute the intersection of all segments from array of segments.
public Hashtable<IPoint,ILineSegment[]>
Algorithms in a Nutshell
Algorithms in a Nutshell By Gary Pollice, George T. Heineman, Stanley Selkow ISBN:
9780596516246 Publisher: O'Reilly Media, Inc.
Prepared for Ming Yi, Safari ID: [email protected]
Licensed by Ming Yi
Print Publication Date: 2008/10/21 User number: 594243
© 2009 Safari Books Online, LLC. This PDF is made available for personal use only during the relevant subscription term, subject to the Safari Terms of Service. Any other use
Licensed by
Ming Yi
tina meador
(Tina Meador)
#1