Docs.rs
jflib-render2d-0.2.2
Platform
aarch64-linux-android
wasm32-unknown-unknown
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module fill
render2d
0.2.2
Module fill
Module Items
Structs
Constants
Functions
In crate render2d
render2d
Module
fill
Copy item path
Source
Structs
§
Prepared
the rings ready for the records: their points (relative to
origin
), oriented; triangles as (ring, point) pairs; per triangle and per edge the edges near it (near: numbered ring after ring, nearest first)
Constants
§
EDGE_
NEAR
the most edges besides its two neighbours an edge’s record names
TRI_
NEAR
the most edges a triangle’s record names (the fragment shader computes its pixels from them)
Functions
§
areas
(tests) the triangles’ area against the rings’ even-odd area, both in units squared
earcut
triangles of the polygon
data
(the outer ring, then the holes from
starts
on) as indices into it
prepare
the rings (absolute f64 points, implicitly closed): cleaned, nested, oriented, triangulated