Module equal_angle

Module equal_angle 

Source

Structs§

EqualAngleOpts
Options for EqualAngle
Pt

Functions§

assign_angles_to_edges
Assign angles to edges: compute split directions (per split id) on a circle, then stamp on edges unless forbidden.
assign_angles_to_splits
Compute split direction for each split id (1-based) by “mid-angle” between the first/last taxa (in cycle order) that lie on the part not containing cycle[1].
assign_coordinates_to_nodes
equal_angle_apply
Compute a split network with the (ported) Equal-Angle workflow.
normalize_cycle_1based
normalize cycle so that cycle[1] == 1; keep 1-based convention with index 0 unused
rotate_angles_align_leaf
Rotate all edge angles so the first edge incident to taxon_id is aligned to target_deg. Returns the delta that was applied (in degrees), or None if that leaf/edge couldn’t be found.
rotate_angles_align_then_offset
Align the first edge incident to taxon_id to target_deg then apply a global rotation of extra_offset_deg.
rotate_angles_in_place
Add delta_deg (in degrees) to every stored edge angle, modulo 360.
wrap_split
Translate Java: EqualAngle.wrapSplit(…)