Class MonotoneChain

 1  
 2  
 3  
 4 /*
 5  * Copyright (c) 2016 Vivid Solutions.
 6  *
 7  * All rights reserved. This program and the accompanying materials
 8  * are made available under the terms of the Eclipse Public License 2.0
 9  * and Eclipse Distribution License v. 1.0 which accompanies this distribution.
10  * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v20.html
11  * and the Eclipse Distribution License is available at
12  *
13  * http://www.eclipse.org/org/documents/edl-v10.php.
14  */
15 package org.locationtech.jts.geomgraph.index;
16  
17 /**
18  * @version 1.7
19  */
20 public class MonotoneChain {
21  
22   MonotoneChainEdge mce;
23   int chainIndex;
24  
25   public MonotoneChain(MonotoneChainEdge mce, int chainIndex) {
26     this.mce = mce;
27     this.chainIndex = chainIndex;
28   }
29  
30   public void computeIntersections(MonotoneChain mc, SegmentIntersector si)
31   {
32     this.mce.computeIntersectsForChain(chainIndex, mc.mce, mc.chainIndex, si);
33   }
34 }
35