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 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Shared Function SnapToCircle ( _
center As PointD, _
radius As Double, _
vectorEndpoint As PointD, _
potentialPoint As PointD _
) As PointD
'使用
Dim center As PointD
Dim radius As Double
Dim vectorEndpoint As PointD
Dim potentialPoint As PointD
Dim returnValue As PointD
returnValue = ShapeGeometry.SnapToCircle(center, _
radius, vectorEndpoint, potentialPoint)
public static PointD SnapToCircle(
PointD center,
double radius,
PointD vectorEndpoint,
PointD potentialPoint
)
public:
static PointD SnapToCircle(
PointD center,
double radius,
PointD vectorEndpoint,
PointD potentialPoint
)
public static function SnapToCircle(
center : PointD,
radius : double,
vectorEndpoint : PointD,
potentialPoint : PointD
) : PointD
Parameters
center
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe center point of the circle.
radius
Type: System.DoubleThe radius of the circle.
vectorEndpoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe endpoint for the vector.
potentialPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDA point on the bounding rectangle to include in the circle.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The potential point that was snapped to the perimeter of the circle.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.