次の方法で共有


ShapeGeometry.SnapToCircle(PointD, Double, PointD, PointD) Method

Definition

Summary description for ShapeGeometry.SnapToCircle() Snap a potential point from the bounding box to the perimeter of a circle along a vector

public:
 static Microsoft::VisualStudio::Modeling::Diagrams::PointD SnapToCircle(Microsoft::VisualStudio::Modeling::Diagrams::PointD center, double radius, Microsoft::VisualStudio::Modeling::Diagrams::PointD vectorEndpoint, Microsoft::VisualStudio::Modeling::Diagrams::PointD potentialPoint);
public static Microsoft.VisualStudio.Modeling.Diagrams.PointD SnapToCircle (Microsoft.VisualStudio.Modeling.Diagrams.PointD center, double radius, Microsoft.VisualStudio.Modeling.Diagrams.PointD vectorEndpoint, Microsoft.VisualStudio.Modeling.Diagrams.PointD potentialPoint);
static member SnapToCircle : Microsoft.VisualStudio.Modeling.Diagrams.PointD * double * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> Microsoft.VisualStudio.Modeling.Diagrams.PointD
Public Shared Function SnapToCircle (center As PointD, radius As Double, vectorEndpoint As PointD, potentialPoint As PointD) As PointD

Parameters

center
PointD

Defines the center of the circle

radius
Double

Defines the radius of the circle

vectorEndpoint
PointD

Point defining the endpoint of the vector along which folding to the perimeter must take place

potentialPoint
PointD

Point containing the xy along the bounding rectangle to be folded in to the perimeter of the geometry

Returns

PointD

Applies to