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