MajorSector

Element

A major sector is a sector of a circle around center spanning an angle of greater than or equal to 180 degrees (π radians) and starts at p1. The radius is determined by p1, the angle by p2.

Usage (signatures)
board.create('majorsector', [center, p1, p2]);

A major sector is a sector of a circle around center spanning an angle of greater than or equal to 180 degrees (π radians) and starts at p1. The radius is determined by p1, the angle by p2.

Parameters
Name Type Description
center PointLike
p1 PointLike
p2 PointLike
Example
// Create an arc out of three free points
var center = board.create('point', [2.0, 2.0]);
var p1 = board.create('point', [1.0, 0.5]);
var p2 = board.create('point', [3.5, 1.0]);

var a = board.create('majorsector', [center, p1, p2]);

Throws

If the element cannot be constructed with the given parent objects an exception is thrown.

Type
Error

Details

Type
JXG.Curve
Source
element/sector.js, line 1142