Click or drag to resize

GeometryEngineOffset Method

Returns offset version of the input geometry. The offset operation creates a geometry that is a constant distance from an input polyline or polygon. It is similar to buffering, but produces a one sided result. If offset distance > 0, then the offset geometry is constructed to the right of the oriented input geometry, otherwise it is constructed to the left. For a simple polygon, the orientation of outer rings is clockwise and for inner rings it is counter clockwise. So the "right side" of a simple polygon is always its inside. The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be from the input curve before it is beveled.

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0
public static Geometry Offset(
	Geometry geometry,
	double distance,
	OffsetType offsetType,
	double bevelRatio,
	double flattenError


Type: Esri.ArcGISRuntime.GeometryGeometry
The geometry to calculate offset for. MapPoint and Multipoint are not supported.
Type: SystemDouble
The offset distance for the geometry.
Type: Esri.ArcGISRuntime.GeometryOffsetType
The offset type of the offset geometry.
Type: SystemDouble
The ratio used to produce a bevel join instead of a miter join (used only when joins is miter)
Type: SystemDouble
The maximum distance of the resulting segments compared to the true circular arc (used only when joins is round). If flattenError is 0, tolerance value is used. Also, the algorithm never produces more than around 180 vertices for each round join.

Return Value

Type: Geometry
Returns the result of the offset operation.
See Also