Implement vector color and ray compatibility
This commit is contained in:
@@ -23,6 +23,7 @@ fn color_values(value: &Color4) -> [f32; 4] {
|
||||
[value.r, value.g, value.b, value.a]
|
||||
}
|
||||
|
||||
#[allow(clippy::trivially_copy_pass_by_ref)] // Mirrors the reference-oriented test helper shape.
|
||||
fn vector2_values(value: &Vector2) -> [f32; 2] {
|
||||
[value.x, value.y]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user