| Crates.io | cgmath-std140 |
| lib.rs | cgmath-std140 |
| version | 0.2.2 |
| created_at | 2020-01-04 16:59:49.981268+00 |
| updated_at | 2021-05-31 14:09:42.178733+00 |
| description | Bridge crate that provides conversion from `cgmath` types to `std140` types. |
| homepage | https://github.com/RSSchermer/cgmath-std140.rs |
| repository | https://github.com/RSSchermer/cgmath-std140.rs |
| max_upload_size | |
| id | 195174 |
| size | 6,698 |
Conversions cgmath types to std140 types.
use cgmath_std140::AsStd140;
use cgmath::Vector4;
let vector: Vector4 = Vector4::new(1.0, 2.0, 3.0, 4.0);
let converted: std140::vec4 = matrix.as_std140();
MIT