コード例 #1
0
 public static InternalRoadJunctionEdge GetOpositeEdge( this RoadJunctionBlock junction, InternalRoadJunctionEdge edge )
 {
     Debug.Assert( junction.JunctionEdges.Length == EdgeType.Count );
     var idex = Array.IndexOf( junction.JunctionEdges, edge );
     if ( idex < 0 ) { throw new ArgumentException(); }
     return junction.JunctionEdges[ ( idex + 2 ) % 4 ];
 }
 public InternalRoadJunctionEdgeVertexContainer( InternalRoadJunctionEdge edge )
     : base( edge, Color.White )
 {
     this._edge = edge;
 }