ShapeGeometry.SnapToCircle Method

Snaps a potential point from the bounding box around the shape geometry to the perimeter of the circle.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Shared Function SnapToCircle ( _
    center As PointD, _
    radius As Double, _
    vectorEndpoint As PointD, _
    potentialPoint As PointD _
) As PointD
public static PointD SnapToCircle(
    PointD center,
    double radius,
    PointD vectorEndpoint,
    PointD potentialPoint
)
public:
static PointD SnapToCircle(
    PointD center, 
    double radius, 
    PointD vectorEndpoint, 
    PointD potentialPoint
)
static member SnapToCircle : 
        center:PointD * 
        radius:float * 
        vectorEndpoint:PointD * 
        potentialPoint:PointD -> PointD
public static function SnapToCircle(
    center : PointD, 
    radius : double, 
    vectorEndpoint : PointD, 
    potentialPoint : PointD
) : PointD

Parameters

  • vectorEndpoint
    Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD

    The direction of the line, expressed as an arbitrary point along the line, measured relative to the potentialPoint. For example, if the line is horizontal, the Y coordinate is 0, and the X coordinate has an arbitrary value.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The potential point that was snapped to the perimeter of the circle.

Remarks

For circular and elliptical geometries, this function can be used as a helper in DoFoldToShape.

.NET Framework Security

See Also

Reference

ShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace