fortplot_tt_edge_sort Module

TrueType edge sorting utilities. Sorts glyph outline edges by y0 for scanline rasterization.



Derived Types

type, public ::  tt_edge_t

Components

Type Visibility Attributes Name Initial
real(kind=dp), public :: x0
real(kind=dp), public :: y0
real(kind=dp), public :: x1
real(kind=dp), public :: y1
logical, public :: invert

Subroutines

public subroutine sort_edges(edges, n)

Sort edges by y0 ascending. Quicksort + insertion sort.

Arguments

Type IntentOptional Attributes Name
type(tt_edge_t), intent(inout) :: edges(:)
integer, intent(in) :: n

public recursive subroutine sort_edges_quicksort(p, n)

Arguments

Type IntentOptional Attributes Name
type(tt_edge_t), intent(inout) :: p(:)
integer, intent(in) :: n

public subroutine sort_edges_ins_sort(p, n)

Arguments

Type IntentOptional Attributes Name
type(tt_edge_t), intent(inout) :: p(:)
integer, intent(in) :: n