Air_Hockey_Simulator.Physics.Line.Perpendicular C# (CSharp) Method

Perpendicular() public method

public Perpendicular ( PointD point ) : Line
point PointD
return Line
        public Line Perpendicular(PointD point)
        {
            return new Line(point, this.Slope != null ? -1 / this.Slope : 0);
        }

Usage Example

Beispiel #1
1
 public double DistanceTo(Line line)
 {
     Line perpendicular = line.Perpendicular(this);
     PointD intersection = line.IntersectionWith(perpendicular);
     return DistanceTo(intersection);
 }
All Usage Examples Of Air_Hockey_Simulator.Physics.Line::Perpendicular