Ellipse

Class Ellipse

Implements GeoShape

constructor (c: Point, a: number, b: number, angle: number): Ellipse

Name Type Default Description
c Point    
a number    
b number    
angle number 0  

readonly Property .a : number

readonly Property .angle : number

readonly Property .b : number

readonly Property .c : Point

readonly Property .f1 : Point

readonly Property .f2 : Point

readonly Property .type

Default value: 'ellipse'

Accessor .rx

Accessor .ry

Method .at (t: number): Point

Name Type Default Description
t number    

Method .contains (p: Point): boolean

Name Type Default Description
p Point    

Method .equals (other: Ellipse, tolerance: number): boolean

Name Type Default Description
other Ellipse    
tolerance number    

Method .intersect (line: Line): Array<Point>

Intersection between an ellipse and a line.

Name Type Default Description
line Line    

Method .normalAt (p: Point): Line

Name Type Default Description
p Point    

Method .offset (p: Point): number

Name Type Default Description
p Point    

Method .project (p: Point): Point

Name Type Default Description
p Point    

Method .reflect (l: Line): Ellipse

Name Type Default Description
l Line    

Method .rotate (a: number, c: Point): Ellipse

Name Type Default Description
a number    
c Point  

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

Name Type Default Description
sx number    
sy number  

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

Name Type Default Description
x number    
y number  

Method .toString (): string

Method .transform (_m: TransformMatrix): Ellipse

Name Type Default Description
_m TransformMatrix    

Method .translate (p: SimplePoint): Ellipse

Name Type Default Description
p SimplePoint    

static Method .fromFoci (f1: Point, f2: Point, stringLength: number): Ellipse

Creates a new Ellipse. StringLength is the length of string from one foci to a point on the circumference, to the other foci.

Name Type Default Description
f1 Point    
f2 Point    
stringLength number    

Copyright © 2023 Mathigon.org