Module fnpcell.geometry.elliptical_arc
Functions
new_circular_bend
def new_circular_bend(radius: float, radians: Optional[float] = None, degrees: Optional[float] = None,
origin: Optional[Tuple[float, float]] = None, transform: Affine2D = Affine2D.identity())
new_elliptical_arc
def new_elliptical_arc(radius: Union[float, Iterable[float]], initial_radians: Optional[float] = None,
initial_degrees: Optional[float] = None, final_radians: Optional[float] = None,
final_degrees: Optional[float] = None, origin: Optional[Tuple[float, float]] = None,
transform: Affine2D = Affine2D.identity()) -> EllipticalArc
Create a EllipticalArc.
Classes
EllipticalArc
class EllipticalArc(radius: Tuple[float, float], initial_angle: float, final_angle: float, transform: Affine2D)
EllipticalArc(args: Any, *kwargs: Any)
Ancestors
TransformMixin, IUpdatable, CurveMixin, ICurve, ICurveLike, IAffineTransformable
Class variables
var final_angle: float
var initial_angle: float
var radius: Tuple[float, float]
var transform: Affine2D
Static methods
def bend(radius: float, radians: Optional[float] = None, degrees: Optional[float] = None,
origin: Optional[Tuple[float, float]] = None,
transform: Affine2D = Affine2D.identity()) -> EllipticalArc
def from_path(start: Tuple[float, float], end: Tuple[float, float], radius: Union[float, Iterable[float]],
rotation: float = 0, large_arc: bool = False, clockwise: bool = False) -> EllipticalArc
Create a EllipticalArc from path rotation degrees.
def transform_from_at(at: Union[None, Tuple[float, float], IPositioned, IRay] = None,
transform: Affine2D = Affine2D.identity()) -> Affine2D
Inherited from: TransformMixin.transform_from_at
Returns an Affine2D that is the result of the matrix product of the given transformation and the translation transformation at the given origin, the …
def transform_from_origin(origin: Optional[Tuple[float, float]] = None,
transform: Affine2D = Affine2D.identity()) -> Affine2D
Inherited from: TransformMixin.transform_from_origin
Returns an Affine2D that is the result of the matrix product of the given transformation and the translation transformation at the given origin, It …
Instance variables
var curve_points
var end_orientations
Return orientation of the end.
Methods
def c_mirrored(self: ~_Self, *, center: Tuple[float, float] = (0, 0)) -> ~_Self
Inherited from: TransformMixin.c_mirrored
Center mirrored.
def curve_function(self, t: float) -> Tuple[float, float]
def h_mirrored(self: ~_Self, *, x: float = 0) -> ~_Self
Inherited from: TransformMixin.h_mirrored
Horizontal mirrored.
def rotated(self: ~_Self, *, degrees: Optional[float] = None, radians: Optional[float] = None,
origin: Optional[Tuple[float, float]] = None, inplace: Optional[bool] = None) -> ~_Self
Inherited from: TransformMixin.rotated
Return a new cell reference rotated, either degrees or radians must be provided. If both provided, radians is used …
def sample_at(self, length: float) -> SampleInfo
Inherited from: CurveMixin.sample_at
return sample info at length.
def scaled(self: ~_Self, sx: float, sy: Optional[float] = None, *,
center: Tuple[float, float] = (0, 0)) -> ~_Self
Inherited from: TransformMixin.scaled
scaled at center.
def slope(self, angle: float) -> float
def split_at(self, length: float) -> Tuple[ICurve, ICurve]
Inherited from: CurveMixin.split_at
return two subcurve at length, if length < 0, abs(length) from end.
def subcurve(self, start: float, end: float) -> ICurve
Inherited from: CurveMixin.subcurve
return a subcurve between start and end …
def transform_combined(self, transform: Affine2D)
Inherited from: TransformMixin.transform_combined
Returns an Affine2D that is the result of the matrix product with the given transformation. It means that the original image can be transformed by a …
def translated(self: ~_Self, tx: float, ty: float) -> ~_Self
Inherited from: TransformMixin.translated
Translated.
def v_mirrored(self: ~_Self, *, y: float = 0) -> ~_Self
Inherited from: TransformMixin.v_mirrored
Vertical mirrored.