Skip to content

Geom.arc()

Description

A 2D arc in the XOY plane, angles are defined in degrees, center of the figure at point [0,0,0].

Syntax

JS
Geom.arc(radius: Number, angle: Number) -> Shape
Geom.arc(radius: Number, angle1: Number, angle2: Number) -> Shape
Geom.arc(p1: Point3, p2: Point3, p3: Point3) -> Shape

Parameters

Parameter Type Description
radius Number Arc radius.
angle Number Angle of the arc in degrees in range (0°, 360°), initial angle is 0.
angle1 Number Initial angle of the arc in degrees in range (0°, 360°).
angle2 Number Final angle of the arc in degrees in range (0°, 360°).
p1 Point3 First point through which the arc passes.
p2 Point3 Second point through which the arc passes.
p3 Point3 Third point through which the arc passes.

Return value

Type Description
Shape Object of type Shape, an arc.

Example

JS
let s1 = Geom.arc(100, 30);
console.info(s1); // output:
let s2 = Geom.arc(100, 30, 60);
console.info(s2); // output:
let s3 = Geom.arc(
  Geom.point3(0, 0, 0),
  Geom.point3(10, 10, 10),
  Geom.point3(20, 20, 20)
);
console.info(s3); // output:

See also

Point3

Shape

Last update: 15 August 2025, 14:32