Nevron Open Vision Documentation
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
    'Declaration
     
    
    Public Shared Function PointsAngle( _
       ByVal p1 As NPoint, _
       ByVal p2 As NPoint _
    ) As System.Double
    'Usage
     
    
    Dim p1 As NPoint
    Dim p2 As NPoint
    Dim value As System.Double
     
    value = NGeometry2D.PointsAngle(p1, p2)
    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