arc¶
- class janim.items.geometry.arc.ArcCenter(*args, arc_center: Vect = array([0., 0., 0.]), **kwargs)¶
Bases:
MarkedItem,VItemBase class for arc-related classes, inherited by
ArcandAnnularSector- get_arc_center() ndarray¶
Get the center point corresponding to the arc
- move_arc_center_to(point: Vect) Self¶
Move the arc center to the specified position
- class janim.items.geometry.arc.Arc(*args, **kwargs)¶
Bases:
GeometryShape,ArcCenterArc
start_anglerepresents the starting angleanglerepresents the central angle
- reshape(start_angle: float | None = None, angle: float | None = None, radius: float | None = None, *, n_components: int | None = None, arc_center: Vect | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- get_arc_length() float¶
Get the arc length
- get_start_angle() float¶
Get the starting angle
- get_stop_angle() float¶
Get the ending angle
- class janim.items.geometry.arc.ArcBetweenPoints(*args, **kwargs)¶
Bases:
ArcArc between two points
Pass
startandendto represent the start and end pointsanglerepresents the central angleOther parameters are the same as
Arc
- reshape(start: Vect | None = None, end: Vect | None = None, *, angle: float | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- class janim.items.geometry.arc.Cmpt_VPoints_CircleImpl(*args, **kwargs)¶
Bases:
Cmpt_VPoints,GenericFurther implementation of
Cmpt_VPointsin circles- surround(item: Item, dim_to_match: int = 0, *, stretch: bool = False, buff: float = 0.25, root_only: bool = True, item_root_only: bool = False) Self¶
Similar to
replace, but leavesbuffspacing outward
- property start_angle: float¶
Get the starting angle
- at_angle(angle: float) ndarray¶
Get the point at the specified angle, e.g.,
angle=0gets the right point,angle=PI / 2gets the top point
- property radius: float¶
Get the radius
- class janim.items.geometry.arc.Circle(*args, **kwargs)¶
Bases:
GeometryShapeCircle
Parameters are the same as
ArcRadius is specified by passing
radius
- points¶
- reshape(radius: float | None = None, *, n_components: int | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- class janim.items.geometry.arc.SmallDot(*args, **kwargs)¶
Bases:
DotSmall dot, default radius is
0.04
- class janim.items.geometry.arc.Ellipse(*args, **kwargs)¶
Bases:
CircleEllipse
- reshape(width: float | None = None, height: float | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- class janim.items.geometry.arc.AnnularSector(*args, **kwargs)¶
Bases:
GeometryShape,ArcCenterAnnular sector
inner_radius: Inner circle radiusouter_radius: Outer circle radiusstart_angle: Starting angleangle: Central anglearc_center: Center of the arc
- reshape(inner_radius: float | None = None, outer_radius: float | None = None, start_angle: float | None = None, angle: float | None = None, *, arc_center: Vect | None = None, n_components: int | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- class janim.items.geometry.arc.Sector(*args, **kwargs)¶
Bases:
ArcSector
For parameters, refer to
Arc- reshape(start_angle: float | None = None, angle: float | None = None, radius: float | None = None, *, n_components: int | None = None, arc_center: Vect | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial
- class janim.items.geometry.arc.Annulus(*args, **kwargs)¶
Bases:
GeometryShapeAnnulus
inner_radius: Inner circle radiusouter_radius: Outer circle radiusarc_center: Center of the arc
- reshape(outer_radius: float | None = None, inner_radius: float | None = None, *, arc_center: Vect | None = None, n_components: int | None = None) Self¶
Similar to passing parameters to
__init__, reset the shape of the geometry itemSome values can be omitted to reuse previous ones; for detailed usage, refer to the Reshape Geometry tutorial