Esempio n. 1
0
        private Node getRandomOtherNodeInLine()
        {
            Vector2 dirVector = VectorService.DirectionToNormal(NormalVector);

            return(new Node(BaseNode.X + dirVector.x, BaseNode.Y + dirVector.y));
        }
Esempio n. 2
0
 public Line CalculatePerpendicularLine(Node nodeToCross)
 {
     return(new Line(nodeToCross, VectorService.DirectionToNormal(NormalVector)));
 }