mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 07:08:42 -06:00
impl from corners vec3
This commit is contained in:
parent
3c680ea294
commit
d44a2bae53
|
@ -153,6 +153,17 @@ impl From<[[f32; 4]; 4]> for FillColor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Corners<Vec3>> for FillColor {
|
||||||
|
fn from(corners: Corners<Vec3>) -> Self {
|
||||||
|
Self(Corners {
|
||||||
|
top_left: corners.top_left.extend(1.),
|
||||||
|
top_right: corners.top_right.extend(1.),
|
||||||
|
bottom_left: corners.bottom_left.extend(1.),
|
||||||
|
bottom_right: corners.bottom_right.extend(1.),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl From<(Vec3, Vec3, Vec3, Vec3)> for FillColor {
|
impl From<(Vec3, Vec3, Vec3, Vec3)> for FillColor {
|
||||||
fn from((top_left, top_right, bottom_left, bottom_right): (Vec3, Vec3, Vec3, Vec3)) -> Self {
|
fn from((top_left, top_right, bottom_left, bottom_right): (Vec3, Vec3, Vec3, Vec3)) -> Self {
|
||||||
Self(Corners {
|
Self(Corners {
|
||||||
|
|
Loading…
Reference in a new issue