jitx/shapes/Circle¶
Package name: jitx/shapes/Circle
Summary¶
Definitions¶
Circle¶
Circle
public defstruct Circle <: Shape & Centerable & HasMetaUtils :
radius: Double
radius: Double
- Radius of this circle. Must be non-negative.
A circle specified by its center point and radius.
If the radius is 0.0
then the actual shape of the circle is a point.
Constructors¶
Circle¶
Constructor for defstruct Circle
public defn Circle (center:Point = ?, radius:Double)
Functions¶
Circle¶
Create a circle using a center X coordinate, center Y coordinate, and radius.
public defn Circle (x:Double, y:Double, radius:Double)
x: Double
- X coordinate of the center of the circle.y: Double
- Y coordinate of the center of the circle.radius: Double
- Radius of the circle
Circle¶
Create a circle anchored to a specific alignment with respect to a point.
public defn Circle (anchor:Anchor, x:Double, y:Double, radius:Double)
anchor: Anchor
- Anchor to align the circle with to the point(x, y)
.x: Double
- X coordinate of the point to align the circle'sanchor
to.y: Double
- Y coordinate of the point to align the circle'sanchor
to.radius: Double
- Radius of the circle
Circle¶
Create a circle anchored to a specific alignment with respect to the origin.
public defn Circle (anchor:Anchor, radius:Double)
anchor: Anchor
- Anchor to align the circle with to the origin.radius: Double
- Radius of the circle.
Related Packages¶
Forwarded by packages: jitx/shapes, jitx