Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerroEngine/Perro
/ as_vector2
Method
as_vector2
perro_source/core/perro_structs/src/structs/snorm.rs:119–121 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
117
#[inline]
118
pub const fn to_u8(self) -> [u8; 2] {
119
[self.x.to_u8(), self.y.to_u8()]
120
}
121
122
#[inline]
123
pub const fn to_array(self) -> [f32; 2] {
124
[self.x.to_f32(), self.y.to_f32()]
Callers
2
from
Method · 0.45
stick
Method · 0.45
Calls
1
to_f32
Method · 0.45
Tested by
no test coverage detected