Isink() public static method

public static Isink ( Trapezoid trapezoid ) : Sink
trapezoid Trapezoid
return Sink
コード例 #1
0
ファイル: QueryGraph.cs プロジェクト: yweber/Barotrauma
        public void Case4(Sink sink, Edge edge, Trapezoid[] tList)
        {
            YNode yNode = new YNode(edge, Sink.Isink(tList[0]), Sink.Isink(tList[1]));
            XNode qNode = new XNode(edge.Q, yNode, Sink.Isink(tList[2]));

            Replace(sink, qNode);
        }
コード例 #2
0
ファイル: Triangulator.cs プロジェクト: Gitspathe/penumbra
        public Triangulator(List <Point> polyLine, float sheer)
        {
            _sheer          = sheer;
            Triangles       = new List <List <Point> >();
            Trapezoids      = new List <Trapezoid>();
            _xMonoPoly      = new List <MonotoneMountain>();
            _edgeList       = InitEdges(polyLine);
            _trapezoidalMap = new TrapezoidalMap();
            _boundingBox    = _trapezoidalMap.BoundingBox(_edgeList);
            _queryGraph     = new QueryGraph(Sink.Isink(_boundingBox));

            Process();
        }
コード例 #3
0
ファイル: QueryGraph.cs プロジェクト: yweber/Barotrauma
        public void Case3(Sink sink, Edge edge, Trapezoid[] tList)
        {
            YNode yNode = new YNode(edge, Sink.Isink(tList[0]), Sink.Isink(tList[1]));

            Replace(sink, yNode);
        }