Use impl Into<T> #71
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
question
rust
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ArkForgeLabs/BlueEngine#71
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
some functions like set_color or set position use multiple arguments, it bit discomfort if you want set position of tuple or Array4.
Solution:
position: impl Into<Array4>or use from
The issue with that is that the function does more than setting just values, it also updates the uniform buffer and transform matrices.
A solution can be to add a whole new copy of the functions that accepts from array/list and internally maps them. But that will add extra confusion and cluttering.
e.g.
@Gipson62 @NickJasonHagen What do you guys think?
Honestly, having more functions like this would help, it'll help as much as functions overloading is useful in OOP languages and don't most people use the
set_position()like this already?So making it takes an
impl Into<[f32; 3]>instead of 3f32wouldn't be stupid imho