mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Implement bytemuck behind a feature (#775)
This commit is contained in:
@@ -13,7 +13,10 @@ use super::Vec2;
|
||||
//
|
||||
/// Normally a `Rot2` is normalized (unit-length).
|
||||
/// If not, it will also scale vectors.
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
|
||||
pub struct Rot2 {
|
||||
/// angle.sin()
|
||||
s: f32,
|
||||
|
||||
Reference in New Issue
Block a user