Docs.rs
piston-button_controller-0.6.0
piston-button_controller 0.6.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
bvssvni
github:pistondevelopers:publish
Dependencies
pistoncore-input ^0.22.0
normal
vecmath ^0.3.0
normal
piston_window ^0.83.0
dev
pistoncore-sdl2_window ^0.51.0
dev
Versions
100%
of the crate is documented
Go to latest version
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
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
☰
Module math
Functions
Type Definitions
?
Module
button_controller
::
math
source
·
[
−
]
Expand description
Various useful methods for math.
Functions
duration_to_secs
Returns the number of seconds of duration.
is_inside
Returns true if transformed point is inside rectangle.
Type Definitions
Matrix2d
The type used for matrices.
Rectangle
Rectangle dimensions: [x, y, w, h]
Scalar
The type used for scalars.
Vec2d
The type used for 2D vectors.