Link Search Menu Expand Document

Angle

angle.ts#L29

Class Angle

A 2-dimensional angle class, defined by three points.

Implements GeoShape

constructor (a: Point, b: Point, c: Point): Angle

Name Type Default Description
a Point    
b Point    
c Point    

readonly Property .a : Point

readonly Property .b : Point

readonly Property .c : Point

readonly Property .type

Default value: 'angle'

Accessor .arc : Arc

Returns the Arc element corresponding to this angle.

Accessor .bisector

The bisector of this angle.

Accessor .deg : number

The size, in degrees, of this angle.

Accessor .isRight : boolean

Checks if this angle is right-angled.

Accessor .rad : number

The size, in radians, of this angle.

Accessor .sup : Angle

Returns the smaller one of this and its supplementary angle.

Method .at (): Point

Method .contains (): boolean

Method .equals (_a: Angle): boolean

Name Type Default Description
_a Angle    

Method .project (): Point

Method .reflect (l: Line): Angle

Name Type Default Description
l Line    

Method .rotate (a: number, c: SimplePoint): Angle

Name Type Default Description
a number    
c SimplePoint    

Method .scale (sx: number, sy: number): Angle

Name Type Default Description
sx number    
sy number  

Method .shift (x: number, y: number): Angle

Name Type Default Description
x number    
y number  

Method .transform (m: TransformMatrix): Angle

Name Type Default Description
m TransformMatrix    

Method .translate (p: Point): Angle

Name Type Default Description
p Point    

static Method .fromDegrees (val: number): Angle

Name Type Default Description
val number    

static Method .fromRadians (val: number): Angle

Name Type Default Description
val number    
angle.ts#L18

toDeg (n: number): number

Convert angles in radians to degrees.

Name Type Default Description
n number    
angle.ts#L23

toRad (n: number): number

Convert angles in degrees to radians.

Name Type Default Description
n number    

Copyright © 2021 Mathigon.org