This is the Math::Circle class.
Represents a circle.
$circle = Circle($r: Num, $h: Num, $k: Num)
Creates a circle given radius and center coordinates.
$circle = Circle($r: Num, $center: Point)
Creates a circle given radius and center.
-
r: Num - Radius.
-
center: Point - Center.
$circle = Circle($area: Num)
Creates a circle at the origin given area.
- area: Num - Area.
$circle.r
Property. Radius length.
$circle.h
Property. Center x-coordinate.
$circle.k
Property. Center y-coordinate.
$circle.center
Once-computed property. Center point.
$circle.r2
Once-computed property. Squared radius length.
$circle.area
Computed property. Area.
$circle.d
Computed property. Diameter length.
$circle.c
Computed property. Circumference.
$circle.diameter
Computed property. Diameter length. Same as d
.
$circle.circumference
Computed property. Circumference. Same as c
.
$circle.formula
Computed property. Formula in center-radius notation.
$circle.hasPoint($pt: Point)
Tests whether a point is on the circle.
- pt: Point
$circle.isTangent($line: Line)
Tests whether a line is tangent to the circle.
- line: Line
$circle.isChord($seg: Segment)
Tests whether a line segment is a chord of the circle.
- seg: Segment
$circle == ($ehs: Circle)
Equality of two circles.
Circle.unit
Unit circle.
End of the Math::Circle class.
This file was generated automatically by the Ferret compiler from Circle.frt.