Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.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
- center
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The center point of the circle.
- radius
Type: System.Double
The radius of the circle.
- 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.
- potentialPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The point on the bounding rectangle of the circle that is to be extended to meet the circle.
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.
.png)
.NET Framework Security
- 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.