Docs.rs
kui-core-0.1.0-alpha.43
kui-core 0.1.0-alpha.43
Permalink
Docs.rs crate page
MIT
08 October 2026
Links
Homepage
Repository
crates.io
Source
Owners
qxuken
Dependencies
cosmic-text ^0.19
normal
kui-derive ^0.1.0-alpha.43
normal
optional
naga ^30
normal
rustc-hash ^2
normal
slotmap ^1.1.1
normal
swash ^0.2
normal
unicode-linebreak ^0.1
normal
unicode-script ^0.5
normal
unicode-segmentation ^1
normal
divan ^0.1
dev
serde_json ^1
dev
Versions
68.54%
of the crate is documented
Platform
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
segment_distance
kui_
core
0.1.0-alpha.43
In kui_
core::
input
kui_core
::
input
Function
segment_
distance
Copy item path
Source
pub fn segment_distance(p:
Vec2
, a:
Vec2
, b:
Vec2
) ->
f32
Expand description
Distance from
p
to the segment
a
–
b
.