ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
svg_arc_t Struct Reference

Centre-parametrisation of an SVG elliptical arc. More...

Data Fields

float cx
 Centre X (user space).
float cy
 Centre Y (user space).
float rx
 Corrected semi-axis X.
float ry
 Corrected semi-axis Y.
float cos_phi
 cos(x-axis rotation).
float sin_phi
 sin(x-axis rotation).
float t1
 Start angle, radians.
float dt
 Signed sweep, radians.
bool ok
 False => degenerate (draw a line).

Detailed Description

Centre-parametrisation of an SVG elliptical arc.

Result of internal_arc_center – the centre, the (radius-corrected) semi-axes, the x-axis rotation (as cos/sin), and the start angle + signed sweep, ready to sample. ok is false for a degenerate arc (zero radius or coincident endpoints), in which case the caller draws a straight line.

Definition at line 700 of file reflow_svg_shape.c.

Field Documentation

◆ cos_phi

float svg_arc_t::cos_phi

cos(x-axis rotation).

Definition at line 705 of file reflow_svg_shape.c.

Referenced by internal_arc_center(), internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ cx

float svg_arc_t::cx

Centre X (user space).

Definition at line 701 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ cy

float svg_arc_t::cy

Centre Y (user space).

Definition at line 702 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ dt

float svg_arc_t::dt

Signed sweep, radians.

Definition at line 708 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ ok

bool svg_arc_t::ok

False => degenerate (draw a line).

Definition at line 709 of file reflow_svg_shape.c.

Referenced by internal_arc_center(), internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ rx

float svg_arc_t::rx

Corrected semi-axis X.

Definition at line 703 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ ry

float svg_arc_t::ry

Corrected semi-axis Y.

Definition at line 704 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ sin_phi

float svg_arc_t::sin_phi

sin(x-axis rotation).

Definition at line 706 of file reflow_svg_shape.c.

Referenced by internal_arc_center(), internal_arc_solve(), and priv_ra8_svgp_flatten_arc().

◆ t1

float svg_arc_t::t1

Start angle, radians.

Definition at line 707 of file reflow_svg_shape.c.

Referenced by internal_arc_solve(), and priv_ra8_svgp_flatten_arc().


The documentation for this struct was generated from the following file: