Docs.rs
piston-button_controller-0.13.0
piston-button_controller 0.13.0
Permalink
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
bvssvni
github:pistondevelopers:publish
Dependencies
pistoncore-input ^1.0.0
normal
vecmath ^1.0.0
normal
piston ^0.51.0
dev
piston2d-graphics ^0.36.0
dev
piston2d-opengl_graphics ^0.72.0
dev
pistoncore-sdl2_window ^0.65.0
dev
Versions
100%
of the crate is documented
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
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
button_
controller
0.13.0
Module math
Module Items
Functions
Type Aliases
In crate button_
controller
button_controller
Module
math
Copy item path
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 Aliases
§
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.