NevronOpenVision
Nevron.Nov.Graphics Namespace / NGeometry2D Class / PointsAngle Method
First endpoint of the line.
Second endpoint of the line.
In This Topic
    PointsAngle Method
    In This Topic
    Calculates the angle formed by the line (p1, p2) and the X axis.
    Syntax
    public static System.double PointsAngle( 
       NPoint p1,
       NPoint p2
    )

    Parameters

    p1
    First endpoint of the line.
    p2
    Second endpoint of the line.

    Return Value

    An angle (measured in radians) in the range [-PI, PI].
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also