Skip to main content
Version: 6.5.0

lineArc

Description

Creates a circular arc, of a circle of the given radius and center point, between bearing1 and bearing2; 0 bearing is North of center point, positive clockwise.

Parameters

NameTypeDescription
centerCoordcenter point
radiusnumberradius of the circle
bearing1numberangle, in decimal degrees, of the first radius of the arc
bearing2numberangle, in decimal degrees, of the second radius of the arc
options?ObjectOptional parameters (default {})
options.steps?numbernumber of steps (default 64)
options.units?stringmiles, kilometers, degrees, or radians (default 'kilometers')

Returns

Examples

var center = turf.point([-75, 40]);
var radius = 5;
var bearing1 = 25;
var bearing2 = 47;

var arc = turf.lineArc(center, radius, bearing1, bearing2);

Installation

$ npm install @turf/line-arc

import { lineArc } from "@turf/line-arc";
const result = lineArc(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.lineArc(...);