예제 #1
0
        public bool IsCrossingWith(FixedSegment2D s)
        {
            RecalculateDirection();
            FixedVector2 dirToBeginS   = s.begin.Coordinates - this.begin.Coordinates;
            FixedVector2 dirToEndS     = s.end.Coordinates - this.begin.Coordinates;
            Fixed        angleToBeginS = this.direction.x * dirToBeginS.y - this.direction.y * dirToBeginS.x;
            Fixed        angleToEndS   = this.direction.x * dirToEndS.y - this.direction.y * dirToEndS.x;

            return(angleToBeginS.IsPositiveOrZero() != angleToEndS.IsPositiveOrZero());
        }
예제 #2
0
 public FixedVertex2D GetVertexOfCrossing(FixedSegment2D s)
 {
     return(null);
 }