From edff20099e71c1c195e10bb5c9cd2ca0f1e85d29 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:45:50 +0000 Subject: [PATCH] chore(codegen): update bevy bindings --- .../src/bevy/bevy_core.rs | 12 +- .../src/bevy/bevy_ecs.rs | 136 +- .../src/bevy/bevy_hierarchy.rs | 33 +- .../src/bevy/bevy_input.rs | 547 +- .../src/bevy/bevy_math.rs | 1110 ++- .../src/bevy/bevy_reflect.rs | 8269 ++++++++++++----- .../src/bevy/bevy_time.rs | 118 +- .../src/bevy/bevy_transform.rs | 84 +- 8 files changed, 7484 insertions(+), 2825 deletions(-) diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_core.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_core.rs index 8a6dbf6656..a1dca75e81 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_core.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_core.rs @@ -5,7 +5,8 @@ use super::bevy_ecs::*; use super::bevy_reflect::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -13,21 +14,24 @@ pub struct BevyCoreScriptingPlugin; impl bevy::app::Plugin for BevyCoreScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Name::eq(_self, other).into(); + let output: bool = bevy::core::prelude::Name::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Name::clone(_self) + let output: Val = bevy::core::prelude::Name::clone( + _self, + ) .into(); output }, diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_ecs.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_ecs.rs index 18232a843b..d011cc0da4 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_ecs.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_ecs.rs @@ -4,7 +4,8 @@ #![cfg_attr(rustfmt, rustfmt_skip)] use super::bevy_reflect::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -12,11 +13,13 @@ pub struct BevyEcsScriptingPlugin; impl bevy::app::Plugin for BevyEcsScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_raw", |index: u32| { - let output: Val = Entity::from_raw(index) + let output: Val = bevy::ecs::entity::Entity::from_raw( + index, + ) .into(); output }, @@ -24,14 +27,16 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "to_bits", |_self: Val| { - let output: u64 = Entity::to_bits(_self).into(); + let output: u64 = bevy::ecs::entity::Entity::to_bits(_self).into(); output }, ) .overwrite_script_function( "from_bits", |bits: u64| { - let output: Val = Entity::from_bits(bits) + let output: Val = bevy::ecs::entity::Entity::from_bits( + bits, + ) .into(); output }, @@ -39,14 +44,15 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "index", |_self: Val| { - let output: u32 = Entity::index(_self).into(); + let output: u32 = bevy::ecs::entity::Entity::index(_self).into(); output }, ) .overwrite_script_function( "generation", |_self: Val| { - let output: u32 = Entity::generation(_self).into(); + let output: u32 = bevy::ecs::entity::Entity::generation(_self) + .into(); output }, ) @@ -56,37 +62,44 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Entity::eq(_self, other).into(); + let output: bool = bevy::ecs::entity::Entity::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Entity::clone(_self) + let output: Val = bevy::ecs::entity::Entity::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world); - NamespaceBuilder::::new(world); - NamespaceBuilder::::new(world); - NamespaceBuilder::::new(world); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = ComponentId::eq(_self, other).into(); + let output: bool = bevy::ecs::component::ComponentId::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ComponentId::clone( + let output: Val = bevy::ecs::component::ComponentId::clone( _self, ) .into(); @@ -96,7 +109,7 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "new", |index: usize| { - let output: Val = ComponentId::new( + let output: Val = bevy::ecs::component::ComponentId::new( index, ) .into(); @@ -106,23 +119,29 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "index", |_self: Val| { - let output: usize = ComponentId::index(_self).into(); + let output: usize = bevy::ecs::component::ComponentId::index(_self) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = ComponentId::assert_receiver_is_total_eq(_self) + let output: () = bevy::ecs::component::ComponentId::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Tick::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::ecs::component::Tick::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) @@ -132,14 +151,17 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Tick::eq(_self, other).into(); + let output: bool = bevy::ecs::component::Tick::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Tick::clone(_self) + let output: Val = bevy::ecs::component::Tick::clone( + _self, + ) .into(); output }, @@ -147,21 +169,24 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "new", |tick: u32| { - let output: Val = Tick::new(tick).into(); + let output: Val = bevy::ecs::component::Tick::new( + tick, + ) + .into(); output }, ) .overwrite_script_function( "get", |_self: Val| { - let output: u32 = Tick::get(_self).into(); + let output: u32 = bevy::ecs::component::Tick::get(_self).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, tick: u32| { - let output: () = Tick::set(_self, tick).into(); + let output: () = bevy::ecs::component::Tick::set(_self, tick).into(); output }, ) @@ -172,16 +197,20 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { last_run: Val, this_run: Val| { - let output: bool = Tick::is_newer_than(_self, last_run, this_run) + let output: bool = bevy::ecs::component::Tick::is_newer_than( + _self, + last_run, + this_run, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ComponentTicks::clone( + let output: Val = bevy::ecs::component::ComponentTicks::clone( _self, ) .into(); @@ -195,7 +224,7 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { last_run: Val, this_run: Val| { - let output: bool = ComponentTicks::is_added( + let output: bool = bevy::ecs::component::ComponentTicks::is_added( _self, last_run, this_run, @@ -211,7 +240,7 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { last_run: Val, this_run: Val| { - let output: bool = ComponentTicks::is_changed( + let output: bool = bevy::ecs::component::ComponentTicks::is_changed( _self, last_run, this_run, @@ -223,7 +252,7 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "new", |change_tick: Val| { - let output: Val = ComponentTicks::new( + let output: Val = bevy::ecs::component::ComponentTicks::new( change_tick, ) .into(); @@ -236,16 +265,19 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { _self: Mut, change_tick: Val| { - let output: () = ComponentTicks::set_changed(_self, change_tick) + let output: () = bevy::ecs::component::ComponentTicks::set_changed( + _self, + change_tick, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Identifier::clone( + let output: Val = bevy::ecs::identifier::Identifier::clone( _self, ) .into(); @@ -255,28 +287,33 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { .overwrite_script_function( "low", |_self: Val| { - let output: u32 = Identifier::low(_self).into(); + let output: u32 = bevy::ecs::identifier::Identifier::low(_self) + .into(); output }, ) .overwrite_script_function( "masked_high", |_self: Val| { - let output: u32 = Identifier::masked_high(_self).into(); + let output: u32 = bevy::ecs::identifier::Identifier::masked_high( + _self, + ) + .into(); output }, ) .overwrite_script_function( "to_bits", |_self: Val| { - let output: u64 = Identifier::to_bits(_self).into(); + let output: u64 = bevy::ecs::identifier::Identifier::to_bits(_self) + .into(); output }, ) .overwrite_script_function( "from_bits", |value: u64| { - let output: Val = Identifier::from_bits( + let output: Val = bevy::ecs::identifier::Identifier::from_bits( value, ) .into(); @@ -289,31 +326,40 @@ impl bevy::app::Plugin for BevyEcsScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Identifier::eq(_self, other).into(); + let output: bool = bevy::ecs::identifier::Identifier::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = EntityHash::clone( + let output: Val = bevy::ecs::entity::EntityHash::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::< + bevy::ecs::removal_detection::RemovedComponentEntity, + >::new(world) .overwrite_script_function( "clone", |_self: Ref| { let output: Val< bevy::ecs::removal_detection::RemovedComponentEntity, - > = RemovedComponentEntity::clone(_self).into(); + > = bevy::ecs::removal_detection::RemovedComponentEntity::clone( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world); } } diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_hierarchy.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_hierarchy.rs index 7c7e0da299..411831626e 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_hierarchy.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_hierarchy.rs @@ -6,7 +6,8 @@ use super::bevy_ecs::*; use super::bevy_reflect::*; use super::bevy_core::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -14,7 +15,7 @@ pub struct BevyHierarchyScriptingPlugin; impl bevy::app::Plugin for BevyHierarchyScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "swap", | @@ -22,15 +23,23 @@ impl bevy::app::Plugin for BevyHierarchyScriptingPlugin { a_index: usize, b_index: usize| { - let output: () = Children::swap(_self, a_index, b_index).into(); + let output: () = bevy::hierarchy::prelude::Children::swap( + _self, + a_index, + b_index, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Parent::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::hierarchy::prelude::Parent::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) @@ -40,15 +49,16 @@ impl bevy::app::Plugin for BevyHierarchyScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Parent::eq(_self, other).into(); + let output: bool = bevy::hierarchy::prelude::Parent::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = HierarchyEvent::clone( + let output: Val = bevy::hierarchy::HierarchyEvent::clone( _self, ) .into(); @@ -61,14 +71,17 @@ impl bevy::app::Plugin for BevyHierarchyScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = HierarchyEvent::eq(_self, other).into(); + let output: bool = bevy::hierarchy::HierarchyEvent::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = HierarchyEvent::assert_receiver_is_total_eq(_self) + let output: () = bevy::hierarchy::HierarchyEvent::assert_receiver_is_total_eq( + _self, + ) .into(); output }, diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_input.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_input.rs index b69275f5a6..2072c0731c 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_input.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_input.rs @@ -7,7 +7,8 @@ use super::bevy_reflect::*; use super::bevy_core::*; use super::bevy_math::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -15,11 +16,13 @@ pub struct BevyInputScriptingPlugin; impl bevy::app::Plugin for BevyInputScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "vendor_id", |_self: Ref| { - let output: std::option::Option = Gamepad::vendor_id(_self) + let output: std::option::Option = bevy::input::gamepad::Gamepad::vendor_id( + _self, + ) .into(); output }, @@ -27,7 +30,9 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "product_id", |_self: Ref| { - let output: std::option::Option = Gamepad::product_id(_self) + let output: std::option::Option = bevy::input::gamepad::Gamepad::product_id( + _self, + ) .into(); output }, @@ -38,7 +43,11 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, button_type: Val| { - let output: bool = Gamepad::pressed(_self, button_type).into(); + let output: bool = bevy::input::gamepad::Gamepad::pressed( + _self, + button_type, + ) + .into(); output }, ) @@ -48,7 +57,11 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, button_type: Val| { - let output: bool = Gamepad::just_pressed(_self, button_type).into(); + let output: bool = bevy::input::gamepad::Gamepad::just_pressed( + _self, + button_type, + ) + .into(); output }, ) @@ -58,15 +71,21 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, button_type: Val| { - let output: bool = Gamepad::just_released(_self, button_type).into(); + let output: bool = bevy::input::gamepad::Gamepad::just_released( + _self, + button_type, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = GamepadAxis::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::gamepad::GamepadAxis::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -77,35 +96,43 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadAxis::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadAxis::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadAxis::clone( + let output: Val = bevy::input::gamepad::GamepadAxis::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = GamepadButton::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadButton::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadButton::clone( + let output: Val = bevy::input::gamepad::GamepadButton::clone( _self, ) .into(); @@ -115,37 +142,40 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = GamepadButton::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::gamepad::GamepadButton::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadSettings::clone( + let output: Val = bevy::input::gamepad::GamepadSettings::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = KeyCode::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::KeyCode::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = KeyCode::clone( + let output: Val = bevy::input::keyboard::KeyCode::clone( _self, ) .into(); @@ -155,15 +185,20 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = KeyCode::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::input::keyboard::KeyCode::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = MouseButton::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::mouse::MouseButton::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -174,25 +209,26 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = MouseButton::eq(_self, other).into(); + let output: bool = bevy::input::mouse::MouseButton::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = MouseButton::clone( + let output: Val = bevy::input::mouse::MouseButton::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = TouchInput::clone( + let output: Val = bevy::input::touch::TouchInput::clone( _self, ) .into(); @@ -205,15 +241,16 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = TouchInput::eq(_self, other).into(); + let output: bool = bevy::input::touch::TouchInput::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = KeyboardFocusLost::clone( + let output: Val = bevy::input::keyboard::KeyboardFocusLost::clone( _self, ) .into(); @@ -223,7 +260,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = KeyboardFocusLost::assert_receiver_is_total_eq( + let output: () = bevy::input::keyboard::KeyboardFocusLost::assert_receiver_is_total_eq( _self, ) .into(); @@ -236,25 +273,33 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = KeyboardFocusLost::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::KeyboardFocusLost::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = KeyboardInput::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::KeyboardInput::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = KeyboardInput::clone( + let output: Val = bevy::input::keyboard::KeyboardInput::clone( _self, ) .into(); @@ -264,37 +309,43 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = KeyboardInput::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::keyboard::KeyboardInput::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = AccumulatedMouseMotion::eq(_self, other).into(); + let output: bool = bevy::input::mouse::AccumulatedMouseMotion::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AccumulatedMouseMotion::clone( + let output: Val = bevy::input::mouse::AccumulatedMouseMotion::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AccumulatedMouseScroll::clone( + let output: Val = bevy::input::mouse::AccumulatedMouseScroll::clone( _self, ) .into(); @@ -307,25 +358,33 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = AccumulatedMouseScroll::eq(_self, other).into(); + let output: bool = bevy::input::mouse::AccumulatedMouseScroll::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = MouseButtonInput::eq(_self, other).into(); + let output: bool = bevy::input::mouse::MouseButtonInput::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = MouseButtonInput::clone( + let output: Val = bevy::input::mouse::MouseButtonInput::clone( _self, ) .into(); @@ -335,37 +394,40 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = MouseButtonInput::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::mouse::MouseButtonInput::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = MouseMotion::eq(_self, other).into(); + let output: bool = bevy::input::mouse::MouseMotion::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = MouseMotion::clone( + let output: Val = bevy::input::mouse::MouseMotion::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = MouseWheel::clone( + let output: Val = bevy::input::mouse::MouseWheel::clone( _self, ) .into(); @@ -378,15 +440,16 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = MouseWheel::eq(_self, other).into(); + let output: bool = bevy::input::mouse::MouseWheel::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadAxisChangedEvent::clone( + let output: Val = bevy::input::gamepad::GamepadAxisChangedEvent::clone( _self, ) .into(); @@ -399,15 +462,19 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadAxisChangedEvent::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadAxisChangedEvent::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadButtonChangedEvent::clone( + let output: Val = bevy::input::gamepad::GamepadButtonChangedEvent::clone( _self, ) .into(); @@ -420,18 +487,26 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadButtonChangedEvent::eq(_self, other) + let output: bool = bevy::input::gamepad::GamepadButtonChangedEvent::eq( + _self, + other, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::< + bevy::input::gamepad::GamepadButtonStateChangedEvent, + >::new(world) .overwrite_script_function( "clone", |_self: Ref| { let output: Val< bevy::input::gamepad::GamepadButtonStateChangedEvent, - > = GamepadButtonStateChangedEvent::clone(_self).into(); + > = bevy::input::gamepad::GamepadButtonStateChangedEvent::clone( + _self, + ) + .into(); output }, ) @@ -441,7 +516,10 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadButtonStateChangedEvent::eq(_self, other) + let output: bool = bevy::input::gamepad::GamepadButtonStateChangedEvent::eq( + _self, + other, + ) .into(); output }, @@ -449,46 +527,55 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = GamepadButtonStateChangedEvent::assert_receiver_is_total_eq( + let output: () = bevy::input::gamepad::GamepadButtonStateChangedEvent::assert_receiver_is_total_eq( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = GamepadConnection::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadConnection::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadConnection::clone( + let output: Val = bevy::input::gamepad::GamepadConnection::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "connected", |_self: Ref| { - let output: bool = GamepadConnectionEvent::connected(_self).into(); + let output: bool = bevy::input::gamepad::GamepadConnectionEvent::connected( + _self, + ) + .into(); output }, ) .overwrite_script_function( "disconnected", |_self: Ref| { - let output: bool = GamepadConnectionEvent::disconnected(_self) + let output: bool = bevy::input::gamepad::GamepadConnectionEvent::disconnected( + _self, + ) .into(); output }, @@ -499,46 +586,56 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadConnectionEvent::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadConnectionEvent::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadConnectionEvent::clone( + let output: Val = bevy::input::gamepad::GamepadConnectionEvent::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = GamepadEvent::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadEvent::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadEvent::clone( + let output: Val = bevy::input::gamepad::GamepadEvent::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = GamepadInput::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::gamepad::GamepadInput::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -546,7 +643,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadInput::clone( + let output: Val = bevy::input::gamepad::GamepadInput::clone( _self, ) .into(); @@ -559,29 +656,36 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadInput::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadInput::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadRumbleRequest::clone( + let output: Val = bevy::input::gamepad::GamepadRumbleRequest::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = RawGamepadAxisChangedEvent::eq(_self, other) + let output: bool = bevy::input::gamepad::RawGamepadAxisChangedEvent::eq( + _self, + other, + ) .into(); output }, @@ -589,20 +693,23 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RawGamepadAxisChangedEvent::clone( + let output: Val = bevy::input::gamepad::RawGamepadAxisChangedEvent::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::< + bevy::input::gamepad::RawGamepadButtonChangedEvent, + >::new(world) .overwrite_script_function( "clone", |_self: Ref| { let output: Val< bevy::input::gamepad::RawGamepadButtonChangedEvent, - > = RawGamepadButtonChangedEvent::clone(_self).into(); + > = bevy::input::gamepad::RawGamepadButtonChangedEvent::clone(_self) + .into(); output }, ) @@ -612,16 +719,19 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = RawGamepadButtonChangedEvent::eq(_self, other) + let output: bool = bevy::input::gamepad::RawGamepadButtonChangedEvent::eq( + _self, + other, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RawGamepadEvent::clone( + let output: Val = bevy::input::gamepad::RawGamepadEvent::clone( _self, ) .into(); @@ -634,15 +744,19 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = RawGamepadEvent::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::RawGamepadEvent::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = PinchGesture::clone( + let output: Val = bevy::input::gestures::PinchGesture::clone( _self, ) .into(); @@ -655,15 +769,19 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = PinchGesture::eq(_self, other).into(); + let output: bool = bevy::input::gestures::PinchGesture::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RotationGesture::clone( + let output: Val = bevy::input::gestures::RotationGesture::clone( _self, ) .into(); @@ -676,36 +794,44 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = RotationGesture::eq(_self, other).into(); + let output: bool = bevy::input::gestures::RotationGesture::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = DoubleTapGesture::eq(_self, other).into(); + let output: bool = bevy::input::gestures::DoubleTapGesture::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DoubleTapGesture::clone( + let output: Val = bevy::input::gestures::DoubleTapGesture::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = PanGesture::clone( + let output: Val = bevy::input::gestures::PanGesture::clone( _self, ) .into(); @@ -718,32 +844,39 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = PanGesture::eq(_self, other).into(); + let output: bool = bevy::input::gestures::PanGesture::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = ButtonState::eq(_self, other).into(); + let output: bool = bevy::input::ButtonState::eq(_self, other).into(); output }, ) .overwrite_script_function( "is_pressed", |_self: Ref| { - let output: bool = ButtonState::is_pressed(_self).into(); + let output: bool = bevy::input::ButtonState::is_pressed(_self) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = ButtonState::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::ButtonState::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -751,26 +884,32 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ButtonState::clone(_self) + let output: Val = bevy::input::ButtonState::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = ButtonSettings::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::ButtonSettings::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ButtonSettings::clone( + let output: Val = bevy::input::gamepad::ButtonSettings::clone( _self, ) .into(); @@ -780,28 +919,42 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "is_pressed", |_self: Ref, value: f32| { - let output: bool = ButtonSettings::is_pressed(_self, value).into(); + let output: bool = bevy::input::gamepad::ButtonSettings::is_pressed( + _self, + value, + ) + .into(); output }, ) .overwrite_script_function( "is_released", |_self: Ref, value: f32| { - let output: bool = ButtonSettings::is_released(_self, value).into(); + let output: bool = bevy::input::gamepad::ButtonSettings::is_released( + _self, + value, + ) + .into(); output }, ) .overwrite_script_function( "press_threshold", |_self: Ref| { - let output: f32 = ButtonSettings::press_threshold(_self).into(); + let output: f32 = bevy::input::gamepad::ButtonSettings::press_threshold( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_press_threshold", |_self: Mut, value: f32| { - let output: f32 = ButtonSettings::set_press_threshold(_self, value) + let output: f32 = bevy::input::gamepad::ButtonSettings::set_press_threshold( + _self, + value, + ) .into(); output }, @@ -809,40 +962,56 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "release_threshold", |_self: Ref| { - let output: f32 = ButtonSettings::release_threshold(_self).into(); + let output: f32 = bevy::input::gamepad::ButtonSettings::release_threshold( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_release_threshold", |_self: Mut, value: f32| { - let output: f32 = ButtonSettings::set_release_threshold(_self, value) + let output: f32 = bevy::input::gamepad::ButtonSettings::set_release_threshold( + _self, + value, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = AxisSettings::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::AxisSettings::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "livezone_upperbound", |_self: Ref| { - let output: f32 = AxisSettings::livezone_upperbound(_self).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::livezone_upperbound( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_livezone_upperbound", |_self: Mut, value: f32| { - let output: f32 = AxisSettings::set_livezone_upperbound(_self, value) + let output: f32 = bevy::input::gamepad::AxisSettings::set_livezone_upperbound( + _self, + value, + ) .into(); output }, @@ -850,14 +1019,20 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "deadzone_upperbound", |_self: Ref| { - let output: f32 = AxisSettings::deadzone_upperbound(_self).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::deadzone_upperbound( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_deadzone_upperbound", |_self: Mut, value: f32| { - let output: f32 = AxisSettings::set_deadzone_upperbound(_self, value) + let output: f32 = bevy::input::gamepad::AxisSettings::set_deadzone_upperbound( + _self, + value, + ) .into(); output }, @@ -865,14 +1040,20 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "livezone_lowerbound", |_self: Ref| { - let output: f32 = AxisSettings::livezone_lowerbound(_self).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::livezone_lowerbound( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_livezone_lowerbound", |_self: Mut, value: f32| { - let output: f32 = AxisSettings::set_livezone_lowerbound(_self, value) + let output: f32 = bevy::input::gamepad::AxisSettings::set_livezone_lowerbound( + _self, + value, + ) .into(); output }, @@ -880,14 +1061,20 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "deadzone_lowerbound", |_self: Ref| { - let output: f32 = AxisSettings::deadzone_lowerbound(_self).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::deadzone_lowerbound( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_deadzone_lowerbound", |_self: Mut, value: f32| { - let output: f32 = AxisSettings::set_deadzone_lowerbound(_self, value) + let output: f32 = bevy::input::gamepad::AxisSettings::set_deadzone_lowerbound( + _self, + value, + ) .into(); output }, @@ -895,21 +1082,32 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "threshold", |_self: Ref| { - let output: f32 = AxisSettings::threshold(_self).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::threshold( + _self, + ) + .into(); output }, ) .overwrite_script_function( "set_threshold", |_self: Mut, value: f32| { - let output: f32 = AxisSettings::set_threshold(_self, value).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::set_threshold( + _self, + value, + ) + .into(); output }, ) .overwrite_script_function( "clamp", |_self: Ref, new_value: f32| { - let output: f32 = AxisSettings::clamp(_self, new_value).into(); + let output: f32 = bevy::input::gamepad::AxisSettings::clamp( + _self, + new_value, + ) + .into(); output }, ) @@ -920,7 +1118,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { new_value: f32, old_value: std::option::Option| { - let output: std::option::Option = AxisSettings::filter( + let output: std::option::Option = bevy::input::gamepad::AxisSettings::filter( _self, new_value, old_value, @@ -932,14 +1130,14 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AxisSettings::clone( + let output: Val = bevy::input::gamepad::AxisSettings::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "filter", | @@ -947,7 +1145,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { new_value: f32, old_value: std::option::Option| { - let output: std::option::Option = ButtonAxisSettings::filter( + let output: std::option::Option = bevy::input::gamepad::ButtonAxisSettings::filter( _self, new_value, old_value, @@ -959,18 +1157,18 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ButtonAxisSettings::clone( + let output: Val = bevy::input::gamepad::ButtonAxisSettings::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "weak_motor", |intensity: f32| { - let output: Val = GamepadRumbleIntensity::weak_motor( + let output: Val = bevy::input::gamepad::GamepadRumbleIntensity::weak_motor( intensity, ) .into(); @@ -980,7 +1178,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "strong_motor", |intensity: f32| { - let output: Val = GamepadRumbleIntensity::strong_motor( + let output: Val = bevy::input::gamepad::GamepadRumbleIntensity::strong_motor( intensity, ) .into(); @@ -990,7 +1188,7 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GamepadRumbleIntensity::clone( + let output: Val = bevy::input::gamepad::GamepadRumbleIntensity::clone( _self, ) .into(); @@ -1003,22 +1201,31 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GamepadRumbleIntensity::eq(_self, other).into(); + let output: bool = bevy::input::gamepad::GamepadRumbleIntensity::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Key::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::input::keyboard::Key::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Key::clone(_self) + let output: Val = bevy::input::keyboard::Key::clone( + _self, + ) .into(); output }, @@ -1029,25 +1236,30 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Key::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::Key::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = NativeKeyCode::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::NativeKeyCode::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = NativeKeyCode::clone( + let output: Val = bevy::input::keyboard::NativeKeyCode::clone( _self, ) .into(); @@ -1057,26 +1269,31 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = NativeKeyCode::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::keyboard::NativeKeyCode::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = NativeKey::eq(_self, other).into(); + let output: bool = bevy::input::keyboard::NativeKey::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = NativeKey::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::keyboard::NativeKey::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -1084,18 +1301,18 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = NativeKey::clone( + let output: Val = bevy::input::keyboard::NativeKey::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = MouseScrollUnit::clone( + let output: Val = bevy::input::mouse::MouseScrollUnit::clone( _self, ) .into(); @@ -1105,7 +1322,9 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = MouseScrollUnit::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::mouse::MouseScrollUnit::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -1116,15 +1335,21 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = MouseScrollUnit::eq(_self, other).into(); + let output: bool = bevy::input::mouse::MouseScrollUnit::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = TouchPhase::assert_receiver_is_total_eq(_self) + let output: () = bevy::input::touch::TouchPhase::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -1135,25 +1360,26 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = TouchPhase::eq(_self, other).into(); + let output: bool = bevy::input::touch::TouchPhase::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = TouchPhase::clone( + let output: Val = bevy::input::touch::TouchPhase::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ForceTouch::clone( + let output: Val = bevy::input::touch::ForceTouch::clone( _self, ) .into(); @@ -1166,7 +1392,8 @@ impl bevy::app::Plugin for BevyInputScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = ForceTouch::eq(_self, other).into(); + let output: bool = bevy::input::touch::ForceTouch::eq(_self, other) + .into(); output }, ); diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_math.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_math.rs index 8135ba028d..2bf9766268 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_math.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_math.rs @@ -4,7 +4,8 @@ #![cfg_attr(rustfmt, rustfmt_skip)] use super::bevy_reflect::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -12,28 +13,28 @@ pub struct BevyMathScriptingPlugin; impl bevy::app::Plugin for BevyMathScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = AspectRatio::eq(_self, other).into(); + let output: bool = bevy::math::AspectRatio::eq(_self, other).into(); output }, ) .overwrite_script_function( "ratio", |_self: Ref| { - let output: f32 = AspectRatio::ratio(_self).into(); + let output: f32 = bevy::math::AspectRatio::ratio(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = AspectRatio::inverse( + let output: Val = bevy::math::AspectRatio::inverse( _self, ) .into(); @@ -43,37 +44,43 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "is_landscape", |_self: Ref| { - let output: bool = AspectRatio::is_landscape(_self).into(); + let output: bool = bevy::math::AspectRatio::is_landscape(_self) + .into(); output }, ) .overwrite_script_function( "is_portrait", |_self: Ref| { - let output: bool = AspectRatio::is_portrait(_self).into(); + let output: bool = bevy::math::AspectRatio::is_portrait(_self) + .into(); output }, ) .overwrite_script_function( "is_square", |_self: Ref| { - let output: bool = AspectRatio::is_square(_self).into(); + let output: bool = bevy::math::AspectRatio::is_square(_self).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AspectRatio::clone(_self) + let output: Val = bevy::math::AspectRatio::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = CompassOctant::assert_receiver_is_total_eq(_self) + let output: () = bevy::math::CompassOctant::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -81,7 +88,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = CompassOctant::clone( + let output: Val = bevy::math::CompassOctant::clone( _self, ) .into(); @@ -94,15 +101,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = CompassOctant::eq(_self, other).into(); + let output: bool = bevy::math::CompassOctant::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = CompassQuadrant::assert_receiver_is_total_eq(_self) + let output: () = bevy::math::CompassQuadrant::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -113,28 +123,29 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = CompassQuadrant::eq(_self, other).into(); + let output: bool = bevy::math::CompassQuadrant::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = CompassQuadrant::clone( + let output: Val = bevy::math::CompassQuadrant::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", | _self: Val, rhs: Val| { - let output: Val = Isometry2d::mul( + let output: Val = bevy::math::Isometry2d::mul( _self, rhs, ) @@ -145,7 +156,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_rotation", |rotation: Val| { - let output: Val = Isometry2d::from_rotation( + let output: Val = bevy::math::Isometry2d::from_rotation( rotation, ) .into(); @@ -155,7 +166,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_xy", |x: f32, y: f32| { - let output: Val = Isometry2d::from_xy(x, y) + let output: Val = bevy::math::Isometry2d::from_xy( + x, + y, + ) .into(); output }, @@ -163,7 +177,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Isometry2d::inverse(_self) + let output: Val = bevy::math::Isometry2d::inverse( + _self, + ) .into(); output }, @@ -171,7 +187,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inverse_mul", |_self: Ref, rhs: Val| { - let output: Val = Isometry2d::inverse_mul( + let output: Val = bevy::math::Isometry2d::inverse_mul( _self, rhs, ) @@ -182,7 +198,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Isometry2d::clone(_self) + let output: Val = bevy::math::Isometry2d::clone( + _self, + ) .into(); output }, @@ -190,7 +208,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Isometry2d::mul(_self, rhs) + let output: Val = bevy::math::Isometry2d::mul( + _self, + rhs, + ) .into(); output }, @@ -198,15 +219,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Isometry2d::eq(_self, other).into(); + let output: bool = bevy::math::Isometry2d::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_xyz", |x: f32, y: f32, z: f32| { - let output: Val = Isometry3d::from_xyz( + let output: Val = bevy::math::Isometry3d::from_xyz( x, y, z, @@ -218,7 +239,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Isometry3d::inverse(_self) + let output: Val = bevy::math::Isometry3d::inverse( + _self, + ) .into(); output }, @@ -226,7 +249,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inverse_mul", |_self: Ref, rhs: Val| { - let output: Val = Isometry3d::inverse_mul( + let output: Val = bevy::math::Isometry3d::inverse_mul( _self, rhs, ) @@ -237,7 +260,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Isometry3d::clone(_self) + let output: Val = bevy::math::Isometry3d::clone( + _self, + ) .into(); output }, @@ -245,7 +270,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Isometry3d::mul(_self, rhs) + let output: Val = bevy::math::Isometry3d::mul( + _self, + rhs, + ) .into(); output }, @@ -256,7 +284,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Val, rhs: Val| { - let output: Val = Isometry3d::mul( + let output: Val = bevy::math::Isometry3d::mul( _self, rhs, ) @@ -267,66 +295,77 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Isometry3d::eq(_self, other).into(); + let output: bool = bevy::math::Isometry3d::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Ray2d::clone(_self).into(); + let output: Val = bevy::math::Ray2d::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Ray2d::eq(_self, other).into(); + let output: bool = bevy::math::Ray2d::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Ray3d::eq(_self, other).into(); + let output: bool = bevy::math::Ray3d::eq(_self, other).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Ray3d::clone(_self).into(); + let output: Val = bevy::math::Ray3d::clone(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Rot2::mul(_self, rhs).into(); + let output: Val = bevy::math::Rot2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "radians", |radians: f32| { - let output: Val = Rot2::radians(radians).into(); + let output: Val = bevy::math::Rot2::radians( + radians, + ) + .into(); output }, ) .overwrite_script_function( "degrees", |degrees: f32| { - let output: Val = Rot2::degrees(degrees).into(); + let output: Val = bevy::math::Rot2::degrees( + degrees, + ) + .into(); output }, ) .overwrite_script_function( "turn_fraction", |fraction: f32| { - let output: Val = Rot2::turn_fraction(fraction) + let output: Val = bevy::math::Rot2::turn_fraction( + fraction, + ) .into(); output }, @@ -334,7 +373,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_sin_cos", |sin: f32, cos: f32| { - let output: Val = Rot2::from_sin_cos(sin, cos) + let output: Val = bevy::math::Rot2::from_sin_cos( + sin, + cos, + ) .into(); output }, @@ -342,63 +384,68 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_radians", |_self: Val| { - let output: f32 = Rot2::as_radians(_self).into(); + let output: f32 = bevy::math::Rot2::as_radians(_self).into(); output }, ) .overwrite_script_function( "as_degrees", |_self: Val| { - let output: f32 = Rot2::as_degrees(_self).into(); + let output: f32 = bevy::math::Rot2::as_degrees(_self).into(); output }, ) .overwrite_script_function( "as_turn_fraction", |_self: Val| { - let output: f32 = Rot2::as_turn_fraction(_self).into(); + let output: f32 = bevy::math::Rot2::as_turn_fraction(_self).into(); output }, ) .overwrite_script_function( "sin_cos", |_self: Val| { - let output: (f32, f32) = Rot2::sin_cos(_self).into(); + let output: (f32, f32) = bevy::math::Rot2::sin_cos(_self).into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Rot2::length(_self).into(); + let output: f32 = bevy::math::Rot2::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Rot2::length_squared(_self).into(); + let output: f32 = bevy::math::Rot2::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Rot2::length_recip(_self).into(); + let output: f32 = bevy::math::Rot2::length_recip(_self).into(); output }, ) .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Rot2::normalize(_self).into(); + let output: Val = bevy::math::Rot2::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "fast_renormalize", |_self: Val| { - let output: Val = Rot2::fast_renormalize(_self) + let output: Val = bevy::math::Rot2::fast_renormalize( + _self, + ) .into(); output }, @@ -406,56 +453,62 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Rot2::is_finite(_self).into(); + let output: bool = bevy::math::Rot2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Rot2::is_nan(_self).into(); + let output: bool = bevy::math::Rot2::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Rot2::is_normalized(_self).into(); + let output: bool = bevy::math::Rot2::is_normalized(_self).into(); output }, ) .overwrite_script_function( "is_near_identity", |_self: Val| { - let output: bool = Rot2::is_near_identity(_self).into(); + let output: bool = bevy::math::Rot2::is_near_identity(_self).into(); output }, ) .overwrite_script_function( "angle_between", |_self: Val, other: Val| { - let output: f32 = Rot2::angle_between(_self, other).into(); + let output: f32 = bevy::math::Rot2::angle_between(_self, other) + .into(); output }, ) .overwrite_script_function( "angle_to", |_self: Val, other: Val| { - let output: f32 = Rot2::angle_to(_self, other).into(); + let output: f32 = bevy::math::Rot2::angle_to(_self, other).into(); output }, ) .overwrite_script_function( "inverse", |_self: Val| { - let output: Val = Rot2::inverse(_self).into(); + let output: Val = bevy::math::Rot2::inverse(_self) + .into(); output }, ) .overwrite_script_function( "nlerp", |_self: Val, end: Val, s: f32| { - let output: Val = Rot2::nlerp(_self, end, s) + let output: Val = bevy::math::Rot2::nlerp( + _self, + end, + s, + ) .into(); output }, @@ -463,7 +516,11 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "slerp", |_self: Val, end: Val, s: f32| { - let output: Val = Rot2::slerp(_self, end, s) + let output: Val = bevy::math::Rot2::slerp( + _self, + end, + s, + ) .into(); output }, @@ -474,7 +531,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Val, direction: Val| { - let output: Val = Rot2::mul( + let output: Val = bevy::math::Rot2::mul( _self, direction, ) @@ -485,22 +542,25 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Rot2::eq(_self, other).into(); + let output: bool = bevy::math::Rot2::eq(_self, other).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Rot2::clone(_self).into(); + let output: Val = bevy::math::Rot2::clone(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Dir2::clone(_self) + let output: Val = bevy::math::prelude::Dir2::clone( + _self, + ) .into(); output }, @@ -508,7 +568,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_xy_unchecked", |x: f32, y: f32| { - let output: Val = Dir2::from_xy_unchecked( + let output: Val = bevy::math::prelude::Dir2::from_xy_unchecked( x, y, ) @@ -523,7 +583,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { rhs: Val, s: f32| { - let output: Val = Dir2::slerp( + let output: Val = bevy::math::prelude::Dir2::slerp( _self, rhs, s, @@ -538,7 +598,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Val, other: Val| { - let output: Val = Dir2::rotation_to(_self, other) + let output: Val = bevy::math::prelude::Dir2::rotation_to( + _self, + other, + ) .into(); output }, @@ -549,7 +612,10 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Val, other: Val| { - let output: Val = Dir2::rotation_from(_self, other) + let output: Val = bevy::math::prelude::Dir2::rotation_from( + _self, + other, + ) .into(); output }, @@ -557,7 +623,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "rotation_from_x", |_self: Val| { - let output: Val = Dir2::rotation_from_x(_self) + let output: Val = bevy::math::prelude::Dir2::rotation_from_x( + _self, + ) .into(); output }, @@ -565,7 +633,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "rotation_to_x", |_self: Val| { - let output: Val = Dir2::rotation_to_x(_self) + let output: Val = bevy::math::prelude::Dir2::rotation_to_x( + _self, + ) .into(); output }, @@ -573,7 +643,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "rotation_from_y", |_self: Val| { - let output: Val = Dir2::rotation_from_y(_self) + let output: Val = bevy::math::prelude::Dir2::rotation_from_y( + _self, + ) .into(); output }, @@ -581,7 +653,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "rotation_to_y", |_self: Val| { - let output: Val = Dir2::rotation_to_y(_self) + let output: Val = bevy::math::prelude::Dir2::rotation_to_y( + _self, + ) .into(); output }, @@ -589,7 +663,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "fast_renormalize", |_self: Val| { - let output: Val = Dir2::fast_renormalize( + let output: Val = bevy::math::prelude::Dir2::fast_renormalize( _self, ) .into(); @@ -602,29 +676,38 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Dir2::eq(_self, other).into(); + let output: bool = bevy::math::prelude::Dir2::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Dir2::neg(_self).into(); + let output: Val = bevy::math::prelude::Dir2::neg( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Dir3::neg(_self).into(); + let output: Val = bevy::math::prelude::Dir3::neg( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Dir3::clone(_self) + let output: Val = bevy::math::prelude::Dir3::clone( + _self, + ) .into(); output }, @@ -635,14 +718,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Dir3::eq(_self, other).into(); + let output: bool = bevy::math::prelude::Dir3::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "from_xyz_unchecked", |x: f32, y: f32, z: f32| { - let output: Val = Dir3::from_xyz_unchecked( + let output: Val = bevy::math::prelude::Dir3::from_xyz_unchecked( x, y, z, @@ -658,7 +742,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { rhs: Val, s: f32| { - let output: Val = Dir3::slerp( + let output: Val = bevy::math::prelude::Dir3::slerp( _self, rhs, s, @@ -670,18 +754,20 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "fast_renormalize", |_self: Val| { - let output: Val = Dir3::fast_renormalize( + let output: Val = bevy::math::prelude::Dir3::fast_renormalize( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Dir3A::clone(_self) + let output: Val = bevy::math::prelude::Dir3A::clone( + _self, + ) .into(); output }, @@ -689,7 +775,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Dir3A::neg(_self) + let output: Val = bevy::math::prelude::Dir3A::neg( + _self, + ) .into(); output }, @@ -700,14 +788,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Dir3A::eq(_self, other).into(); + let output: bool = bevy::math::prelude::Dir3A::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "from_xyz_unchecked", |x: f32, y: f32, z: f32| { - let output: Val = Dir3A::from_xyz_unchecked( + let output: Val = bevy::math::prelude::Dir3A::from_xyz_unchecked( x, y, z, @@ -723,7 +812,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { rhs: Val, s: f32| { - let output: Val = Dir3A::slerp( + let output: Val = bevy::math::prelude::Dir3A::slerp( _self, rhs, s, @@ -735,35 +824,41 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "fast_renormalize", |_self: Val| { - let output: Val = Dir3A::fast_renormalize( + let output: Val = bevy::math::prelude::Dir3A::fast_renormalize( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = IRect::eq(_self, other).into(); + let output: bool = bevy::math::prelude::IRect::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = IRect::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::prelude::IRect::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = IRect::clone(_self) + let output: Val = bevy::math::prelude::IRect::clone( + _self, + ) .into(); output }, @@ -771,7 +866,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "new", |x0: i32, y0: i32, x1: i32, y1: i32| { - let output: Val = IRect::new( + let output: Val = bevy::math::prelude::IRect::new( x0, y0, x1, @@ -784,21 +879,22 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "is_empty", |_self: Ref| { - let output: bool = IRect::is_empty(_self).into(); + let output: bool = bevy::math::prelude::IRect::is_empty(_self) + .into(); output }, ) .overwrite_script_function( "width", |_self: Ref| { - let output: i32 = IRect::width(_self).into(); + let output: i32 = bevy::math::prelude::IRect::width(_self).into(); output }, ) .overwrite_script_function( "height", |_self: Ref| { - let output: i32 = IRect::height(_self).into(); + let output: i32 = bevy::math::prelude::IRect::height(_self).into(); output }, ) @@ -808,7 +904,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = IRect::union( + let output: Val = bevy::math::prelude::IRect::union( _self, other, ) @@ -822,7 +918,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = IRect::intersect( + let output: Val = bevy::math::prelude::IRect::intersect( _self, other, ) @@ -833,7 +929,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inflate", |_self: Ref, expansion: i32| { - let output: Val = IRect::inflate( + let output: Val = bevy::math::prelude::IRect::inflate( _self, expansion, ) @@ -844,7 +940,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_rect", |_self: Ref| { - let output: Val = IRect::as_rect(_self) + let output: Val = bevy::math::prelude::IRect::as_rect( + _self, + ) .into(); output }, @@ -852,26 +950,29 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_urect", |_self: Ref| { - let output: Val = IRect::as_urect(_self) + let output: Val = bevy::math::prelude::IRect::as_urect( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Rect::eq(_self, other).into(); + let output: bool = bevy::math::prelude::Rect::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |x0: f32, y0: f32, x1: f32, y1: f32| { - let output: Val = Rect::new( + let output: Val = bevy::math::prelude::Rect::new( x0, y0, x1, @@ -884,21 +985,21 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "is_empty", |_self: Ref| { - let output: bool = Rect::is_empty(_self).into(); + let output: bool = bevy::math::prelude::Rect::is_empty(_self).into(); output }, ) .overwrite_script_function( "width", |_self: Ref| { - let output: f32 = Rect::width(_self).into(); + let output: f32 = bevy::math::prelude::Rect::width(_self).into(); output }, ) .overwrite_script_function( "height", |_self: Ref| { - let output: f32 = Rect::height(_self).into(); + let output: f32 = bevy::math::prelude::Rect::height(_self).into(); output }, ) @@ -908,7 +1009,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = Rect::union( + let output: Val = bevy::math::prelude::Rect::union( _self, other, ) @@ -922,7 +1023,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = Rect::intersect( + let output: Val = bevy::math::prelude::Rect::intersect( _self, other, ) @@ -933,7 +1034,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inflate", |_self: Ref, expansion: f32| { - let output: Val = Rect::inflate( + let output: Val = bevy::math::prelude::Rect::inflate( _self, expansion, ) @@ -947,7 +1048,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = Rect::normalize( + let output: Val = bevy::math::prelude::Rect::normalize( _self, other, ) @@ -958,7 +1059,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_irect", |_self: Ref| { - let output: Val = Rect::as_irect(_self) + let output: Val = bevy::math::prelude::Rect::as_irect( + _self, + ) .into(); output }, @@ -966,7 +1069,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_urect", |_self: Ref| { - let output: Val = Rect::as_urect(_self) + let output: Val = bevy::math::prelude::Rect::as_urect( + _self, + ) .into(); output }, @@ -974,26 +1079,29 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Rect::clone(_self) + let output: Val = bevy::math::prelude::Rect::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = URect::eq(_self, other).into(); + let output: bool = bevy::math::prelude::URect::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |x0: u32, y0: u32, x1: u32, y1: u32| { - let output: Val = URect::new( + let output: Val = bevy::math::prelude::URect::new( x0, y0, x1, @@ -1006,21 +1114,22 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "is_empty", |_self: Ref| { - let output: bool = URect::is_empty(_self).into(); + let output: bool = bevy::math::prelude::URect::is_empty(_self) + .into(); output }, ) .overwrite_script_function( "width", |_self: Ref| { - let output: u32 = URect::width(_self).into(); + let output: u32 = bevy::math::prelude::URect::width(_self).into(); output }, ) .overwrite_script_function( "height", |_self: Ref| { - let output: u32 = URect::height(_self).into(); + let output: u32 = bevy::math::prelude::URect::height(_self).into(); output }, ) @@ -1030,7 +1139,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = URect::union( + let output: Val = bevy::math::prelude::URect::union( _self, other, ) @@ -1044,7 +1153,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Val| { - let output: Val = URect::intersect( + let output: Val = bevy::math::prelude::URect::intersect( _self, other, ) @@ -1055,7 +1164,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inflate", |_self: Ref, expansion: i32| { - let output: Val = URect::inflate( + let output: Val = bevy::math::prelude::URect::inflate( _self, expansion, ) @@ -1066,7 +1175,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_rect", |_self: Ref| { - let output: Val = URect::as_rect(_self) + let output: Val = bevy::math::prelude::URect::as_rect( + _self, + ) .into(); output }, @@ -1074,7 +1185,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "as_irect", |_self: Ref| { - let output: Val = URect::as_irect(_self) + let output: Val = bevy::math::prelude::URect::as_irect( + _self, + ) .into(); output }, @@ -1082,7 +1195,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = URect::clone(_self) + let output: Val = bevy::math::prelude::URect::clone( + _self, + ) .into(); output }, @@ -1090,16 +1205,19 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = URect::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::prelude::URect::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world); + NamespaceBuilder::::new(world) .overwrite_script_function( "bounding_circle", |_self: Ref| { - let output: Val = Aabb2d::bounding_circle( + let output: Val = bevy::math::bounding::Aabb2d::bounding_circle( _self, ) .into(); @@ -1109,23 +1227,26 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Aabb2d::clone(_self) + let output: Val = bevy::math::bounding::Aabb2d::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "radius", |_self: Ref| { - let output: f32 = BoundingCircle::radius(_self).into(); + let output: f32 = bevy::math::bounding::BoundingCircle::radius(_self) + .into(); output }, ) .overwrite_script_function( "aabb_2d", |_self: Ref| { - let output: Val = BoundingCircle::aabb_2d( + let output: Val = bevy::math::bounding::BoundingCircle::aabb_2d( _self, ) .into(); @@ -1135,28 +1256,31 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BoundingCircle::clone( + let output: Val = bevy::math::bounding::BoundingCircle::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Circle::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Circle::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |radius: f32| { - let output: Val = Circle::new(radius) + let output: Val = bevy::math::primitives::Circle::new( + radius, + ) .into(); output }, @@ -1164,25 +1288,26 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "diameter", |_self: Ref| { - let output: f32 = Circle::diameter(_self).into(); + let output: f32 = bevy::math::primitives::Circle::diameter(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Circle::clone( + let output: Val = bevy::math::primitives::Circle::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Annulus::clone( + let output: Val = bevy::math::primitives::Annulus::clone( _self, ) .into(); @@ -1195,14 +1320,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Annulus::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Annulus::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |inner_radius: f32, outer_radius: f32| { - let output: Val = Annulus::new( + let output: Val = bevy::math::primitives::Annulus::new( inner_radius, outer_radius, ) @@ -1213,22 +1339,24 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "diameter", |_self: Ref| { - let output: f32 = Annulus::diameter(_self).into(); + let output: f32 = bevy::math::primitives::Annulus::diameter(_self) + .into(); output }, ) .overwrite_script_function( "thickness", |_self: Ref| { - let output: f32 = Annulus::thickness(_self).into(); + let output: f32 = bevy::math::primitives::Annulus::thickness(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |radius: f32, half_angle: f32| { - let output: Val = Arc2d::new( + let output: Val = bevy::math::primitives::Arc2d::new( radius, half_angle, ) @@ -1239,7 +1367,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_radians", |radius: f32, angle: f32| { - let output: Val = Arc2d::from_radians( + let output: Val = bevy::math::primitives::Arc2d::from_radians( radius, angle, ) @@ -1250,7 +1378,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_degrees", |radius: f32, angle: f32| { - let output: Val = Arc2d::from_degrees( + let output: Val = bevy::math::primitives::Arc2d::from_degrees( radius, angle, ) @@ -1261,7 +1389,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_turns", |radius: f32, fraction: f32| { - let output: Val = Arc2d::from_turns( + let output: Val = bevy::math::primitives::Arc2d::from_turns( radius, fraction, ) @@ -1272,63 +1400,74 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "angle", |_self: Ref| { - let output: f32 = Arc2d::angle(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::angle(_self).into(); output }, ) .overwrite_script_function( "length", |_self: Ref| { - let output: f32 = Arc2d::length(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::length(_self) + .into(); output }, ) .overwrite_script_function( "half_chord_length", |_self: Ref| { - let output: f32 = Arc2d::half_chord_length(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::half_chord_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "chord_length", |_self: Ref| { - let output: f32 = Arc2d::chord_length(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::chord_length(_self) + .into(); output }, ) .overwrite_script_function( "apothem", |_self: Ref| { - let output: f32 = Arc2d::apothem(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::apothem(_self) + .into(); output }, ) .overwrite_script_function( "sagitta", |_self: Ref| { - let output: f32 = Arc2d::sagitta(_self).into(); + let output: f32 = bevy::math::primitives::Arc2d::sagitta(_self) + .into(); output }, ) .overwrite_script_function( "is_minor", |_self: Ref| { - let output: bool = Arc2d::is_minor(_self).into(); + let output: bool = bevy::math::primitives::Arc2d::is_minor(_self) + .into(); output }, ) .overwrite_script_function( "is_major", |_self: Ref| { - let output: bool = Arc2d::is_major(_self).into(); + let output: bool = bevy::math::primitives::Arc2d::is_major(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Arc2d::clone(_self) + let output: Val = bevy::math::primitives::Arc2d::clone( + _self, + ) .into(); output }, @@ -1339,15 +1478,16 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Arc2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Arc2d::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |radius: f32, length: f32| { - let output: Val = Capsule2d::new( + let output: Val = bevy::math::primitives::Capsule2d::new( radius, length, ) @@ -1358,7 +1498,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "to_inner_rectangle", |_self: Ref| { - let output: Val = Capsule2d::to_inner_rectangle( + let output: Val = bevy::math::primitives::Capsule2d::to_inner_rectangle( _self, ) .into(); @@ -1371,35 +1511,43 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Capsule2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Capsule2d::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Capsule2d::clone( + let output: Val = bevy::math::primitives::Capsule2d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = CircularSector::eq(_self, other).into(); + let output: bool = bevy::math::primitives::CircularSector::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "new", |radius: f32, angle: f32| { - let output: Val = CircularSector::new( + let output: Val = bevy::math::primitives::CircularSector::new( radius, angle, ) @@ -1410,7 +1558,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_radians", |radius: f32, angle: f32| { - let output: Val = CircularSector::from_radians( + let output: Val = bevy::math::primitives::CircularSector::from_radians( radius, angle, ) @@ -1421,7 +1569,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_degrees", |radius: f32, angle: f32| { - let output: Val = CircularSector::from_degrees( + let output: Val = bevy::math::primitives::CircularSector::from_degrees( radius, angle, ) @@ -1432,7 +1580,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_turns", |radius: f32, fraction: f32| { - let output: Val = CircularSector::from_turns( + let output: Val = bevy::math::primitives::CircularSector::from_turns( radius, fraction, ) @@ -1443,74 +1591,98 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "half_angle", |_self: Ref| { - let output: f32 = CircularSector::half_angle(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::half_angle( + _self, + ) + .into(); output }, ) .overwrite_script_function( "angle", |_self: Ref| { - let output: f32 = CircularSector::angle(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::angle( + _self, + ) + .into(); output }, ) .overwrite_script_function( "radius", |_self: Ref| { - let output: f32 = CircularSector::radius(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::radius( + _self, + ) + .into(); output }, ) .overwrite_script_function( "arc_length", |_self: Ref| { - let output: f32 = CircularSector::arc_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::arc_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "half_chord_length", |_self: Ref| { - let output: f32 = CircularSector::half_chord_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::half_chord_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "chord_length", |_self: Ref| { - let output: f32 = CircularSector::chord_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::chord_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "apothem", |_self: Ref| { - let output: f32 = CircularSector::apothem(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::apothem( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sagitta", |_self: Ref| { - let output: f32 = CircularSector::sagitta(_self).into(); + let output: f32 = bevy::math::primitives::CircularSector::sagitta( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = CircularSector::clone( + let output: Val = bevy::math::primitives::CircularSector::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |radius: f32, angle: f32| { - let output: Val = CircularSegment::new( + let output: Val = bevy::math::primitives::CircularSegment::new( radius, angle, ) @@ -1521,7 +1693,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_radians", |radius: f32, angle: f32| { - let output: Val = CircularSegment::from_radians( + let output: Val = bevy::math::primitives::CircularSegment::from_radians( radius, angle, ) @@ -1532,7 +1704,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_degrees", |radius: f32, angle: f32| { - let output: Val = CircularSegment::from_degrees( + let output: Val = bevy::math::primitives::CircularSegment::from_degrees( radius, angle, ) @@ -1543,7 +1715,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_turns", |radius: f32, fraction: f32| { - let output: Val = CircularSegment::from_turns( + let output: Val = bevy::math::primitives::CircularSegment::from_turns( radius, fraction, ) @@ -1554,63 +1726,87 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "half_angle", |_self: Ref| { - let output: f32 = CircularSegment::half_angle(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::half_angle( + _self, + ) + .into(); output }, ) .overwrite_script_function( "angle", |_self: Ref| { - let output: f32 = CircularSegment::angle(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::angle( + _self, + ) + .into(); output }, ) .overwrite_script_function( "radius", |_self: Ref| { - let output: f32 = CircularSegment::radius(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::radius( + _self, + ) + .into(); output }, ) .overwrite_script_function( "arc_length", |_self: Ref| { - let output: f32 = CircularSegment::arc_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::arc_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "half_chord_length", |_self: Ref| { - let output: f32 = CircularSegment::half_chord_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::half_chord_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "chord_length", |_self: Ref| { - let output: f32 = CircularSegment::chord_length(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::chord_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "apothem", |_self: Ref| { - let output: f32 = CircularSegment::apothem(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::apothem( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sagitta", |_self: Ref| { - let output: f32 = CircularSegment::sagitta(_self).into(); + let output: f32 = bevy::math::primitives::CircularSegment::sagitta( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = CircularSegment::clone( + let output: Val = bevy::math::primitives::CircularSegment::clone( _self, ) .into(); @@ -1623,25 +1819,30 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = CircularSegment::eq(_self, other).into(); + let output: bool = bevy::math::primitives::CircularSegment::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Ellipse::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Ellipse::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |half_width: f32, half_height: f32| { - let output: Val = Ellipse::new( + let output: Val = bevy::math::primitives::Ellipse::new( half_width, half_height, ) @@ -1652,46 +1853,54 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "eccentricity", |_self: Ref| { - let output: f32 = Ellipse::eccentricity(_self).into(); + let output: f32 = bevy::math::primitives::Ellipse::eccentricity( + _self, + ) + .into(); output }, ) .overwrite_script_function( "focal_length", |_self: Ref| { - let output: f32 = Ellipse::focal_length(_self).into(); + let output: f32 = bevy::math::primitives::Ellipse::focal_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "semi_major", |_self: Ref| { - let output: f32 = Ellipse::semi_major(_self).into(); + let output: f32 = bevy::math::primitives::Ellipse::semi_major(_self) + .into(); output }, ) .overwrite_script_function( "semi_minor", |_self: Ref| { - let output: f32 = Ellipse::semi_minor(_self).into(); + let output: f32 = bevy::math::primitives::Ellipse::semi_minor(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Ellipse::clone( + let output: Val = bevy::math::primitives::Ellipse::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Line2d::clone( + let output: Val = bevy::math::primitives::Line2d::clone( _self, ) .into(); @@ -1704,15 +1913,16 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Line2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Line2d::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Plane2d::clone( + let output: Val = bevy::math::primitives::Plane2d::clone( _self, ) .into(); @@ -1725,25 +1935,30 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Plane2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Plane2d::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Rectangle::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Rectangle::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "new", |width: f32, height: f32| { - let output: Val = Rectangle::new( + let output: Val = bevy::math::primitives::Rectangle::new( width, height, ) @@ -1754,7 +1969,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_length", |length: f32| { - let output: Val = Rectangle::from_length( + let output: Val = bevy::math::primitives::Rectangle::from_length( length, ) .into(); @@ -1764,18 +1979,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Rectangle::clone( + let output: Val = bevy::math::primitives::Rectangle::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RegularPolygon::clone( + let output: Val = bevy::math::primitives::RegularPolygon::clone( _self, ) .into(); @@ -1785,7 +2000,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "new", |circumradius: f32, sides: u32| { - let output: Val = RegularPolygon::new( + let output: Val = bevy::math::primitives::RegularPolygon::new( circumradius, sides, ) @@ -1796,28 +2011,39 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "circumradius", |_self: Ref| { - let output: f32 = RegularPolygon::circumradius(_self).into(); + let output: f32 = bevy::math::primitives::RegularPolygon::circumradius( + _self, + ) + .into(); output }, ) .overwrite_script_function( "inradius", |_self: Ref| { - let output: f32 = RegularPolygon::inradius(_self).into(); + let output: f32 = bevy::math::primitives::RegularPolygon::inradius( + _self, + ) + .into(); output }, ) .overwrite_script_function( "side_length", |_self: Ref| { - let output: f32 = RegularPolygon::side_length(_self).into(); + let output: f32 = bevy::math::primitives::RegularPolygon::side_length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "internal_angle_degrees", |_self: Ref| { - let output: f32 = RegularPolygon::internal_angle_degrees(_self) + let output: f32 = bevy::math::primitives::RegularPolygon::internal_angle_degrees( + _self, + ) .into(); output }, @@ -1825,7 +2051,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "internal_angle_radians", |_self: Ref| { - let output: f32 = RegularPolygon::internal_angle_radians(_self) + let output: f32 = bevy::math::primitives::RegularPolygon::internal_angle_radians( + _self, + ) .into(); output }, @@ -1833,7 +2061,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "external_angle_degrees", |_self: Ref| { - let output: f32 = RegularPolygon::external_angle_degrees(_self) + let output: f32 = bevy::math::primitives::RegularPolygon::external_angle_degrees( + _self, + ) .into(); output }, @@ -1841,7 +2071,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "external_angle_radians", |_self: Ref| { - let output: f32 = RegularPolygon::external_angle_radians(_self) + let output: f32 = bevy::math::primitives::RegularPolygon::external_angle_radians( + _self, + ) .into(); output }, @@ -1852,25 +2084,30 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = RegularPolygon::eq(_self, other).into(); + let output: bool = bevy::math::primitives::RegularPolygon::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Rhombus::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Rhombus::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |horizontal_diagonal: f32, vertical_diagonal: f32| { - let output: Val = Rhombus::new( + let output: Val = bevy::math::primitives::Rhombus::new( horizontal_diagonal, vertical_diagonal, ) @@ -1881,7 +2118,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_side", |side: f32| { - let output: Val = Rhombus::from_side( + let output: Val = bevy::math::primitives::Rhombus::from_side( side, ) .into(); @@ -1891,7 +2128,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_inradius", |inradius: f32| { - let output: Val = Rhombus::from_inradius( + let output: Val = bevy::math::primitives::Rhombus::from_inradius( inradius, ) .into(); @@ -1901,49 +2138,58 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "side", |_self: Ref| { - let output: f32 = Rhombus::side(_self).into(); + let output: f32 = bevy::math::primitives::Rhombus::side(_self) + .into(); output }, ) .overwrite_script_function( "circumradius", |_self: Ref| { - let output: f32 = Rhombus::circumradius(_self).into(); + let output: f32 = bevy::math::primitives::Rhombus::circumradius( + _self, + ) + .into(); output }, ) .overwrite_script_function( "inradius", |_self: Ref| { - let output: f32 = Rhombus::inradius(_self).into(); + let output: f32 = bevy::math::primitives::Rhombus::inradius(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Rhombus::clone( + let output: Val = bevy::math::primitives::Rhombus::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Segment2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Segment2d::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "new", |direction: Val, length: f32| { - let output: Val = Segment2d::new( + let output: Val = bevy::math::primitives::Segment2d::new( direction, length, ) @@ -1954,46 +2200,56 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Segment2d::clone( + let output: Val = bevy::math::primitives::Segment2d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "is_degenerate", |_self: Ref| { - let output: bool = Triangle2d::is_degenerate(_self).into(); + let output: bool = bevy::math::primitives::Triangle2d::is_degenerate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_acute", |_self: Ref| { - let output: bool = Triangle2d::is_acute(_self).into(); + let output: bool = bevy::math::primitives::Triangle2d::is_acute( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_obtuse", |_self: Ref| { - let output: bool = Triangle2d::is_obtuse(_self).into(); + let output: bool = bevy::math::primitives::Triangle2d::is_obtuse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "reverse", |_self: Mut| { - let output: () = Triangle2d::reverse(_self).into(); + let output: () = bevy::math::primitives::Triangle2d::reverse(_self) + .into(); output }, ) .overwrite_script_function( "reversed", |_self: Val| { - let output: Val = Triangle2d::reversed( + let output: Val = bevy::math::primitives::Triangle2d::reversed( _self, ) .into(); @@ -2003,7 +2259,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Triangle2d::clone( + let output: Val = bevy::math::primitives::Triangle2d::clone( _self, ) .into(); @@ -2016,15 +2272,21 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Triangle2d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Triangle2d::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Aabb3d::clone(_self) + let output: Val = bevy::math::bounding::Aabb3d::clone( + _self, + ) .into(); output }, @@ -2032,25 +2294,26 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "bounding_sphere", |_self: Ref| { - let output: Val = Aabb3d::bounding_sphere( + let output: Val = bevy::math::bounding::Aabb3d::bounding_sphere( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "radius", |_self: Ref| { - let output: f32 = BoundingSphere::radius(_self).into(); + let output: f32 = bevy::math::bounding::BoundingSphere::radius(_self) + .into(); output }, ) .overwrite_script_function( "aabb_3d", |_self: Ref| { - let output: Val = BoundingSphere::aabb_3d( + let output: Val = bevy::math::bounding::BoundingSphere::aabb_3d( _self, ) .into(); @@ -2060,28 +2323,29 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BoundingSphere::clone( + let output: Val = bevy::math::bounding::BoundingSphere::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Sphere::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Sphere::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Sphere::clone( + let output: Val = bevy::math::primitives::Sphere::clone( _self, ) .into(); @@ -2091,7 +2355,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "new", |radius: f32| { - let output: Val = Sphere::new(radius) + let output: Val = bevy::math::primitives::Sphere::new( + radius, + ) .into(); output }, @@ -2099,15 +2365,16 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "diameter", |_self: Ref| { - let output: f32 = Sphere::diameter(_self).into(); + let output: f32 = bevy::math::primitives::Sphere::diameter(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Cuboid::clone( + let output: Val = bevy::math::primitives::Cuboid::clone( _self, ) .into(); @@ -2120,14 +2387,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Cuboid::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Cuboid::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |x_length: f32, y_length: f32, z_length: f32| { - let output: Val = Cuboid::new( + let output: Val = bevy::math::primitives::Cuboid::new( x_length, y_length, z_length, @@ -2139,18 +2407,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_length", |length: f32| { - let output: Val = Cuboid::from_length( + let output: Val = bevy::math::primitives::Cuboid::from_length( length, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Cylinder::clone( + let output: Val = bevy::math::primitives::Cylinder::clone( _self, ) .into(); @@ -2163,14 +2431,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Cylinder::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Cylinder::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |radius: f32, height: f32| { - let output: Val = Cylinder::new( + let output: Val = bevy::math::primitives::Cylinder::new( radius, height, ) @@ -2181,7 +2450,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "base", |_self: Ref| { - let output: Val = Cylinder::base( + let output: Val = bevy::math::primitives::Cylinder::base( _self, ) .into(); @@ -2191,22 +2460,26 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "lateral_area", |_self: Ref| { - let output: f32 = Cylinder::lateral_area(_self).into(); + let output: f32 = bevy::math::primitives::Cylinder::lateral_area( + _self, + ) + .into(); output }, ) .overwrite_script_function( "base_area", |_self: Ref| { - let output: f32 = Cylinder::base_area(_self).into(); + let output: f32 = bevy::math::primitives::Cylinder::base_area(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Capsule3d::clone( + let output: Val = bevy::math::primitives::Capsule3d::clone( _self, ) .into(); @@ -2219,14 +2492,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Capsule3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Capsule3d::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "new", |radius: f32, length: f32| { - let output: Val = Capsule3d::new( + let output: Val = bevy::math::primitives::Capsule3d::new( radius, length, ) @@ -2237,18 +2514,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "to_cylinder", |_self: Ref| { - let output: Val = Capsule3d::to_cylinder( + let output: Val = bevy::math::primitives::Capsule3d::to_cylinder( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |radius: f32, height: f32| { - let output: Val = Cone::new( + let output: Val = bevy::math::primitives::Cone::new( radius, height, ) @@ -2259,7 +2536,9 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "base", |_self: Ref| { - let output: Val = Cone::base(_self) + let output: Val = bevy::math::primitives::Cone::base( + _self, + ) .into(); output }, @@ -2267,28 +2546,33 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "slant_height", |_self: Ref| { - let output: f32 = Cone::slant_height(_self).into(); + let output: f32 = bevy::math::primitives::Cone::slant_height(_self) + .into(); output }, ) .overwrite_script_function( "lateral_area", |_self: Ref| { - let output: f32 = Cone::lateral_area(_self).into(); + let output: f32 = bevy::math::primitives::Cone::lateral_area(_self) + .into(); output }, ) .overwrite_script_function( "base_area", |_self: Ref| { - let output: f32 = Cone::base_area(_self).into(); + let output: f32 = bevy::math::primitives::Cone::base_area(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Cone::clone(_self) + let output: Val = bevy::math::primitives::Cone::clone( + _self, + ) .into(); output }, @@ -2299,36 +2583,41 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Cone::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Cone::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = ConicalFrustum::eq(_self, other).into(); + let output: bool = bevy::math::primitives::ConicalFrustum::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = ConicalFrustum::clone( + let output: Val = bevy::math::primitives::ConicalFrustum::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = InfinitePlane3d::clone( + let output: Val = bevy::math::primitives::InfinitePlane3d::clone( _self, ) .into(); @@ -2341,15 +2630,19 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = InfinitePlane3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::InfinitePlane3d::eq( + _self, + other, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Line3d::clone( + let output: Val = bevy::math::primitives::Line3d::clone( _self, ) .into(); @@ -2362,15 +2655,16 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Line3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Line3d::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |direction: Val, length: f32| { - let output: Val = Segment3d::new( + let output: Val = bevy::math::primitives::Segment3d::new( direction, length, ) @@ -2384,25 +2678,31 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Segment3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Segment3d::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Segment3d::clone( + let output: Val = bevy::math::primitives::Segment3d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Torus::clone(_self) + let output: Val = bevy::math::primitives::Torus::clone( + _self, + ) .into(); output }, @@ -2413,14 +2713,15 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Torus::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Torus::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "new", |inner_radius: f32, outer_radius: f32| { - let output: Val = Torus::new( + let output: Val = bevy::math::primitives::Torus::new( inner_radius, outer_radius, ) @@ -2431,60 +2732,76 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "inner_radius", |_self: Ref| { - let output: f32 = Torus::inner_radius(_self).into(); + let output: f32 = bevy::math::primitives::Torus::inner_radius(_self) + .into(); output }, ) .overwrite_script_function( "outer_radius", |_self: Ref| { - let output: f32 = Torus::outer_radius(_self).into(); + let output: f32 = bevy::math::primitives::Torus::outer_radius(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Triangle3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Triangle3d::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "is_degenerate", |_self: Ref| { - let output: bool = Triangle3d::is_degenerate(_self).into(); + let output: bool = bevy::math::primitives::Triangle3d::is_degenerate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_acute", |_self: Ref| { - let output: bool = Triangle3d::is_acute(_self).into(); + let output: bool = bevy::math::primitives::Triangle3d::is_acute( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_obtuse", |_self: Ref| { - let output: bool = Triangle3d::is_obtuse(_self).into(); + let output: bool = bevy::math::primitives::Triangle3d::is_obtuse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "reverse", |_self: Mut| { - let output: () = Triangle3d::reverse(_self).into(); + let output: () = bevy::math::primitives::Triangle3d::reverse(_self) + .into(); output }, ) .overwrite_script_function( "reversed", |_self: Val| { - let output: Val = Triangle3d::reversed( + let output: Val = bevy::math::primitives::Triangle3d::reversed( _self, ) .into(); @@ -2494,18 +2811,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Triangle3d::clone( + let output: Val = bevy::math::primitives::Triangle3d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RayCast2d::clone( + let output: Val = bevy::math::bounding::RayCast2d::clone( _self, ) .into(); @@ -2515,7 +2832,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_ray", |ray: Val, max: f32| { - let output: Val = RayCast2d::from_ray( + let output: Val = bevy::math::bounding::RayCast2d::from_ray( ray, max, ) @@ -2529,7 +2846,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, aabb: Ref| { - let output: std::option::Option = RayCast2d::aabb_intersection_at( + let output: std::option::Option = bevy::math::bounding::RayCast2d::aabb_intersection_at( _self, aabb, ) @@ -2543,7 +2860,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, circle: Ref| { - let output: std::option::Option = RayCast2d::circle_intersection_at( + let output: std::option::Option = bevy::math::bounding::RayCast2d::circle_intersection_at( _self, circle, ) @@ -2551,7 +2868,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_ray", | @@ -2559,7 +2876,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { ray: Val, max: f32| { - let output: Val = AabbCast2d::from_ray( + let output: Val = bevy::math::bounding::AabbCast2d::from_ray( aabb, ray, max, @@ -2574,7 +2891,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, aabb: Val| { - let output: std::option::Option = AabbCast2d::aabb_collision_at( + let output: std::option::Option = bevy::math::bounding::AabbCast2d::aabb_collision_at( _self, aabb, ) @@ -2585,14 +2902,14 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AabbCast2d::clone( + let output: Val = bevy::math::bounding::AabbCast2d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_ray", | @@ -2600,7 +2917,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { ray: Val, max: f32| { - let output: Val = BoundingCircleCast::from_ray( + let output: Val = bevy::math::bounding::BoundingCircleCast::from_ray( circle, ray, max, @@ -2615,7 +2932,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, circle: Val| { - let output: std::option::Option = BoundingCircleCast::circle_collision_at( + let output: std::option::Option = bevy::math::bounding::BoundingCircleCast::circle_collision_at( _self, circle, ) @@ -2626,18 +2943,18 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BoundingCircleCast::clone( + let output: Val = bevy::math::bounding::BoundingCircleCast::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RayCast3d::clone( + let output: Val = bevy::math::bounding::RayCast3d::clone( _self, ) .into(); @@ -2647,7 +2964,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "from_ray", |ray: Val, max: f32| { - let output: Val = RayCast3d::from_ray( + let output: Val = bevy::math::bounding::RayCast3d::from_ray( ray, max, ) @@ -2661,7 +2978,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, aabb: Ref| { - let output: std::option::Option = RayCast3d::aabb_intersection_at( + let output: std::option::Option = bevy::math::bounding::RayCast3d::aabb_intersection_at( _self, aabb, ) @@ -2675,7 +2992,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, sphere: Ref| { - let output: std::option::Option = RayCast3d::sphere_intersection_at( + let output: std::option::Option = bevy::math::bounding::RayCast3d::sphere_intersection_at( _self, sphere, ) @@ -2683,7 +3000,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_ray", | @@ -2691,7 +3008,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { ray: Val, max: f32| { - let output: Val = AabbCast3d::from_ray( + let output: Val = bevy::math::bounding::AabbCast3d::from_ray( aabb, ray, max, @@ -2706,7 +3023,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, aabb: Val| { - let output: std::option::Option = AabbCast3d::aabb_collision_at( + let output: std::option::Option = bevy::math::bounding::AabbCast3d::aabb_collision_at( _self, aabb, ) @@ -2717,14 +3034,14 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = AabbCast3d::clone( + let output: Val = bevy::math::bounding::AabbCast3d::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_ray", | @@ -2732,7 +3049,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { ray: Val, max: f32| { - let output: Val = BoundingSphereCast::from_ray( + let output: Val = bevy::math::bounding::BoundingSphereCast::from_ray( sphere, ray, max, @@ -2747,7 +3064,7 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, sphere: Val| { - let output: std::option::Option = BoundingSphereCast::sphere_collision_at( + let output: std::option::Option = bevy::math::bounding::BoundingSphereCast::sphere_collision_at( _self, sphere, ) @@ -2758,70 +3075,92 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BoundingSphereCast::clone( + let output: Val = bevy::math::bounding::BoundingSphereCast::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = Interval::eq(_self, other).into(); + let output: bool = bevy::math::curve::interval::Interval::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "start", |_self: Val| { - let output: f32 = Interval::start(_self).into(); + let output: f32 = bevy::math::curve::interval::Interval::start(_self) + .into(); output }, ) .overwrite_script_function( "end", |_self: Val| { - let output: f32 = Interval::end(_self).into(); + let output: f32 = bevy::math::curve::interval::Interval::end(_self) + .into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Interval::length(_self).into(); + let output: f32 = bevy::math::curve::interval::Interval::length( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_bounded", |_self: Val| { - let output: bool = Interval::is_bounded(_self).into(); + let output: bool = bevy::math::curve::interval::Interval::is_bounded( + _self, + ) + .into(); output }, ) .overwrite_script_function( "has_finite_start", |_self: Val| { - let output: bool = Interval::has_finite_start(_self).into(); + let output: bool = bevy::math::curve::interval::Interval::has_finite_start( + _self, + ) + .into(); output }, ) .overwrite_script_function( "has_finite_end", |_self: Val| { - let output: bool = Interval::has_finite_end(_self).into(); + let output: bool = bevy::math::curve::interval::Interval::has_finite_end( + _self, + ) + .into(); output }, ) .overwrite_script_function( "contains", |_self: Val, item: f32| { - let output: bool = Interval::contains(_self, item).into(); + let output: bool = bevy::math::curve::interval::Interval::contains( + _self, + item, + ) + .into(); output }, ) @@ -2831,39 +3170,52 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Val, other: Val| { - let output: bool = Interval::contains_interval(_self, other).into(); + let output: bool = bevy::math::curve::interval::Interval::contains_interval( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clamp", |_self: Val, value: f32| { - let output: f32 = Interval::clamp(_self, value).into(); + let output: f32 = bevy::math::curve::interval::Interval::clamp( + _self, + value, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Interval::clone( + let output: Val = bevy::math::curve::interval::Interval::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = FloatOrd::neg(_self).into(); + let output: Val = bevy::math::FloatOrd::neg( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = FloatOrd::clone(_self) + let output: Val = bevy::math::FloatOrd::clone( + _self, + ) .into(); output }, @@ -2871,43 +3223,43 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = FloatOrd::eq(_self, other).into(); + let output: bool = bevy::math::FloatOrd::eq(_self, other).into(); output }, ) .overwrite_script_function( "lt", |_self: Ref, other: Ref| { - let output: bool = FloatOrd::lt(_self, other).into(); + let output: bool = bevy::math::FloatOrd::lt(_self, other).into(); output }, ) .overwrite_script_function( "le", |_self: Ref, other: Ref| { - let output: bool = FloatOrd::le(_self, other).into(); + let output: bool = bevy::math::FloatOrd::le(_self, other).into(); output }, ) .overwrite_script_function( "gt", |_self: Ref, other: Ref| { - let output: bool = FloatOrd::gt(_self, other).into(); + let output: bool = bevy::math::FloatOrd::gt(_self, other).into(); output }, ) .overwrite_script_function( "ge", |_self: Ref, other: Ref| { - let output: bool = FloatOrd::ge(_self, other).into(); + let output: bool = bevy::math::FloatOrd::ge(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Plane3d::clone( + let output: Val = bevy::math::primitives::Plane3d::clone( _self, ) .into(); @@ -2920,15 +3272,19 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Plane3d::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Plane3d::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "signed_volume", |_self: Ref| { - let output: f32 = Tetrahedron::signed_volume(_self).into(); + let output: f32 = bevy::math::primitives::Tetrahedron::signed_volume( + _self, + ) + .into(); output }, ) @@ -2938,25 +3294,29 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Tetrahedron::eq(_self, other).into(); + let output: bool = bevy::math::primitives::Tetrahedron::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Tetrahedron::clone( + let output: Val = bevy::math::primitives::Tetrahedron::clone( _self, ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = EaseFunction::clone( + let output: Val = bevy::math::curve::easing::EaseFunction::clone( _self, ) .into(); @@ -2969,7 +3329,11 @@ impl bevy::app::Plugin for BevyMathScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = EaseFunction::eq(_self, other).into(); + let output: bool = bevy::math::curve::easing::EaseFunction::eq( + _self, + other, + ) + .into(); output }, ); diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_reflect.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_reflect.rs index 0f8da2a073..41273ac2a1 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_reflect.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_reflect.rs @@ -3,7 +3,8 @@ #![allow(unused, deprecated, dead_code)] #![cfg_attr(rustfmt, rustfmt_skip)] use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -11,11 +12,13 @@ pub struct BevyReflectScriptingPlugin; impl bevy::app::Plugin for BevyReflectScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: bool| { - let output: Val = AtomicBool::new(v) + let output: Val = std::sync::atomic::AtomicBool::new( + v, + ) .into(); output }, @@ -23,15 +26,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: bool = AtomicBool::into_inner(_self).into(); + let output: bool = std::sync::atomic::AtomicBool::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: i16| { - let output: Val = AtomicI16::new(v) + let output: Val = std::sync::atomic::AtomicI16::new( + v, + ) .into(); output }, @@ -39,15 +45,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: i16 = AtomicI16::into_inner(_self).into(); + let output: i16 = std::sync::atomic::AtomicI16::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: i32| { - let output: Val = AtomicI32::new(v) + let output: Val = std::sync::atomic::AtomicI32::new( + v, + ) .into(); output }, @@ -55,15 +64,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: i32 = AtomicI32::into_inner(_self).into(); + let output: i32 = std::sync::atomic::AtomicI32::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: i64| { - let output: Val = AtomicI64::new(v) + let output: Val = std::sync::atomic::AtomicI64::new( + v, + ) .into(); output }, @@ -71,15 +83,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: i64 = AtomicI64::into_inner(_self).into(); + let output: i64 = std::sync::atomic::AtomicI64::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: i8| { - let output: Val = AtomicI8::new(v) + let output: Val = std::sync::atomic::AtomicI8::new( + v, + ) .into(); output }, @@ -87,15 +102,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: i8 = AtomicI8::into_inner(_self).into(); + let output: i8 = std::sync::atomic::AtomicI8::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: isize| { - let output: Val = AtomicIsize::new(v) + let output: Val = std::sync::atomic::AtomicIsize::new( + v, + ) .into(); output }, @@ -103,15 +121,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: isize = AtomicIsize::into_inner(_self).into(); + let output: isize = std::sync::atomic::AtomicIsize::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: u16| { - let output: Val = AtomicU16::new(v) + let output: Val = std::sync::atomic::AtomicU16::new( + v, + ) .into(); output }, @@ -119,15 +140,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: u16 = AtomicU16::into_inner(_self).into(); + let output: u16 = std::sync::atomic::AtomicU16::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: u32| { - let output: Val = AtomicU32::new(v) + let output: Val = std::sync::atomic::AtomicU32::new( + v, + ) .into(); output }, @@ -135,15 +159,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: u32 = AtomicU32::into_inner(_self).into(); + let output: u32 = std::sync::atomic::AtomicU32::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: u64| { - let output: Val = AtomicU64::new(v) + let output: Val = std::sync::atomic::AtomicU64::new( + v, + ) .into(); output }, @@ -151,15 +178,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: u64 = AtomicU64::into_inner(_self).into(); + let output: u64 = std::sync::atomic::AtomicU64::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: u8| { - let output: Val = AtomicU8::new(v) + let output: Val = std::sync::atomic::AtomicU8::new( + v, + ) .into(); output }, @@ -167,15 +197,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: u8 = AtomicU8::into_inner(_self).into(); + let output: u8 = std::sync::atomic::AtomicU8::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |v: usize| { - let output: Val = AtomicUsize::new(v) + let output: Val = std::sync::atomic::AtomicUsize::new( + v, + ) .into(); output }, @@ -183,15 +216,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "into_inner", |_self: Val| { - let output: usize = AtomicUsize::into_inner(_self).into(); + let output: usize = std::sync::atomic::AtomicUsize::into_inner(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: u32| { - let output: Val = Duration::mul(_self, rhs) + let output: Val = bevy::utils::Duration::mul( + _self, + rhs, + ) .into(); output }, @@ -199,14 +236,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Duration::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::utils::Duration::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Duration::clone(_self) + let output: Val = bevy::utils::Duration::clone( + _self, + ) .into(); output }, @@ -214,7 +256,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Duration::sub(_self, rhs) + let output: Val = bevy::utils::Duration::sub( + _self, + rhs, + ) .into(); output }, @@ -222,7 +267,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Duration::add(_self, rhs) + let output: Val = bevy::utils::Duration::add( + _self, + rhs, + ) .into(); output }, @@ -230,14 +278,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Duration::eq(_self, other).into(); + let output: bool = bevy::utils::Duration::eq(_self, other).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: u32| { - let output: Val = Duration::div(_self, rhs) + let output: Val = bevy::utils::Duration::div( + _self, + rhs, + ) .into(); output }, @@ -245,7 +296,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |secs: u64, nanos: u32| { - let output: Val = Duration::new(secs, nanos) + let output: Val = bevy::utils::Duration::new( + secs, + nanos, + ) .into(); output }, @@ -253,7 +307,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_secs", |secs: u64| { - let output: Val = Duration::from_secs(secs) + let output: Val = bevy::utils::Duration::from_secs( + secs, + ) .into(); output }, @@ -261,7 +317,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_millis", |millis: u64| { - let output: Val = Duration::from_millis( + let output: Val = bevy::utils::Duration::from_millis( millis, ) .into(); @@ -271,7 +327,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_micros", |micros: u64| { - let output: Val = Duration::from_micros( + let output: Val = bevy::utils::Duration::from_micros( micros, ) .into(); @@ -281,7 +337,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_nanos", |nanos: u64| { - let output: Val = Duration::from_nanos(nanos) + let output: Val = bevy::utils::Duration::from_nanos( + nanos, + ) .into(); output }, @@ -289,63 +347,63 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_zero", |_self: Ref| { - let output: bool = Duration::is_zero(_self).into(); + let output: bool = bevy::utils::Duration::is_zero(_self).into(); output }, ) .overwrite_script_function( "as_secs", |_self: Ref| { - let output: u64 = Duration::as_secs(_self).into(); + let output: u64 = bevy::utils::Duration::as_secs(_self).into(); output }, ) .overwrite_script_function( "subsec_millis", |_self: Ref| { - let output: u32 = Duration::subsec_millis(_self).into(); + let output: u32 = bevy::utils::Duration::subsec_millis(_self).into(); output }, ) .overwrite_script_function( "subsec_micros", |_self: Ref| { - let output: u32 = Duration::subsec_micros(_self).into(); + let output: u32 = bevy::utils::Duration::subsec_micros(_self).into(); output }, ) .overwrite_script_function( "subsec_nanos", |_self: Ref| { - let output: u32 = Duration::subsec_nanos(_self).into(); + let output: u32 = bevy::utils::Duration::subsec_nanos(_self).into(); output }, ) .overwrite_script_function( "as_millis", |_self: Ref| { - let output: u128 = Duration::as_millis(_self).into(); + let output: u128 = bevy::utils::Duration::as_millis(_self).into(); output }, ) .overwrite_script_function( "as_micros", |_self: Ref| { - let output: u128 = Duration::as_micros(_self).into(); + let output: u128 = bevy::utils::Duration::as_micros(_self).into(); output }, ) .overwrite_script_function( "as_nanos", |_self: Ref| { - let output: u128 = Duration::as_nanos(_self).into(); + let output: u128 = bevy::utils::Duration::as_nanos(_self).into(); output }, ) .overwrite_script_function( "abs_diff", |_self: Val, other: Val| { - let output: Val = Duration::abs_diff( + let output: Val = bevy::utils::Duration::abs_diff( _self, other, ) @@ -356,7 +414,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = Duration::saturating_add( + let output: Val = bevy::utils::Duration::saturating_add( _self, rhs, ) @@ -367,7 +425,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = Duration::saturating_sub( + let output: Val = bevy::utils::Duration::saturating_sub( _self, rhs, ) @@ -378,7 +436,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: u32| { - let output: Val = Duration::saturating_mul( + let output: Val = bevy::utils::Duration::saturating_mul( _self, rhs, ) @@ -389,21 +447,21 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_secs_f64", |_self: Ref| { - let output: f64 = Duration::as_secs_f64(_self).into(); + let output: f64 = bevy::utils::Duration::as_secs_f64(_self).into(); output }, ) .overwrite_script_function( "as_secs_f32", |_self: Ref| { - let output: f32 = Duration::as_secs_f32(_self).into(); + let output: f32 = bevy::utils::Duration::as_secs_f32(_self).into(); output }, ) .overwrite_script_function( "from_secs_f64", |secs: f64| { - let output: Val = Duration::from_secs_f64( + let output: Val = bevy::utils::Duration::from_secs_f64( secs, ) .into(); @@ -413,7 +471,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_secs_f32", |secs: f32| { - let output: Val = Duration::from_secs_f32( + let output: Val = bevy::utils::Duration::from_secs_f32( secs, ) .into(); @@ -423,7 +481,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_f64", |_self: Val, rhs: f64| { - let output: Val = Duration::mul_f64( + let output: Val = bevy::utils::Duration::mul_f64( _self, rhs, ) @@ -434,7 +492,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_f32", |_self: Val, rhs: f32| { - let output: Val = Duration::mul_f32( + let output: Val = bevy::utils::Duration::mul_f32( _self, rhs, ) @@ -445,7 +503,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_f64", |_self: Val, rhs: f64| { - let output: Val = Duration::div_f64( + let output: Val = bevy::utils::Duration::div_f64( _self, rhs, ) @@ -456,7 +514,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_f32", |_self: Val, rhs: f32| { - let output: Val = Duration::div_f32( + let output: Val = bevy::utils::Duration::div_f32( _self, rhs, ) @@ -467,36 +525,44 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_duration_f64", |_self: Val, rhs: Val| { - let output: f64 = Duration::div_duration_f64(_self, rhs).into(); + let output: f64 = bevy::utils::Duration::div_duration_f64(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_duration_f32", |_self: Val, rhs: Val| { - let output: f32 = Duration::div_duration_f32(_self, rhs).into(); + let output: f32 = bevy::utils::Duration::div_duration_f32(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Instant::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::utils::Instant::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Instant::eq(_self, other).into(); + let output: bool = bevy::utils::Instant::eq(_self, other).into(); output }, ) .overwrite_script_function( "sub", |_self: Val, other: Val| { - let output: Val = Instant::sub(_self, other) + let output: Val = bevy::utils::Instant::sub( + _self, + other, + ) .into(); output }, @@ -504,7 +570,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, other: Val| { - let output: Val = Instant::sub(_self, other) + let output: Val = bevy::utils::Instant::sub( + _self, + other, + ) .into(); output }, @@ -512,14 +581,15 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "now", || { - let output: Val = Instant::now().into(); + let output: Val = bevy::utils::Instant::now() + .into(); output }, ) .overwrite_script_function( "duration_since", |_self: Ref, earlier: Val| { - let output: Val = Instant::duration_since( + let output: Val = bevy::utils::Instant::duration_since( _self, earlier, ) @@ -530,7 +600,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_duration_since", |_self: Ref, earlier: Val| { - let output: Val = Instant::saturating_duration_since( + let output: Val = bevy::utils::Instant::saturating_duration_since( _self, earlier, ) @@ -541,7 +611,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "elapsed", |_self: Ref| { - let output: Val = Instant::elapsed(_self) + let output: Val = bevy::utils::Instant::elapsed( + _self, + ) .into(); output }, @@ -549,23 +621,31 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Instant::clone(_self).into(); + let output: Val = bevy::utils::Instant::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, other: Val| { - let output: Val = Instant::add(_self, other) + let output: Val = bevy::utils::Instant::add( + _self, + other, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = RangeFull::clone(_self) + let output: Val = std::ops::RangeFull::clone( + _self, + ) .into(); output }, @@ -573,7 +653,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = RangeFull::assert_receiver_is_total_eq(_self) + let output: () = std::ops::RangeFull::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -581,50 +663,63 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = RangeFull::eq(_self, other).into(); + let output: bool = std::ops::RangeFull::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Quat::mul(_self, rhs).into(); + let output: Val = bevy::math::Quat::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Quat::sub(_self, rhs).into(); + let output: Val = bevy::math::Quat::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Quat::neg(_self).into(); + let output: Val = bevy::math::Quat::neg(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Quat::mul(_self, rhs).into(); + let output: Val = bevy::math::Quat::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Quat::clone(_self).into(); + let output: Val = bevy::math::Quat::clone(_self) + .into(); output }, ) .overwrite_script_function( "from_xyzw", |x: f32, y: f32, z: f32, w: f32| { - let output: Val = Quat::from_xyzw(x, y, z, w) + let output: Val = bevy::math::Quat::from_xyzw( + x, + y, + z, + w, + ) .into(); output }, @@ -632,21 +727,23 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f32; 4]| { - let output: Val = Quat::from_array(a).into(); + let output: Val = bevy::math::Quat::from_array(a) + .into(); output }, ) .overwrite_script_function( "from_vec4", |v: Val| { - let output: Val = Quat::from_vec4(v).into(); + let output: Val = bevy::math::Quat::from_vec4(v) + .into(); output }, ) .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f32| { - let output: Val = Quat::from_axis_angle( + let output: Val = bevy::math::Quat::from_axis_angle( axis, angle, ) @@ -657,14 +754,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scaled_axis", |v: Val| { - let output: Val = Quat::from_scaled_axis(v).into(); + let output: Val = bevy::math::Quat::from_scaled_axis( + v, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f32| { - let output: Val = Quat::from_rotation_x(angle) + let output: Val = bevy::math::Quat::from_rotation_x( + angle, + ) .into(); output }, @@ -672,7 +774,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f32| { - let output: Val = Quat::from_rotation_y(angle) + let output: Val = bevy::math::Quat::from_rotation_y( + angle, + ) .into(); output }, @@ -680,7 +784,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f32| { - let output: Val = Quat::from_rotation_z(angle) + let output: Val = bevy::math::Quat::from_rotation_z( + angle, + ) .into(); output }, @@ -688,7 +794,12 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |euler: Val, a: f32, b: f32, c: f32| { - let output: Val = Quat::from_euler(euler, a, b, c) + let output: Val = bevy::math::Quat::from_euler( + euler, + a, + b, + c, + ) .into(); output }, @@ -696,28 +807,34 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |mat: Ref| { - let output: Val = Quat::from_mat3(mat).into(); + let output: Val = bevy::math::Quat::from_mat3(mat) + .into(); output }, ) .overwrite_script_function( "from_mat3a", |mat: Ref| { - let output: Val = Quat::from_mat3a(mat).into(); + let output: Val = bevy::math::Quat::from_mat3a(mat) + .into(); output }, ) .overwrite_script_function( "from_mat4", |mat: Ref| { - let output: Val = Quat::from_mat4(mat).into(); + let output: Val = bevy::math::Quat::from_mat4(mat) + .into(); output }, ) .overwrite_script_function( "from_rotation_arc", |from: Val, to: Val| { - let output: Val = Quat::from_rotation_arc(from, to) + let output: Val = bevy::math::Quat::from_rotation_arc( + from, + to, + ) .into(); output }, @@ -725,7 +842,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_arc_colinear", |from: Val, to: Val| { - let output: Val = Quat::from_rotation_arc_colinear( + let output: Val = bevy::math::Quat::from_rotation_arc_colinear( from, to, ) @@ -736,7 +853,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_arc_2d", |from: Val, to: Val| { - let output: Val = Quat::from_rotation_arc_2d( + let output: Val = bevy::math::Quat::from_rotation_arc_2d( from, to, ) @@ -747,7 +864,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_scaled_axis", |_self: Val| { - let output: Val = Quat::to_scaled_axis(_self) + let output: Val = bevy::math::Quat::to_scaled_axis( + _self, + ) .into(); output }, @@ -755,105 +874,117 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Val, order: Val| { - let output: (f32, f32, f32) = Quat::to_euler(_self, order).into(); + let output: (f32, f32, f32) = bevy::math::Quat::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f32; 4] = Quat::to_array(_self).into(); + let output: [f32; 4] = bevy::math::Quat::to_array(_self).into(); output }, ) .overwrite_script_function( "xyz", |_self: Val| { - let output: Val = Quat::xyz(_self).into(); + let output: Val = bevy::math::Quat::xyz(_self) + .into(); output }, ) .overwrite_script_function( "conjugate", |_self: Val| { - let output: Val = Quat::conjugate(_self).into(); + let output: Val = bevy::math::Quat::conjugate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "inverse", |_self: Val| { - let output: Val = Quat::inverse(_self).into(); + let output: Val = bevy::math::Quat::inverse(_self) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f32 = Quat::dot(_self, rhs).into(); + let output: f32 = bevy::math::Quat::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Quat::length(_self).into(); + let output: f32 = bevy::math::Quat::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Quat::length_squared(_self).into(); + let output: f32 = bevy::math::Quat::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Quat::length_recip(_self).into(); + let output: f32 = bevy::math::Quat::length_recip(_self).into(); output }, ) .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Quat::normalize(_self).into(); + let output: Val = bevy::math::Quat::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Quat::is_finite(_self).into(); + let output: bool = bevy::math::Quat::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Quat::is_nan(_self).into(); + let output: bool = bevy::math::Quat::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Quat::is_normalized(_self).into(); + let output: bool = bevy::math::Quat::is_normalized(_self).into(); output }, ) .overwrite_script_function( "is_near_identity", |_self: Val| { - let output: bool = Quat::is_near_identity(_self).into(); + let output: bool = bevy::math::Quat::is_near_identity(_self).into(); output }, ) .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f32 = Quat::angle_between(_self, rhs).into(); + let output: f32 = bevy::math::Quat::angle_between(_self, rhs).into(); output }, ) @@ -864,7 +995,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_angle: f32| { - let output: Val = Quat::rotate_towards( + let output: Val = bevy::math::Quat::rotate_towards( _self, rhs, max_angle, @@ -880,7 +1011,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Quat::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Quat::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -888,14 +1023,23 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "lerp", |_self: Val, end: Val, s: f32| { - let output: Val = Quat::lerp(_self, end, s).into(); + let output: Val = bevy::math::Quat::lerp( + _self, + end, + s, + ) + .into(); output }, ) .overwrite_script_function( "slerp", |_self: Val, end: Val, s: f32| { - let output: Val = Quat::slerp(_self, end, s) + let output: Val = bevy::math::Quat::slerp( + _self, + end, + s, + ) .into(); output }, @@ -903,7 +1047,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3", |_self: Val, rhs: Val| { - let output: Val = Quat::mul_vec3(_self, rhs) + let output: Val = bevy::math::Quat::mul_vec3( + _self, + rhs, + ) .into(); output }, @@ -911,7 +1058,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_quat", |_self: Val, rhs: Val| { - let output: Val = Quat::mul_quat(_self, rhs) + let output: Val = bevy::math::Quat::mul_quat( + _self, + rhs, + ) .into(); output }, @@ -919,14 +1069,18 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_affine3", |a: Ref| { - let output: Val = Quat::from_affine3(a).into(); + let output: Val = bevy::math::Quat::from_affine3(a) + .into(); output }, ) .overwrite_script_function( "mul_vec3a", |_self: Val, rhs: Val| { - let output: Val = Quat::mul_vec3a(_self, rhs) + let output: Val = bevy::math::Quat::mul_vec3a( + _self, + rhs, + ) .into(); output }, @@ -934,162 +1088,186 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_dquat", |_self: Val| { - let output: Val = Quat::as_dquat(_self).into(); + let output: Val = bevy::math::Quat::as_dquat( + _self, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Quat::eq(_self, rhs).into(); + let output: bool = bevy::math::Quat::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Quat::mul(_self, rhs).into(); + let output: Val = bevy::math::Quat::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Quat::mul(_self, rhs).into(); + let output: Val = bevy::math::Quat::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Quat::div(_self, rhs).into(); + let output: Val = bevy::math::Quat::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Quat::add(_self, rhs).into(); + let output: Val = bevy::math::Quat::add(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = Vec3::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = Vec3::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Vec3::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Vec3::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Vec3::clone(_self).into(); + let output: Val = bevy::math::Vec3::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f32| { - let output: Val = Vec3::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = Vec3::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Vec3::neg(_self).into(); + let output: Val = bevy::math::Vec3::neg(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Vec3::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = Vec3::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = Vec3::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = Vec3::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = Vec3::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f32| { - let output: Val = Vec3::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Vec3::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "new", |x: f32, y: f32, z: f32| { - let output: Val = Vec3::new(x, y, z).into(); + let output: Val = bevy::math::Vec3::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: f32| { - let output: Val = Vec3::splat(v).into(); + let output: Val = bevy::math::Vec3::splat(v) + .into(); output }, ) @@ -1100,7 +1278,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = Vec3::select( + let output: Val = bevy::math::Vec3::select( mask, if_true, if_false, @@ -1112,63 +1290,84 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f32; 3]| { - let output: Val = Vec3::from_array(a).into(); + let output: Val = bevy::math::Vec3::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f32; 3] = Vec3::to_array(_self).into(); + let output: [f32; 3] = bevy::math::Vec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: f32| { - let output: Val = Vec3::extend(_self, w).into(); + let output: Val = bevy::math::Vec3::extend( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = Vec3::truncate(_self).into(); + let output: Val = bevy::math::Vec3::truncate(_self) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f32| { - let output: Val = Vec3::with_x(_self, x).into(); + let output: Val = bevy::math::Vec3::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f32| { - let output: Val = Vec3::with_y(_self, y).into(); + let output: Val = bevy::math::Vec3::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: f32| { - let output: Val = Vec3::with_z(_self, z).into(); + let output: Val = bevy::math::Vec3::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f32 = Vec3::dot(_self, rhs).into(); + let output: f32 = bevy::math::Vec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = Vec3::dot_into_vec(_self, rhs) + let output: Val = bevy::math::Vec3::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -1176,21 +1375,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = Vec3::cross(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cross( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = Vec3::min(_self, rhs).into(); + let output: Val = bevy::math::Vec3::min(_self, rhs) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = Vec3::max(_self, rhs).into(); + let output: Val = bevy::math::Vec3::max(_self, rhs) + .into(); output }, ) @@ -1201,7 +1406,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = Vec3::clamp(_self, min, max) + let output: Val = bevy::math::Vec3::clamp( + _self, + min, + max, + ) .into(); output }, @@ -1209,91 +1418,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f32 = Vec3::min_element(_self).into(); + let output: f32 = bevy::math::Vec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f32 = Vec3::max_element(_self).into(); + let output: f32 = bevy::math::Vec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f32 = Vec3::element_sum(_self).into(); + let output: f32 = bevy::math::Vec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f32 = Vec3::element_product(_self).into(); + let output: f32 = bevy::math::Vec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmpne(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmpge(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmple(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = Vec3::cmplt(_self, rhs).into(); + let output: Val = bevy::math::Vec3::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = Vec3::abs(_self).into(); + let output: Val = bevy::math::Vec3::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = Vec3::signum(_self).into(); + let output: Val = bevy::math::Vec3::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = Vec3::copysign(_self, rhs) + let output: Val = bevy::math::Vec3::copysign( + _self, + rhs, + ) .into(); output }, @@ -1301,21 +1539,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = Vec3::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::Vec3::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Vec3::is_finite(_self).into(); + let output: bool = bevy::math::Vec3::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = Vec3::is_finite_mask(_self) + let output: Val = bevy::math::Vec3::is_finite_mask( + _self, + ) .into(); output }, @@ -1323,56 +1564,63 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Vec3::is_nan(_self).into(); + let output: bool = bevy::math::Vec3::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = Vec3::is_nan_mask(_self).into(); + let output: Val = bevy::math::Vec3::is_nan_mask( + _self, + ) + .into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Vec3::length(_self).into(); + let output: f32 = bevy::math::Vec3::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Vec3::length_squared(_self).into(); + let output: f32 = bevy::math::Vec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Vec3::length_recip(_self).into(); + let output: f32 = bevy::math::Vec3::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f32 = Vec3::distance(_self, rhs).into(); + let output: f32 = bevy::math::Vec3::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f32 = Vec3::distance_squared(_self, rhs).into(); + let output: f32 = bevy::math::Vec3::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec3::div_euclid(_self, rhs) + let output: Val = bevy::math::Vec3::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -1380,7 +1628,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec3::rem_euclid(_self, rhs) + let output: Val = bevy::math::Vec3::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -1388,14 +1639,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Vec3::normalize(_self).into(); + let output: Val = bevy::math::Vec3::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = Vec3::normalize_or( + let output: Val = bevy::math::Vec3::normalize_or( _self, fallback, ) @@ -1406,7 +1660,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = Vec3::normalize_or_zero(_self) + let output: Val = bevy::math::Vec3::normalize_or_zero( + _self, + ) .into(); output }, @@ -1414,14 +1670,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Vec3::is_normalized(_self).into(); + let output: bool = bevy::math::Vec3::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = Vec3::project_onto(_self, rhs) + let output: Val = bevy::math::Vec3::project_onto( + _self, + rhs, + ) .into(); output }, @@ -1429,7 +1688,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = Vec3::reject_from(_self, rhs) + let output: Val = bevy::math::Vec3::reject_from( + _self, + rhs, + ) .into(); output }, @@ -1437,7 +1699,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec3::project_onto_normalized( + let output: Val = bevy::math::Vec3::project_onto_normalized( _self, rhs, ) @@ -1448,7 +1710,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec3::reject_from_normalized( + let output: Val = bevy::math::Vec3::reject_from_normalized( _self, rhs, ) @@ -1459,77 +1721,95 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = Vec3::round(_self).into(); + let output: Val = bevy::math::Vec3::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = Vec3::floor(_self).into(); + let output: Val = bevy::math::Vec3::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = Vec3::ceil(_self).into(); + let output: Val = bevy::math::Vec3::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = Vec3::trunc(_self).into(); + let output: Val = bevy::math::Vec3::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = Vec3::fract(_self).into(); + let output: Val = bevy::math::Vec3::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = Vec3::fract_gl(_self).into(); + let output: Val = bevy::math::Vec3::fract_gl(_self) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = Vec3::exp(_self).into(); + let output: Val = bevy::math::Vec3::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f32| { - let output: Val = Vec3::powf(_self, n).into(); + let output: Val = bevy::math::Vec3::powf(_self, n) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = Vec3::recip(_self).into(); + let output: Val = bevy::math::Vec3::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f32| { - let output: Val = Vec3::lerp(_self, rhs, s).into(); + let output: Val = bevy::math::Vec3::lerp( + _self, + rhs, + s, + ) + .into(); output }, ) .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f32| { - let output: Val = Vec3::move_towards(_self, rhs, d) + let output: Val = bevy::math::Vec3::move_towards( + _self, + rhs, + d, + ) .into(); output }, @@ -1537,7 +1817,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = Vec3::midpoint(_self, rhs) + let output: Val = bevy::math::Vec3::midpoint( + _self, + rhs, + ) .into(); output }, @@ -1549,15 +1832,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Vec3::abs_diff_eq(_self, rhs, max_abs_diff) - .into(); - output + let output: bool = bevy::math::Vec3::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) + .into(); + output }, ) .overwrite_script_function( "clamp_length", |_self: Val, min: f32, max: f32| { - let output: Val = Vec3::clamp_length( + let output: Val = bevy::math::Vec3::clamp_length( _self, min, max, @@ -1569,7 +1856,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f32| { - let output: Val = Vec3::clamp_length_max( + let output: Val = bevy::math::Vec3::clamp_length_max( _self, max, ) @@ -1580,7 +1867,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f32| { - let output: Val = Vec3::clamp_length_min( + let output: Val = bevy::math::Vec3::clamp_length_min( _self, min, ) @@ -1595,7 +1882,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = Vec3::mul_add(_self, a, b) + let output: Val = bevy::math::Vec3::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -1603,7 +1894,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = Vec3::reflect(_self, normal) + let output: Val = bevy::math::Vec3::reflect( + _self, + normal, + ) .into(); output }, @@ -1611,7 +1905,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "refract", |_self: Val, normal: Val, eta: f32| { - let output: Val = Vec3::refract(_self, normal, eta) + let output: Val = bevy::math::Vec3::refract( + _self, + normal, + eta, + ) .into(); output }, @@ -1619,14 +1917,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f32 = Vec3::angle_between(_self, rhs).into(); + let output: f32 = bevy::math::Vec3::angle_between(_self, rhs).into(); output }, ) .overwrite_script_function( "any_orthogonal_vector", |_self: Ref| { - let output: Val = Vec3::any_orthogonal_vector( + let output: Val = bevy::math::Vec3::any_orthogonal_vector( _self, ) .into(); @@ -1636,7 +1934,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "any_orthonormal_vector", |_self: Ref| { - let output: Val = Vec3::any_orthonormal_vector( + let output: Val = bevy::math::Vec3::any_orthonormal_vector( _self, ) .into(); @@ -1646,28 +1944,39 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = Vec3::as_dvec3(_self).into(); + let output: Val = bevy::math::Vec3::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = Vec3::as_ivec3(_self).into(); + let output: Val = bevy::math::Vec3::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = Vec3::as_uvec3(_self).into(); + let output: Val = bevy::math::Vec3::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = Vec3::as_i64vec3(_self) + let output: Val = bevy::math::Vec3::as_i64vec3( + _self, + ) .into(); output }, @@ -1675,7 +1984,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = Vec3::as_u64vec3(_self) + let output: Val = bevy::math::Vec3::as_u64vec3( + _self, + ) .into(); output }, @@ -1683,155 +1994,222 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Vec3::eq(_self, other).into(); + let output: bool = bevy::math::Vec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f32| { - let output: Val = Vec3::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Vec3::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3::sub(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = IVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = IVec2::add(_self, rhs).into(); + let output: Val = bevy::math::IVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = IVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: i32| { - let output: Val = IVec2::add(_self, rhs).into(); + let output: Val = bevy::math::IVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = IVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = IVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: i32| { - let output: Val = IVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = IVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = IVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = IVec2::div(_self, rhs).into(); + let output: Val = bevy::math::IVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = IVec2::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::IVec2::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: i32| { - let output: Val = IVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = IVec2::add(_self, rhs).into(); + let output: Val = bevy::math::IVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = IVec2::div(_self, rhs).into(); + let output: Val = bevy::math::IVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = IVec2::eq(_self, other).into(); + let output: bool = bevy::math::IVec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: i32| { - let output: Val = IVec2::div(_self, rhs).into(); + let output: Val = bevy::math::IVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: i32| { - let output: Val = IVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: i32, y: i32| { - let output: Val = IVec2::new(x, y).into(); + let output: Val = bevy::math::IVec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: i32| { - let output: Val = IVec2::splat(v).into(); + let output: Val = bevy::math::IVec2::splat(v) + .into(); output }, ) @@ -1842,7 +2220,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = IVec2::select( + let output: Val = bevy::math::IVec2::select( mask, if_true, if_false, @@ -1854,49 +2232,65 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i32; 2]| { - let output: Val = IVec2::from_array(a).into(); + let output: Val = bevy::math::IVec2::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i32; 2] = IVec2::to_array(_self).into(); + let output: [i32; 2] = bevy::math::IVec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: i32| { - let output: Val = IVec2::extend(_self, z).into(); + let output: Val = bevy::math::IVec2::extend( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: i32| { - let output: Val = IVec2::with_x(_self, x).into(); + let output: Val = bevy::math::IVec2::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: i32| { - let output: Val = IVec2::with_y(_self, y).into(); + let output: Val = bevy::math::IVec2::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i32 = IVec2::dot(_self, rhs).into(); + let output: i32 = bevy::math::IVec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = IVec2::dot_into_vec(_self, rhs) + let output: Val = bevy::math::IVec2::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -1904,14 +2298,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = IVec2::min(_self, rhs).into(); + let output: Val = bevy::math::IVec2::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = IVec2::max(_self, rhs).into(); + let output: Val = bevy::math::IVec2::max( + _self, + rhs, + ) + .into(); output }, ) @@ -1922,7 +2324,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = IVec2::clamp(_self, min, max) + let output: Val = bevy::math::IVec2::clamp( + _self, + min, + max, + ) .into(); output }, @@ -1930,112 +2336,143 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i32 = IVec2::min_element(_self).into(); + let output: i32 = bevy::math::IVec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i32 = IVec2::max_element(_self).into(); + let output: i32 = bevy::math::IVec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i32 = IVec2::element_sum(_self).into(); + let output: i32 = bevy::math::IVec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i32 = IVec2::element_product(_self).into(); + let output: i32 = bevy::math::IVec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmpne(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmpge(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmple(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = IVec2::cmplt(_self, rhs).into(); + let output: Val = bevy::math::IVec2::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = IVec2::abs(_self).into(); + let output: Val = bevy::math::IVec2::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = IVec2::signum(_self).into(); + let output: Val = bevy::math::IVec2::signum(_self) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = IVec2::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::IVec2::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i32 = IVec2::length_squared(_self).into(); + let output: i32 = bevy::math::IVec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i32 = IVec2::distance_squared(_self, rhs).into(); + let output: i32 = bevy::math::IVec2::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec2::div_euclid(_self, rhs) + let output: Val = bevy::math::IVec2::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -2043,7 +2480,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec2::rem_euclid(_self, rhs) + let output: Val = bevy::math::IVec2::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -2051,21 +2491,25 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perp", |_self: Val| { - let output: Val = IVec2::perp(_self).into(); + let output: Val = bevy::math::IVec2::perp(_self) + .into(); output }, ) .overwrite_script_function( "perp_dot", |_self: Val, rhs: Val| { - let output: i32 = IVec2::perp_dot(_self, rhs).into(); + let output: i32 = bevy::math::IVec2::perp_dot(_self, rhs).into(); output }, ) .overwrite_script_function( "rotate", |_self: Val, rhs: Val| { - let output: Val = IVec2::rotate(_self, rhs) + let output: Val = bevy::math::IVec2::rotate( + _self, + rhs, + ) .into(); output }, @@ -2073,28 +2517,37 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec2", |_self: Ref| { - let output: Val = IVec2::as_vec2(_self).into(); + let output: Val = bevy::math::IVec2::as_vec2(_self) + .into(); output }, ) .overwrite_script_function( "as_dvec2", |_self: Ref| { - let output: Val = IVec2::as_dvec2(_self).into(); + let output: Val = bevy::math::IVec2::as_dvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec2", |_self: Ref| { - let output: Val = IVec2::as_uvec2(_self).into(); + let output: Val = bevy::math::IVec2::as_uvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec2", |_self: Ref| { - let output: Val = IVec2::as_i64vec2(_self) + let output: Val = bevy::math::IVec2::as_i64vec2( + _self, + ) .into(); output }, @@ -2102,7 +2555,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec2", |_self: Ref| { - let output: Val = IVec2::as_u64vec2(_self) + let output: Val = bevy::math::IVec2::as_u64vec2( + _self, + ) .into(); output }, @@ -2110,7 +2565,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_add(_self, rhs) + let output: Val = bevy::math::IVec2::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -2118,7 +2576,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_sub(_self, rhs) + let output: Val = bevy::math::IVec2::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -2126,7 +2587,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_mul(_self, rhs) + let output: Val = bevy::math::IVec2::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -2134,7 +2598,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_div(_self, rhs) + let output: Val = bevy::math::IVec2::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -2142,7 +2609,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_add( + let output: Val = bevy::math::IVec2::saturating_add( _self, rhs, ) @@ -2153,7 +2620,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_sub( + let output: Val = bevy::math::IVec2::saturating_sub( _self, rhs, ) @@ -2164,7 +2631,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_mul( + let output: Val = bevy::math::IVec2::saturating_mul( _self, rhs, ) @@ -2175,7 +2642,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_div( + let output: Val = bevy::math::IVec2::saturating_div( _self, rhs, ) @@ -2186,7 +2653,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_add_unsigned( + let output: Val = bevy::math::IVec2::wrapping_add_unsigned( _self, rhs, ) @@ -2197,7 +2664,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec2::wrapping_sub_unsigned( + let output: Val = bevy::math::IVec2::wrapping_sub_unsigned( _self, rhs, ) @@ -2208,7 +2675,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_add_unsigned( + let output: Val = bevy::math::IVec2::saturating_add_unsigned( _self, rhs, ) @@ -2219,7 +2686,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec2::saturating_sub_unsigned( + let output: Val = bevy::math::IVec2::saturating_sub_unsigned( _self, rhs, ) @@ -2230,57 +2697,76 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "neg", |_self: Val| { - let output: Val = IVec2::neg(_self).into(); + let output: Val = bevy::math::IVec2::neg(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = IVec2::clone(_self).into(); + let output: Val = bevy::math::IVec2::clone(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "rem", |_self: Val, rhs: i32| { - let output: Val = IVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = IVec3::div(_self, rhs).into(); + let output: Val = bevy::math::IVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = IVec3::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::IVec3::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = IVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: i32, y: i32, z: i32| { - let output: Val = IVec3::new(x, y, z).into(); + let output: Val = bevy::math::IVec3::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: i32| { - let output: Val = IVec3::splat(v).into(); + let output: Val = bevy::math::IVec3::splat(v) + .into(); output }, ) @@ -2291,7 +2777,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = IVec3::select( + let output: Val = bevy::math::IVec3::select( mask, if_true, if_false, @@ -2303,63 +2789,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i32; 3]| { - let output: Val = IVec3::from_array(a).into(); + let output: Val = bevy::math::IVec3::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i32; 3] = IVec3::to_array(_self).into(); + let output: [i32; 3] = bevy::math::IVec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: i32| { - let output: Val = IVec3::extend(_self, w).into(); + let output: Val = bevy::math::IVec3::extend( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = IVec3::truncate(_self).into(); + let output: Val = bevy::math::IVec3::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: i32| { - let output: Val = IVec3::with_x(_self, x).into(); + let output: Val = bevy::math::IVec3::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: i32| { - let output: Val = IVec3::with_y(_self, y).into(); + let output: Val = bevy::math::IVec3::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: i32| { - let output: Val = IVec3::with_z(_self, z).into(); + let output: Val = bevy::math::IVec3::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i32 = IVec3::dot(_self, rhs).into(); + let output: i32 = bevy::math::IVec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = IVec3::dot_into_vec(_self, rhs) + let output: Val = bevy::math::IVec3::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -2367,21 +2876,33 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = IVec3::cross(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cross( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = IVec3::min(_self, rhs).into(); + let output: Val = bevy::math::IVec3::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = IVec3::max(_self, rhs).into(); + let output: Val = bevy::math::IVec3::max( + _self, + rhs, + ) + .into(); output }, ) @@ -2392,7 +2913,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = IVec3::clamp(_self, min, max) + let output: Val = bevy::math::IVec3::clamp( + _self, + min, + max, + ) .into(); output }, @@ -2400,112 +2925,143 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i32 = IVec3::min_element(_self).into(); + let output: i32 = bevy::math::IVec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i32 = IVec3::max_element(_self).into(); + let output: i32 = bevy::math::IVec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i32 = IVec3::element_sum(_self).into(); + let output: i32 = bevy::math::IVec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i32 = IVec3::element_product(_self).into(); + let output: i32 = bevy::math::IVec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmpne(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmpge(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmple(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = IVec3::cmplt(_self, rhs).into(); + let output: Val = bevy::math::IVec3::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = IVec3::abs(_self).into(); + let output: Val = bevy::math::IVec3::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = IVec3::signum(_self).into(); + let output: Val = bevy::math::IVec3::signum(_self) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = IVec3::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::IVec3::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i32 = IVec3::length_squared(_self).into(); + let output: i32 = bevy::math::IVec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i32 = IVec3::distance_squared(_self, rhs).into(); + let output: i32 = bevy::math::IVec3::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec3::div_euclid(_self, rhs) + let output: Val = bevy::math::IVec3::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -2513,7 +3069,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec3::rem_euclid(_self, rhs) + let output: Val = bevy::math::IVec3::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -2521,35 +3080,47 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec3", |_self: Ref| { - let output: Val = IVec3::as_vec3(_self).into(); + let output: Val = bevy::math::IVec3::as_vec3(_self) + .into(); output }, ) .overwrite_script_function( "as_vec3a", |_self: Ref| { - let output: Val = IVec3::as_vec3a(_self).into(); + let output: Val = bevy::math::IVec3::as_vec3a( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = IVec3::as_dvec3(_self).into(); + let output: Val = bevy::math::IVec3::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = IVec3::as_uvec3(_self).into(); + let output: Val = bevy::math::IVec3::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = IVec3::as_i64vec3(_self) + let output: Val = bevy::math::IVec3::as_i64vec3( + _self, + ) .into(); output }, @@ -2557,7 +3128,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = IVec3::as_u64vec3(_self) + let output: Val = bevy::math::IVec3::as_u64vec3( + _self, + ) .into(); output }, @@ -2565,7 +3138,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_add(_self, rhs) + let output: Val = bevy::math::IVec3::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -2573,7 +3149,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_sub(_self, rhs) + let output: Val = bevy::math::IVec3::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -2581,7 +3160,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_mul(_self, rhs) + let output: Val = bevy::math::IVec3::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -2589,7 +3171,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_div(_self, rhs) + let output: Val = bevy::math::IVec3::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -2597,7 +3182,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_add( + let output: Val = bevy::math::IVec3::saturating_add( _self, rhs, ) @@ -2608,7 +3193,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_sub( + let output: Val = bevy::math::IVec3::saturating_sub( _self, rhs, ) @@ -2619,7 +3204,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_mul( + let output: Val = bevy::math::IVec3::saturating_mul( _self, rhs, ) @@ -2630,7 +3215,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_div( + let output: Val = bevy::math::IVec3::saturating_div( _self, rhs, ) @@ -2641,7 +3226,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_add_unsigned( + let output: Val = bevy::math::IVec3::wrapping_add_unsigned( _self, rhs, ) @@ -2652,7 +3237,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec3::wrapping_sub_unsigned( + let output: Val = bevy::math::IVec3::wrapping_sub_unsigned( _self, rhs, ) @@ -2663,7 +3248,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_add_unsigned( + let output: Val = bevy::math::IVec3::saturating_add_unsigned( _self, rhs, ) @@ -2674,7 +3259,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec3::saturating_sub_unsigned( + let output: Val = bevy::math::IVec3::saturating_sub_unsigned( _self, rhs, ) @@ -2685,148 +3270,221 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = IVec3::div(_self, rhs).into(); + let output: Val = bevy::math::IVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: i32| { - let output: Val = IVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = IVec3::add(_self, rhs).into(); + let output: Val = bevy::math::IVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: i32| { - let output: Val = IVec3::div(_self, rhs).into(); + let output: Val = bevy::math::IVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = IVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: i32| { - let output: Val = IVec3::add(_self, rhs).into(); + let output: Val = bevy::math::IVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = IVec3::neg(_self).into(); + let output: Val = bevy::math::IVec3::neg(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = IVec3::clone(_self).into(); + let output: Val = bevy::math::IVec3::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = IVec3::eq(_self, other).into(); + let output: bool = bevy::math::IVec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = IVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = IVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = IVec3::add(_self, rhs).into(); + let output: Val = bevy::math::IVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = IVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: i32| { - let output: Val = IVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = IVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec3::rem( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "add", |_self: Val, rhs: i32| { - let output: Val = IVec4::add(_self, rhs).into(); + let output: Val = bevy::math::IVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = IVec4::add(_self, rhs).into(); + let output: Val = bevy::math::IVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = IVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = IVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: i32, y: i32, z: i32, w: i32| { - let output: Val = IVec4::new(x, y, z, w).into(); + let output: Val = bevy::math::IVec4::new( + x, + y, + z, + w, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: i32| { - let output: Val = IVec4::splat(v).into(); + let output: Val = bevy::math::IVec4::splat(v) + .into(); output }, ) @@ -2837,7 +3495,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = IVec4::select( + let output: Val = bevy::math::IVec4::select( mask, if_true, if_false, @@ -2849,63 +3507,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i32; 4]| { - let output: Val = IVec4::from_array(a).into(); + let output: Val = bevy::math::IVec4::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i32; 4] = IVec4::to_array(_self).into(); + let output: [i32; 4] = bevy::math::IVec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = IVec4::truncate(_self).into(); + let output: Val = bevy::math::IVec4::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: i32| { - let output: Val = IVec4::with_x(_self, x).into(); + let output: Val = bevy::math::IVec4::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: i32| { - let output: Val = IVec4::with_y(_self, y).into(); + let output: Val = bevy::math::IVec4::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: i32| { - let output: Val = IVec4::with_z(_self, z).into(); + let output: Val = bevy::math::IVec4::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_w", |_self: Val, w: i32| { - let output: Val = IVec4::with_w(_self, w).into(); + let output: Val = bevy::math::IVec4::with_w( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i32 = IVec4::dot(_self, rhs).into(); + let output: i32 = bevy::math::IVec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = IVec4::dot_into_vec(_self, rhs) + let output: Val = bevy::math::IVec4::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -2913,14 +3594,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = IVec4::min(_self, rhs).into(); + let output: Val = bevy::math::IVec4::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = IVec4::max(_self, rhs).into(); + let output: Val = bevy::math::IVec4::max( + _self, + rhs, + ) + .into(); output }, ) @@ -2931,7 +3620,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = IVec4::clamp(_self, min, max) + let output: Val = bevy::math::IVec4::clamp( + _self, + min, + max, + ) .into(); output }, @@ -2939,112 +3632,143 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i32 = IVec4::min_element(_self).into(); + let output: i32 = bevy::math::IVec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i32 = IVec4::max_element(_self).into(); + let output: i32 = bevy::math::IVec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i32 = IVec4::element_sum(_self).into(); + let output: i32 = bevy::math::IVec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i32 = IVec4::element_product(_self).into(); + let output: i32 = bevy::math::IVec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmpne(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmpge(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmple(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = IVec4::cmplt(_self, rhs).into(); + let output: Val = bevy::math::IVec4::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = IVec4::abs(_self).into(); + let output: Val = bevy::math::IVec4::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = IVec4::signum(_self).into(); + let output: Val = bevy::math::IVec4::signum(_self) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = IVec4::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::IVec4::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i32 = IVec4::length_squared(_self).into(); + let output: i32 = bevy::math::IVec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i32 = IVec4::distance_squared(_self, rhs).into(); + let output: i32 = bevy::math::IVec4::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec4::div_euclid(_self, rhs) + let output: Val = bevy::math::IVec4::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -3052,7 +3776,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = IVec4::rem_euclid(_self, rhs) + let output: Val = bevy::math::IVec4::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -3060,28 +3787,37 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec4", |_self: Ref| { - let output: Val = IVec4::as_vec4(_self).into(); + let output: Val = bevy::math::IVec4::as_vec4(_self) + .into(); output }, ) .overwrite_script_function( "as_dvec4", |_self: Ref| { - let output: Val = IVec4::as_dvec4(_self).into(); + let output: Val = bevy::math::IVec4::as_dvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec4", |_self: Ref| { - let output: Val = IVec4::as_uvec4(_self).into(); + let output: Val = bevy::math::IVec4::as_uvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec4", |_self: Ref| { - let output: Val = IVec4::as_i64vec4(_self) + let output: Val = bevy::math::IVec4::as_i64vec4( + _self, + ) .into(); output }, @@ -3089,7 +3825,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec4", |_self: Ref| { - let output: Val = IVec4::as_u64vec4(_self) + let output: Val = bevy::math::IVec4::as_u64vec4( + _self, + ) .into(); output }, @@ -3097,7 +3835,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_add(_self, rhs) + let output: Val = bevy::math::IVec4::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -3105,7 +3846,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_sub(_self, rhs) + let output: Val = bevy::math::IVec4::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -3113,7 +3857,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_mul(_self, rhs) + let output: Val = bevy::math::IVec4::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -3121,7 +3868,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_div(_self, rhs) + let output: Val = bevy::math::IVec4::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -3129,7 +3879,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_add( + let output: Val = bevy::math::IVec4::saturating_add( _self, rhs, ) @@ -3140,7 +3890,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_sub( + let output: Val = bevy::math::IVec4::saturating_sub( _self, rhs, ) @@ -3151,7 +3901,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_mul( + let output: Val = bevy::math::IVec4::saturating_mul( _self, rhs, ) @@ -3162,7 +3912,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_div( + let output: Val = bevy::math::IVec4::saturating_div( _self, rhs, ) @@ -3173,7 +3923,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_add_unsigned( + let output: Val = bevy::math::IVec4::wrapping_add_unsigned( _self, rhs, ) @@ -3184,7 +3934,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec4::wrapping_sub_unsigned( + let output: Val = bevy::math::IVec4::wrapping_sub_unsigned( _self, rhs, ) @@ -3195,7 +3945,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_add_unsigned( + let output: Val = bevy::math::IVec4::saturating_add_unsigned( _self, rhs, ) @@ -3206,7 +3956,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = IVec4::saturating_sub_unsigned( + let output: Val = bevy::math::IVec4::saturating_sub_unsigned( _self, rhs, ) @@ -3217,120 +3967,175 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = IVec4::add(_self, rhs).into(); + let output: Val = bevy::math::IVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: i32| { - let output: Val = IVec4::div(_self, rhs).into(); + let output: Val = bevy::math::IVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = IVec4::eq(_self, other).into(); + let output: bool = bevy::math::IVec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = IVec4::div(_self, rhs).into(); + let output: Val = bevy::math::IVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = IVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = IVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: i32| { - let output: Val = IVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = IVec4::clone(_self).into(); + let output: Val = bevy::math::IVec4::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = IVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::IVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = IVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: i32| { - let output: Val = IVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::IVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = IVec4::neg(_self).into(); + let output: Val = bevy::math::IVec4::neg(_self) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = IVec4::div(_self, rhs).into(); + let output: Val = bevy::math::IVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = IVec4::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::IVec4::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: i32| { - let output: Val = IVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::IVec4::rem( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = I64Vec2::neg(_self).into(); + let output: Val = bevy::math::I64Vec2::neg( + _self, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: i64| { - let output: Val = I64Vec2::rem(_self, rhs) + let output: Val = bevy::math::I64Vec2::rem( + _self, + rhs, + ) .into(); output }, @@ -3338,7 +4143,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::div(_self, rhs) + let output: Val = bevy::math::I64Vec2::div( + _self, + rhs, + ) .into(); output }, @@ -3346,15 +4154,21 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = I64Vec2::rem(_self, rhs) - .into(); + let output: Val = bevy::math::I64Vec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: i64| { - let output: Val = I64Vec2::sub(_self, rhs) + let output: Val = bevy::math::I64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -3362,7 +4176,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = I64Vec2::sub(_self, rhs) + let output: Val = bevy::math::I64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -3370,14 +4187,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = I64Vec2::eq(_self, other).into(); + let output: bool = bevy::math::I64Vec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::rem(_self, rhs) + let output: Val = bevy::math::I64Vec2::rem( + _self, + rhs, + ) .into(); output }, @@ -3385,14 +4205,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = I64Vec2::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::I64Vec2::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = I64Vec2::add(_self, rhs) + let output: Val = bevy::math::I64Vec2::add( + _self, + rhs, + ) .into(); output }, @@ -3400,7 +4226,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: i64| { - let output: Val = I64Vec2::add(_self, rhs) + let output: Val = bevy::math::I64Vec2::add( + _self, + rhs, + ) .into(); output }, @@ -3408,14 +4237,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = I64Vec2::clone(_self).into(); + let output: Val = bevy::math::I64Vec2::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::add(_self, rhs) + let output: Val = bevy::math::I64Vec2::add( + _self, + rhs, + ) .into(); output }, @@ -3423,7 +4258,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::mul(_self, rhs) + let output: Val = bevy::math::I64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -3431,14 +4269,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |x: i64, y: i64| { - let output: Val = I64Vec2::new(x, y).into(); + let output: Val = bevy::math::I64Vec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: i64| { - let output: Val = I64Vec2::splat(v).into(); + let output: Val = bevy::math::I64Vec2::splat(v) + .into(); output }, ) @@ -3449,7 +4289,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = I64Vec2::select( + let output: Val = bevy::math::I64Vec2::select( mask, if_true, if_false, @@ -3461,21 +4301,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i64; 2]| { - let output: Val = I64Vec2::from_array(a).into(); + let output: Val = bevy::math::I64Vec2::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i64; 2] = I64Vec2::to_array(_self).into(); + let output: [i64; 2] = bevy::math::I64Vec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: i64| { - let output: Val = I64Vec2::extend(_self, z) + let output: Val = bevy::math::I64Vec2::extend( + _self, + z, + ) .into(); output }, @@ -3483,7 +4329,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: i64| { - let output: Val = I64Vec2::with_x(_self, x) + let output: Val = bevy::math::I64Vec2::with_x( + _self, + x, + ) .into(); output }, @@ -3491,7 +4340,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: i64| { - let output: Val = I64Vec2::with_y(_self, y) + let output: Val = bevy::math::I64Vec2::with_y( + _self, + y, + ) .into(); output }, @@ -3499,14 +4351,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i64 = I64Vec2::dot(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::dot_into_vec( + let output: Val = bevy::math::I64Vec2::dot_into_vec( _self, rhs, ) @@ -3517,7 +4369,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::min(_self, rhs) + let output: Val = bevy::math::I64Vec2::min( + _self, + rhs, + ) .into(); output }, @@ -3525,7 +4380,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::max(_self, rhs) + let output: Val = bevy::math::I64Vec2::max( + _self, + rhs, + ) .into(); output }, @@ -3537,7 +4395,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = I64Vec2::clamp( + let output: Val = bevy::math::I64Vec2::clamp( _self, min, max, @@ -3549,35 +4407,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i64 = I64Vec2::min_element(_self).into(); + let output: i64 = bevy::math::I64Vec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i64 = I64Vec2::max_element(_self).into(); + let output: i64 = bevy::math::I64Vec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i64 = I64Vec2::element_sum(_self).into(); + let output: i64 = bevy::math::I64Vec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i64 = I64Vec2::element_product(_self).into(); + let output: i64 = bevy::math::I64Vec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmpeq(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -3585,7 +4446,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmpne(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmpne( + _self, + rhs, + ) .into(); output }, @@ -3593,7 +4457,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmpge(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmpge( + _self, + rhs, + ) .into(); output }, @@ -3601,7 +4468,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmpgt(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -3609,7 +4479,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmple(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmple( + _self, + rhs, + ) .into(); output }, @@ -3617,7 +4490,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::cmplt(_self, rhs) + let output: Val = bevy::math::I64Vec2::cmplt( + _self, + rhs, + ) .into(); output }, @@ -3625,42 +4501,50 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Val| { - let output: Val = I64Vec2::abs(_self).into(); + let output: Val = bevy::math::I64Vec2::abs( + _self, + ) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = I64Vec2::signum(_self).into(); + let output: Val = bevy::math::I64Vec2::signum( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = I64Vec2::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::I64Vec2::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i64 = I64Vec2::length_squared(_self).into(); + let output: i64 = bevy::math::I64Vec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i64 = I64Vec2::distance_squared(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec2::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::div_euclid( + let output: Val = bevy::math::I64Vec2::div_euclid( _self, rhs, ) @@ -3671,7 +4555,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::rem_euclid( + let output: Val = bevy::math::I64Vec2::rem_euclid( _self, rhs, ) @@ -3682,21 +4566,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perp", |_self: Val| { - let output: Val = I64Vec2::perp(_self).into(); + let output: Val = bevy::math::I64Vec2::perp( + _self, + ) + .into(); output }, ) .overwrite_script_function( "perp_dot", |_self: Val, rhs: Val| { - let output: i64 = I64Vec2::perp_dot(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec2::perp_dot(_self, rhs).into(); output }, ) .overwrite_script_function( "rotate", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::rotate(_self, rhs) + let output: Val = bevy::math::I64Vec2::rotate( + _self, + rhs, + ) .into(); output }, @@ -3704,35 +4594,49 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec2", |_self: Ref| { - let output: Val = I64Vec2::as_vec2(_self).into(); + let output: Val = bevy::math::I64Vec2::as_vec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec2", |_self: Ref| { - let output: Val = I64Vec2::as_dvec2(_self).into(); + let output: Val = bevy::math::I64Vec2::as_dvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec2", |_self: Ref| { - let output: Val = I64Vec2::as_ivec2(_self).into(); + let output: Val = bevy::math::I64Vec2::as_ivec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec2", |_self: Ref| { - let output: Val = I64Vec2::as_uvec2(_self).into(); + let output: Val = bevy::math::I64Vec2::as_uvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_u64vec2", |_self: Ref| { - let output: Val = I64Vec2::as_u64vec2(_self) + let output: Val = bevy::math::I64Vec2::as_u64vec2( + _self, + ) .into(); output }, @@ -3740,7 +4644,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_add( + let output: Val = bevy::math::I64Vec2::wrapping_add( _self, rhs, ) @@ -3751,7 +4655,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_sub( + let output: Val = bevy::math::I64Vec2::wrapping_sub( _self, rhs, ) @@ -3762,7 +4666,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_mul( + let output: Val = bevy::math::I64Vec2::wrapping_mul( _self, rhs, ) @@ -3773,7 +4677,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_div( + let output: Val = bevy::math::I64Vec2::wrapping_div( _self, rhs, ) @@ -3784,7 +4688,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_add( + let output: Val = bevy::math::I64Vec2::saturating_add( _self, rhs, ) @@ -3795,7 +4699,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_sub( + let output: Val = bevy::math::I64Vec2::saturating_sub( _self, rhs, ) @@ -3806,7 +4710,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_mul( + let output: Val = bevy::math::I64Vec2::saturating_mul( _self, rhs, ) @@ -3817,7 +4721,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_div( + let output: Val = bevy::math::I64Vec2::saturating_div( _self, rhs, ) @@ -3828,7 +4732,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_add_unsigned( + let output: Val = bevy::math::I64Vec2::wrapping_add_unsigned( _self, rhs, ) @@ -3839,7 +4743,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::wrapping_sub_unsigned( + let output: Val = bevy::math::I64Vec2::wrapping_sub_unsigned( _self, rhs, ) @@ -3850,7 +4754,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_add_unsigned( + let output: Val = bevy::math::I64Vec2::saturating_add_unsigned( _self, rhs, ) @@ -3861,7 +4765,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::saturating_sub_unsigned( + let output: Val = bevy::math::I64Vec2::saturating_sub_unsigned( _self, rhs, ) @@ -3872,7 +4776,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: i64| { - let output: Val = I64Vec2::div(_self, rhs) + let output: Val = bevy::math::I64Vec2::div( + _self, + rhs, + ) .into(); output }, @@ -3880,7 +4787,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = I64Vec2::mul(_self, rhs) + let output: Val = bevy::math::I64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -3888,7 +4798,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: i64| { - let output: Val = I64Vec2::mul(_self, rhs) + let output: Val = bevy::math::I64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -3896,7 +4809,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec2::sub(_self, rhs) + let output: Val = bevy::math::I64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -3904,16 +4820,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = I64Vec2::div(_self, rhs) + let output: Val = bevy::math::I64Vec2::div( + _self, + rhs, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = I64Vec3::add(_self, rhs) + let output: Val = bevy::math::I64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -3921,7 +4843,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = I64Vec3::div(_self, rhs) + let output: Val = bevy::math::I64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -3929,7 +4854,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::div(_self, rhs) + let output: Val = bevy::math::I64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -3937,7 +4865,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::add(_self, rhs) + let output: Val = bevy::math::I64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -3945,21 +4876,30 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "neg", |_self: Val| { - let output: Val = I64Vec3::neg(_self).into(); + let output: Val = bevy::math::I64Vec3::neg( + _self, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = I64Vec3::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::I64Vec3::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: i64| { - let output: Val = I64Vec3::mul(_self, rhs) + let output: Val = bevy::math::I64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -3967,14 +4907,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = I64Vec3::eq(_self, other).into(); + let output: bool = bevy::math::I64Vec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = I64Vec3::rem(_self, rhs) + let output: Val = bevy::math::I64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -3982,7 +4925,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = I64Vec3::mul(_self, rhs) + let output: Val = bevy::math::I64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -3990,7 +4936,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::sub(_self, rhs) + let output: Val = bevy::math::I64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -3998,7 +4947,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: i64| { - let output: Val = I64Vec3::rem(_self, rhs) + let output: Val = bevy::math::I64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -4006,7 +4958,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::rem(_self, rhs) + let output: Val = bevy::math::I64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -4014,7 +4969,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: i64| { - let output: Val = I64Vec3::add(_self, rhs) + let output: Val = bevy::math::I64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -4022,7 +4980,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: i64| { - let output: Val = I64Vec3::sub(_self, rhs) + let output: Val = bevy::math::I64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -4030,7 +4991,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: i64| { - let output: Val = I64Vec3::div(_self, rhs) + let output: Val = bevy::math::I64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -4038,7 +5002,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::mul(_self, rhs) + let output: Val = bevy::math::I64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -4046,14 +5013,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |x: i64, y: i64, z: i64| { - let output: Val = I64Vec3::new(x, y, z).into(); + let output: Val = bevy::math::I64Vec3::new( + x, + y, + z, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: i64| { - let output: Val = I64Vec3::splat(v).into(); + let output: Val = bevy::math::I64Vec3::splat(v) + .into(); output }, ) @@ -4064,7 +5037,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = I64Vec3::select( + let output: Val = bevy::math::I64Vec3::select( mask, if_true, if_false, @@ -4076,21 +5049,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i64; 3]| { - let output: Val = I64Vec3::from_array(a).into(); + let output: Val = bevy::math::I64Vec3::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i64; 3] = I64Vec3::to_array(_self).into(); + let output: [i64; 3] = bevy::math::I64Vec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: i64| { - let output: Val = I64Vec3::extend(_self, w) + let output: Val = bevy::math::I64Vec3::extend( + _self, + w, + ) .into(); output }, @@ -4098,7 +5077,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = I64Vec3::truncate(_self) + let output: Val = bevy::math::I64Vec3::truncate( + _self, + ) .into(); output }, @@ -4106,7 +5087,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: i64| { - let output: Val = I64Vec3::with_x(_self, x) + let output: Val = bevy::math::I64Vec3::with_x( + _self, + x, + ) .into(); output }, @@ -4114,7 +5098,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: i64| { - let output: Val = I64Vec3::with_y(_self, y) + let output: Val = bevy::math::I64Vec3::with_y( + _self, + y, + ) .into(); output }, @@ -4122,7 +5109,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_z", |_self: Val, z: i64| { - let output: Val = I64Vec3::with_z(_self, z) + let output: Val = bevy::math::I64Vec3::with_z( + _self, + z, + ) .into(); output }, @@ -4130,14 +5120,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i64 = I64Vec3::dot(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::dot_into_vec( + let output: Val = bevy::math::I64Vec3::dot_into_vec( _self, rhs, ) @@ -4148,7 +5138,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cross(_self, rhs) + let output: Val = bevy::math::I64Vec3::cross( + _self, + rhs, + ) .into(); output }, @@ -4156,7 +5149,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::min(_self, rhs) + let output: Val = bevy::math::I64Vec3::min( + _self, + rhs, + ) .into(); output }, @@ -4164,7 +5160,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::max(_self, rhs) + let output: Val = bevy::math::I64Vec3::max( + _self, + rhs, + ) .into(); output }, @@ -4176,7 +5175,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = I64Vec3::clamp( + let output: Val = bevy::math::I64Vec3::clamp( _self, min, max, @@ -4188,35 +5187,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i64 = I64Vec3::min_element(_self).into(); + let output: i64 = bevy::math::I64Vec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i64 = I64Vec3::max_element(_self).into(); + let output: i64 = bevy::math::I64Vec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i64 = I64Vec3::element_sum(_self).into(); + let output: i64 = bevy::math::I64Vec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i64 = I64Vec3::element_product(_self).into(); + let output: i64 = bevy::math::I64Vec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmpeq(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -4224,7 +5226,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmpne(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmpne( + _self, + rhs, + ) .into(); output }, @@ -4232,7 +5237,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmpge(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmpge( + _self, + rhs, + ) .into(); output }, @@ -4240,7 +5248,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmpgt(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -4248,7 +5259,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmple(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmple( + _self, + rhs, + ) .into(); output }, @@ -4256,7 +5270,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::cmplt(_self, rhs) + let output: Val = bevy::math::I64Vec3::cmplt( + _self, + rhs, + ) .into(); output }, @@ -4264,42 +5281,50 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Val| { - let output: Val = I64Vec3::abs(_self).into(); + let output: Val = bevy::math::I64Vec3::abs( + _self, + ) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = I64Vec3::signum(_self).into(); + let output: Val = bevy::math::I64Vec3::signum( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = I64Vec3::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::I64Vec3::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i64 = I64Vec3::length_squared(_self).into(); + let output: i64 = bevy::math::I64Vec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i64 = I64Vec3::distance_squared(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec3::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::div_euclid( + let output: Val = bevy::math::I64Vec3::div_euclid( _self, rhs, ) @@ -4310,7 +5335,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::rem_euclid( + let output: Val = bevy::math::I64Vec3::rem_euclid( _self, rhs, ) @@ -4321,42 +5346,59 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec3", |_self: Ref| { - let output: Val = I64Vec3::as_vec3(_self).into(); + let output: Val = bevy::math::I64Vec3::as_vec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_vec3a", |_self: Ref| { - let output: Val = I64Vec3::as_vec3a(_self).into(); + let output: Val = bevy::math::I64Vec3::as_vec3a( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = I64Vec3::as_dvec3(_self).into(); + let output: Val = bevy::math::I64Vec3::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = I64Vec3::as_ivec3(_self).into(); + let output: Val = bevy::math::I64Vec3::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = I64Vec3::as_uvec3(_self).into(); + let output: Val = bevy::math::I64Vec3::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = I64Vec3::as_u64vec3(_self) + let output: Val = bevy::math::I64Vec3::as_u64vec3( + _self, + ) .into(); output }, @@ -4364,7 +5406,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_add( + let output: Val = bevy::math::I64Vec3::wrapping_add( _self, rhs, ) @@ -4375,7 +5417,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_sub( + let output: Val = bevy::math::I64Vec3::wrapping_sub( _self, rhs, ) @@ -4386,7 +5428,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_mul( + let output: Val = bevy::math::I64Vec3::wrapping_mul( _self, rhs, ) @@ -4397,7 +5439,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_div( + let output: Val = bevy::math::I64Vec3::wrapping_div( _self, rhs, ) @@ -4408,7 +5450,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_add( + let output: Val = bevy::math::I64Vec3::saturating_add( _self, rhs, ) @@ -4419,7 +5461,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_sub( + let output: Val = bevy::math::I64Vec3::saturating_sub( _self, rhs, ) @@ -4430,7 +5472,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_mul( + let output: Val = bevy::math::I64Vec3::saturating_mul( _self, rhs, ) @@ -4441,7 +5483,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_div( + let output: Val = bevy::math::I64Vec3::saturating_div( _self, rhs, ) @@ -4452,7 +5494,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_add_unsigned( + let output: Val = bevy::math::I64Vec3::wrapping_add_unsigned( _self, rhs, ) @@ -4463,7 +5505,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::wrapping_sub_unsigned( + let output: Val = bevy::math::I64Vec3::wrapping_sub_unsigned( _self, rhs, ) @@ -4474,7 +5516,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_add_unsigned( + let output: Val = bevy::math::I64Vec3::saturating_add_unsigned( _self, rhs, ) @@ -4485,7 +5527,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec3::saturating_sub_unsigned( + let output: Val = bevy::math::I64Vec3::saturating_sub_unsigned( _self, rhs, ) @@ -4496,7 +5538,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = I64Vec3::sub(_self, rhs) + let output: Val = bevy::math::I64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -4504,15 +5549,21 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = I64Vec3::clone(_self).into(); + let output: Val = bevy::math::I64Vec3::clone( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = I64Vec4::sub(_self, rhs) + let output: Val = bevy::math::I64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -4520,14 +5571,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = I64Vec4::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::I64Vec4::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = I64Vec4::add(_self, rhs) + let output: Val = bevy::math::I64Vec4::add( + _self, + rhs, + ) .into(); output }, @@ -4535,7 +5592,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = I64Vec4::rem(_self, rhs) + let output: Val = bevy::math::I64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -4543,7 +5603,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::add(_self, rhs) + let output: Val = bevy::math::I64Vec4::add( + _self, + rhs, + ) .into(); output }, @@ -4551,14 +5614,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = I64Vec4::clone(_self).into(); + let output: Val = bevy::math::I64Vec4::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = I64Vec4::div(_self, rhs) + let output: Val = bevy::math::I64Vec4::div( + _self, + rhs, + ) .into(); output }, @@ -4566,7 +5635,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: i64| { - let output: Val = I64Vec4::sub(_self, rhs) + let output: Val = bevy::math::I64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -4574,15 +5646,21 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::div(_self, rhs) - .into(); + let output: Val = bevy::math::I64Vec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: i64| { - let output: Val = I64Vec4::add(_self, rhs) + let output: Val = bevy::math::I64Vec4::add( + _self, + rhs, + ) .into(); output }, @@ -4590,14 +5668,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = I64Vec4::eq(_self, other).into(); + let output: bool = bevy::math::I64Vec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = I64Vec4::mul(_self, rhs) + let output: Val = bevy::math::I64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -4605,7 +5686,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: i64| { - let output: Val = I64Vec4::mul(_self, rhs) + let output: Val = bevy::math::I64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -4613,7 +5697,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::mul(_self, rhs) + let output: Val = bevy::math::I64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -4621,7 +5708,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: i64| { - let output: Val = I64Vec4::rem(_self, rhs) + let output: Val = bevy::math::I64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -4629,7 +5719,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::rem(_self, rhs) + let output: Val = bevy::math::I64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -4637,7 +5730,12 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |x: i64, y: i64, z: i64, w: i64| { - let output: Val = I64Vec4::new(x, y, z, w) + let output: Val = bevy::math::I64Vec4::new( + x, + y, + z, + w, + ) .into(); output }, @@ -4645,7 +5743,8 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "splat", |v: i64| { - let output: Val = I64Vec4::splat(v).into(); + let output: Val = bevy::math::I64Vec4::splat(v) + .into(); output }, ) @@ -4656,7 +5755,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = I64Vec4::select( + let output: Val = bevy::math::I64Vec4::select( mask, if_true, if_false, @@ -4668,21 +5767,26 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [i64; 4]| { - let output: Val = I64Vec4::from_array(a).into(); + let output: Val = bevy::math::I64Vec4::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [i64; 4] = I64Vec4::to_array(_self).into(); + let output: [i64; 4] = bevy::math::I64Vec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = I64Vec4::truncate(_self) + let output: Val = bevy::math::I64Vec4::truncate( + _self, + ) .into(); output }, @@ -4690,7 +5794,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: i64| { - let output: Val = I64Vec4::with_x(_self, x) + let output: Val = bevy::math::I64Vec4::with_x( + _self, + x, + ) .into(); output }, @@ -4698,7 +5805,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: i64| { - let output: Val = I64Vec4::with_y(_self, y) + let output: Val = bevy::math::I64Vec4::with_y( + _self, + y, + ) .into(); output }, @@ -4706,7 +5816,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_z", |_self: Val, z: i64| { - let output: Val = I64Vec4::with_z(_self, z) + let output: Val = bevy::math::I64Vec4::with_z( + _self, + z, + ) .into(); output }, @@ -4714,7 +5827,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_w", |_self: Val, w: i64| { - let output: Val = I64Vec4::with_w(_self, w) + let output: Val = bevy::math::I64Vec4::with_w( + _self, + w, + ) .into(); output }, @@ -4722,14 +5838,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: i64 = I64Vec4::dot(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::dot_into_vec( + let output: Val = bevy::math::I64Vec4::dot_into_vec( _self, rhs, ) @@ -4740,7 +5856,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::min(_self, rhs) + let output: Val = bevy::math::I64Vec4::min( + _self, + rhs, + ) .into(); output }, @@ -4748,7 +5867,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::max(_self, rhs) + let output: Val = bevy::math::I64Vec4::max( + _self, + rhs, + ) .into(); output }, @@ -4760,7 +5882,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = I64Vec4::clamp( + let output: Val = bevy::math::I64Vec4::clamp( _self, min, max, @@ -4772,35 +5894,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: i64 = I64Vec4::min_element(_self).into(); + let output: i64 = bevy::math::I64Vec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: i64 = I64Vec4::max_element(_self).into(); + let output: i64 = bevy::math::I64Vec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: i64 = I64Vec4::element_sum(_self).into(); + let output: i64 = bevy::math::I64Vec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: i64 = I64Vec4::element_product(_self).into(); + let output: i64 = bevy::math::I64Vec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmpeq(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -4808,7 +5933,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmpne(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmpne( + _self, + rhs, + ) .into(); output }, @@ -4816,7 +5944,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmpge(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmpge( + _self, + rhs, + ) .into(); output }, @@ -4824,7 +5955,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmpgt(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -4832,7 +5966,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmple(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmple( + _self, + rhs, + ) .into(); output }, @@ -4840,7 +5977,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::cmplt(_self, rhs) + let output: Val = bevy::math::I64Vec4::cmplt( + _self, + rhs, + ) .into(); output }, @@ -4848,42 +5988,50 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Val| { - let output: Val = I64Vec4::abs(_self).into(); + let output: Val = bevy::math::I64Vec4::abs( + _self, + ) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = I64Vec4::signum(_self).into(); + let output: Val = bevy::math::I64Vec4::signum( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = I64Vec4::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::I64Vec4::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: i64 = I64Vec4::length_squared(_self).into(); + let output: i64 = bevy::math::I64Vec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: i64 = I64Vec4::distance_squared(_self, rhs).into(); + let output: i64 = bevy::math::I64Vec4::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::div_euclid( + let output: Val = bevy::math::I64Vec4::div_euclid( _self, rhs, ) @@ -4894,7 +6042,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::rem_euclid( + let output: Val = bevy::math::I64Vec4::rem_euclid( _self, rhs, ) @@ -4905,35 +6053,49 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec4", |_self: Ref| { - let output: Val = I64Vec4::as_vec4(_self).into(); + let output: Val = bevy::math::I64Vec4::as_vec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec4", |_self: Ref| { - let output: Val = I64Vec4::as_dvec4(_self).into(); + let output: Val = bevy::math::I64Vec4::as_dvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec4", |_self: Ref| { - let output: Val = I64Vec4::as_ivec4(_self).into(); + let output: Val = bevy::math::I64Vec4::as_ivec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec4", |_self: Ref| { - let output: Val = I64Vec4::as_uvec4(_self).into(); + let output: Val = bevy::math::I64Vec4::as_uvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_u64vec4", |_self: Ref| { - let output: Val = I64Vec4::as_u64vec4(_self) + let output: Val = bevy::math::I64Vec4::as_u64vec4( + _self, + ) .into(); output }, @@ -4941,7 +6103,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_add( + let output: Val = bevy::math::I64Vec4::wrapping_add( _self, rhs, ) @@ -4952,7 +6114,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_sub( + let output: Val = bevy::math::I64Vec4::wrapping_sub( _self, rhs, ) @@ -4963,7 +6125,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_mul( + let output: Val = bevy::math::I64Vec4::wrapping_mul( _self, rhs, ) @@ -4974,7 +6136,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_div( + let output: Val = bevy::math::I64Vec4::wrapping_div( _self, rhs, ) @@ -4985,7 +6147,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_add( + let output: Val = bevy::math::I64Vec4::saturating_add( _self, rhs, ) @@ -4996,7 +6158,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_sub( + let output: Val = bevy::math::I64Vec4::saturating_sub( _self, rhs, ) @@ -5007,7 +6169,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_mul( + let output: Val = bevy::math::I64Vec4::saturating_mul( _self, rhs, ) @@ -5018,7 +6180,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_div( + let output: Val = bevy::math::I64Vec4::saturating_div( _self, rhs, ) @@ -5029,7 +6191,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_add_unsigned( + let output: Val = bevy::math::I64Vec4::wrapping_add_unsigned( _self, rhs, ) @@ -5040,7 +6202,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::wrapping_sub_unsigned( + let output: Val = bevy::math::I64Vec4::wrapping_sub_unsigned( _self, rhs, ) @@ -5051,7 +6213,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_add_unsigned( + let output: Val = bevy::math::I64Vec4::saturating_add_unsigned( _self, rhs, ) @@ -5062,7 +6224,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub_unsigned", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::saturating_sub_unsigned( + let output: Val = bevy::math::I64Vec4::saturating_sub_unsigned( _self, rhs, ) @@ -5073,14 +6235,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "neg", |_self: Val| { - let output: Val = I64Vec4::neg(_self).into(); + let output: Val = bevy::math::I64Vec4::neg( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = I64Vec4::sub(_self, rhs) + let output: Val = bevy::math::I64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -5088,93 +6256,133 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: i64| { - let output: Val = I64Vec4::div(_self, rhs) + let output: Val = bevy::math::I64Vec4::div( + _self, + rhs, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = UVec2::div(_self, rhs).into(); + let output: Val = bevy::math::UVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = UVec2::add(_self, rhs).into(); + let output: Val = bevy::math::UVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = UVec2::div(_self, rhs).into(); + let output: Val = bevy::math::UVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = UVec2::add(_self, rhs).into(); + let output: Val = bevy::math::UVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: u32| { - let output: Val = UVec2::add(_self, rhs).into(); + let output: Val = bevy::math::UVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = UVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: u32| { - let output: Val = UVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: u32| { - let output: Val = UVec2::div(_self, rhs).into(); + let output: Val = bevy::math::UVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = UVec2::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::UVec2::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = UVec2::eq(_self, other).into(); + let output: bool = bevy::math::UVec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "new", |x: u32, y: u32| { - let output: Val = UVec2::new(x, y).into(); + let output: Val = bevy::math::UVec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: u32| { - let output: Val = UVec2::splat(v).into(); + let output: Val = bevy::math::UVec2::splat(v) + .into(); output }, ) @@ -5185,7 +6393,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = UVec2::select( + let output: Val = bevy::math::UVec2::select( mask, if_true, if_false, @@ -5197,49 +6405,65 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u32; 2]| { - let output: Val = UVec2::from_array(a).into(); + let output: Val = bevy::math::UVec2::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u32; 2] = UVec2::to_array(_self).into(); + let output: [u32; 2] = bevy::math::UVec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: u32| { - let output: Val = UVec2::extend(_self, z).into(); + let output: Val = bevy::math::UVec2::extend( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: u32| { - let output: Val = UVec2::with_x(_self, x).into(); + let output: Val = bevy::math::UVec2::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: u32| { - let output: Val = UVec2::with_y(_self, y).into(); + let output: Val = bevy::math::UVec2::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u32 = UVec2::dot(_self, rhs).into(); + let output: u32 = bevy::math::UVec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = UVec2::dot_into_vec(_self, rhs) + let output: Val = bevy::math::UVec2::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -5247,14 +6471,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = UVec2::min(_self, rhs).into(); + let output: Val = bevy::math::UVec2::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = UVec2::max(_self, rhs).into(); + let output: Val = bevy::math::UVec2::max( + _self, + rhs, + ) + .into(); output }, ) @@ -5265,7 +6497,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = UVec2::clamp(_self, min, max) + let output: Val = bevy::math::UVec2::clamp( + _self, + min, + max, + ) .into(); output }, @@ -5273,105 +6509,138 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u32 = UVec2::min_element(_self).into(); + let output: u32 = bevy::math::UVec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u32 = UVec2::max_element(_self).into(); + let output: u32 = bevy::math::UVec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u32 = UVec2::element_sum(_self).into(); + let output: u32 = bevy::math::UVec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u32 = UVec2::element_product(_self).into(); + let output: u32 = bevy::math::UVec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmpne(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmpge(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmple(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = UVec2::cmplt(_self, rhs).into(); + let output: Val = bevy::math::UVec2::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: u32 = UVec2::length_squared(_self).into(); + let output: u32 = bevy::math::UVec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec2", |_self: Ref| { - let output: Val = UVec2::as_vec2(_self).into(); + let output: Val = bevy::math::UVec2::as_vec2(_self) + .into(); output }, ) .overwrite_script_function( "as_dvec2", |_self: Ref| { - let output: Val = UVec2::as_dvec2(_self).into(); + let output: Val = bevy::math::UVec2::as_dvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec2", |_self: Ref| { - let output: Val = UVec2::as_ivec2(_self).into(); + let output: Val = bevy::math::UVec2::as_ivec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec2", |_self: Ref| { - let output: Val = UVec2::as_i64vec2(_self) + let output: Val = bevy::math::UVec2::as_i64vec2( + _self, + ) .into(); output }, @@ -5379,7 +6648,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec2", |_self: Ref| { - let output: Val = UVec2::as_u64vec2(_self) + let output: Val = bevy::math::UVec2::as_u64vec2( + _self, + ) .into(); output }, @@ -5387,7 +6658,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = UVec2::wrapping_add(_self, rhs) + let output: Val = bevy::math::UVec2::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -5395,7 +6669,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = UVec2::wrapping_sub(_self, rhs) + let output: Val = bevy::math::UVec2::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -5403,7 +6680,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = UVec2::wrapping_mul(_self, rhs) + let output: Val = bevy::math::UVec2::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -5411,7 +6691,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = UVec2::wrapping_div(_self, rhs) + let output: Val = bevy::math::UVec2::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -5419,7 +6702,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = UVec2::saturating_add( + let output: Val = bevy::math::UVec2::saturating_add( _self, rhs, ) @@ -5430,7 +6713,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = UVec2::saturating_sub( + let output: Val = bevy::math::UVec2::saturating_sub( _self, rhs, ) @@ -5441,7 +6724,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = UVec2::saturating_mul( + let output: Val = bevy::math::UVec2::saturating_mul( _self, rhs, ) @@ -5452,7 +6735,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = UVec2::saturating_div( + let output: Val = bevy::math::UVec2::saturating_div( _self, rhs, ) @@ -5463,7 +6746,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec2::wrapping_add_signed( + let output: Val = bevy::math::UVec2::wrapping_add_signed( _self, rhs, ) @@ -5474,7 +6757,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec2::saturating_add_signed( + let output: Val = bevy::math::UVec2::saturating_add_signed( _self, rhs, ) @@ -5485,92 +6768,135 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = UVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = UVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: u32| { - let output: Val = UVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = UVec2::clone(_self).into(); + let output: Val = bevy::math::UVec2::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = UVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = UVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = UVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: u32| { - let output: Val = UVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec2::sub( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "div", |_self: Val, rhs: u32| { - let output: Val = UVec3::div(_self, rhs).into(); + let output: Val = bevy::math::UVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = UVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = UVec3::add(_self, rhs).into(); + let output: Val = bevy::math::UVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: u32, y: u32, z: u32| { - let output: Val = UVec3::new(x, y, z).into(); + let output: Val = bevy::math::UVec3::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: u32| { - let output: Val = UVec3::splat(v).into(); + let output: Val = bevy::math::UVec3::splat(v) + .into(); output }, ) @@ -5581,7 +6907,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = UVec3::select( + let output: Val = bevy::math::UVec3::select( mask, if_true, if_false, @@ -5593,63 +6919,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u32; 3]| { - let output: Val = UVec3::from_array(a).into(); + let output: Val = bevy::math::UVec3::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u32; 3] = UVec3::to_array(_self).into(); + let output: [u32; 3] = bevy::math::UVec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: u32| { - let output: Val = UVec3::extend(_self, w).into(); + let output: Val = bevy::math::UVec3::extend( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = UVec3::truncate(_self).into(); + let output: Val = bevy::math::UVec3::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: u32| { - let output: Val = UVec3::with_x(_self, x).into(); + let output: Val = bevy::math::UVec3::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: u32| { - let output: Val = UVec3::with_y(_self, y).into(); + let output: Val = bevy::math::UVec3::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: u32| { - let output: Val = UVec3::with_z(_self, z).into(); + let output: Val = bevy::math::UVec3::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u32 = UVec3::dot(_self, rhs).into(); + let output: u32 = bevy::math::UVec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = UVec3::dot_into_vec(_self, rhs) + let output: Val = bevy::math::UVec3::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -5657,21 +7006,33 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = UVec3::cross(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cross( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = UVec3::min(_self, rhs).into(); + let output: Val = bevy::math::UVec3::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = UVec3::max(_self, rhs).into(); + let output: Val = bevy::math::UVec3::max( + _self, + rhs, + ) + .into(); output }, ) @@ -5682,7 +7043,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = UVec3::clamp(_self, min, max) + let output: Val = bevy::math::UVec3::clamp( + _self, + min, + max, + ) .into(); output }, @@ -5690,112 +7055,148 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u32 = UVec3::min_element(_self).into(); + let output: u32 = bevy::math::UVec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u32 = UVec3::max_element(_self).into(); + let output: u32 = bevy::math::UVec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u32 = UVec3::element_sum(_self).into(); + let output: u32 = bevy::math::UVec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u32 = UVec3::element_product(_self).into(); + let output: u32 = bevy::math::UVec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmpne(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmpge(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmple(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = UVec3::cmplt(_self, rhs).into(); + let output: Val = bevy::math::UVec3::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: u32 = UVec3::length_squared(_self).into(); + let output: u32 = bevy::math::UVec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec3", |_self: Ref| { - let output: Val = UVec3::as_vec3(_self).into(); + let output: Val = bevy::math::UVec3::as_vec3(_self) + .into(); output }, ) .overwrite_script_function( "as_vec3a", |_self: Ref| { - let output: Val = UVec3::as_vec3a(_self).into(); + let output: Val = bevy::math::UVec3::as_vec3a( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = UVec3::as_dvec3(_self).into(); + let output: Val = bevy::math::UVec3::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = UVec3::as_ivec3(_self).into(); + let output: Val = bevy::math::UVec3::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = UVec3::as_i64vec3(_self) + let output: Val = bevy::math::UVec3::as_i64vec3( + _self, + ) .into(); output }, @@ -5803,7 +7204,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = UVec3::as_u64vec3(_self) + let output: Val = bevy::math::UVec3::as_u64vec3( + _self, + ) .into(); output }, @@ -5811,7 +7214,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = UVec3::wrapping_add(_self, rhs) + let output: Val = bevy::math::UVec3::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -5819,7 +7225,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = UVec3::wrapping_sub(_self, rhs) + let output: Val = bevy::math::UVec3::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -5827,7 +7236,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = UVec3::wrapping_mul(_self, rhs) + let output: Val = bevy::math::UVec3::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -5835,7 +7247,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = UVec3::wrapping_div(_self, rhs) + let output: Val = bevy::math::UVec3::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -5843,7 +7258,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = UVec3::saturating_add( + let output: Val = bevy::math::UVec3::saturating_add( _self, rhs, ) @@ -5854,7 +7269,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = UVec3::saturating_sub( + let output: Val = bevy::math::UVec3::saturating_sub( _self, rhs, ) @@ -5865,7 +7280,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = UVec3::saturating_mul( + let output: Val = bevy::math::UVec3::saturating_mul( _self, rhs, ) @@ -5876,7 +7291,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = UVec3::saturating_div( + let output: Val = bevy::math::UVec3::saturating_div( _self, rhs, ) @@ -5887,7 +7302,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec3::wrapping_add_signed( + let output: Val = bevy::math::UVec3::wrapping_add_signed( _self, rhs, ) @@ -5898,7 +7313,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec3::saturating_add_signed( + let output: Val = bevy::math::UVec3::saturating_add_signed( _self, rhs, ) @@ -5909,141 +7324,211 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = UVec3::add(_self, rhs).into(); + let output: Val = bevy::math::UVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = UVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: u32| { - let output: Val = UVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: u32| { - let output: Val = UVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = UVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = UVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: u32| { - let output: Val = UVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = UVec3::div(_self, rhs).into(); + let output: Val = bevy::math::UVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = UVec3::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::UVec3::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: u32| { - let output: Val = UVec3::add(_self, rhs).into(); + let output: Val = bevy::math::UVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = UVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = UVec3::clone(_self).into(); + let output: Val = bevy::math::UVec3::clone(_self) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = UVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = UVec3::eq(_self, other).into(); + let output: bool = bevy::math::UVec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = UVec3::div(_self, rhs).into(); + let output: Val = bevy::math::UVec3::div( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = UVec4::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::UVec4::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = UVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = UVec4::add(_self, rhs).into(); + let output: Val = bevy::math::UVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: u32, y: u32, z: u32, w: u32| { - let output: Val = UVec4::new(x, y, z, w).into(); + let output: Val = bevy::math::UVec4::new( + x, + y, + z, + w, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: u32| { - let output: Val = UVec4::splat(v).into(); + let output: Val = bevy::math::UVec4::splat(v) + .into(); output }, ) @@ -6054,7 +7539,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = UVec4::select( + let output: Val = bevy::math::UVec4::select( mask, if_true, if_false, @@ -6066,63 +7551,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u32; 4]| { - let output: Val = UVec4::from_array(a).into(); + let output: Val = bevy::math::UVec4::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u32; 4] = UVec4::to_array(_self).into(); + let output: [u32; 4] = bevy::math::UVec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = UVec4::truncate(_self).into(); + let output: Val = bevy::math::UVec4::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: u32| { - let output: Val = UVec4::with_x(_self, x).into(); + let output: Val = bevy::math::UVec4::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: u32| { - let output: Val = UVec4::with_y(_self, y).into(); + let output: Val = bevy::math::UVec4::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: u32| { - let output: Val = UVec4::with_z(_self, z).into(); + let output: Val = bevy::math::UVec4::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_w", |_self: Val, w: u32| { - let output: Val = UVec4::with_w(_self, w).into(); + let output: Val = bevy::math::UVec4::with_w( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u32 = UVec4::dot(_self, rhs).into(); + let output: u32 = bevy::math::UVec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = UVec4::dot_into_vec(_self, rhs) + let output: Val = bevy::math::UVec4::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -6130,14 +7638,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = UVec4::min(_self, rhs).into(); + let output: Val = bevy::math::UVec4::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = UVec4::max(_self, rhs).into(); + let output: Val = bevy::math::UVec4::max( + _self, + rhs, + ) + .into(); output }, ) @@ -6148,7 +7664,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = UVec4::clamp(_self, min, max) + let output: Val = bevy::math::UVec4::clamp( + _self, + min, + max, + ) .into(); output }, @@ -6156,105 +7676,138 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u32 = UVec4::min_element(_self).into(); + let output: u32 = bevy::math::UVec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u32 = UVec4::max_element(_self).into(); + let output: u32 = bevy::math::UVec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u32 = UVec4::element_sum(_self).into(); + let output: u32 = bevy::math::UVec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u32 = UVec4::element_product(_self).into(); + let output: u32 = bevy::math::UVec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmpne(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmpge(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmple(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = UVec4::cmplt(_self, rhs).into(); + let output: Val = bevy::math::UVec4::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: u32 = UVec4::length_squared(_self).into(); + let output: u32 = bevy::math::UVec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec4", |_self: Ref| { - let output: Val = UVec4::as_vec4(_self).into(); + let output: Val = bevy::math::UVec4::as_vec4(_self) + .into(); output }, ) .overwrite_script_function( "as_dvec4", |_self: Ref| { - let output: Val = UVec4::as_dvec4(_self).into(); + let output: Val = bevy::math::UVec4::as_dvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec4", |_self: Ref| { - let output: Val = UVec4::as_ivec4(_self).into(); + let output: Val = bevy::math::UVec4::as_ivec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec4", |_self: Ref| { - let output: Val = UVec4::as_i64vec4(_self) + let output: Val = bevy::math::UVec4::as_i64vec4( + _self, + ) .into(); output }, @@ -6262,7 +7815,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec4", |_self: Ref| { - let output: Val = UVec4::as_u64vec4(_self) + let output: Val = bevy::math::UVec4::as_u64vec4( + _self, + ) .into(); output }, @@ -6270,7 +7825,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = UVec4::wrapping_add(_self, rhs) + let output: Val = bevy::math::UVec4::wrapping_add( + _self, + rhs, + ) .into(); output }, @@ -6278,7 +7836,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = UVec4::wrapping_sub(_self, rhs) + let output: Val = bevy::math::UVec4::wrapping_sub( + _self, + rhs, + ) .into(); output }, @@ -6286,7 +7847,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = UVec4::wrapping_mul(_self, rhs) + let output: Val = bevy::math::UVec4::wrapping_mul( + _self, + rhs, + ) .into(); output }, @@ -6294,7 +7858,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = UVec4::wrapping_div(_self, rhs) + let output: Val = bevy::math::UVec4::wrapping_div( + _self, + rhs, + ) .into(); output }, @@ -6302,7 +7869,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = UVec4::saturating_add( + let output: Val = bevy::math::UVec4::saturating_add( _self, rhs, ) @@ -6313,7 +7880,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = UVec4::saturating_sub( + let output: Val = bevy::math::UVec4::saturating_sub( _self, rhs, ) @@ -6324,7 +7891,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = UVec4::saturating_mul( + let output: Val = bevy::math::UVec4::saturating_mul( _self, rhs, ) @@ -6335,7 +7902,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = UVec4::saturating_div( + let output: Val = bevy::math::UVec4::saturating_div( _self, rhs, ) @@ -6346,7 +7913,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec4::wrapping_add_signed( + let output: Val = bevy::math::UVec4::wrapping_add_signed( _self, rhs, ) @@ -6357,7 +7924,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = UVec4::saturating_add_signed( + let output: Val = bevy::math::UVec4::saturating_add_signed( _self, rhs, ) @@ -6368,120 +7935,179 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = UVec4::clone(_self).into(); + let output: Val = bevy::math::UVec4::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = UVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = UVec4::div(_self, rhs).into(); + let output: Val = bevy::math::UVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = UVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: u32| { - let output: Val = UVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = UVec4::add(_self, rhs).into(); + let output: Val = bevy::math::UVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = UVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: u32| { - let output: Val = UVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::UVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = UVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::UVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = UVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = UVec4::div(_self, rhs).into(); + let output: Val = bevy::math::UVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: u32| { - let output: Val = UVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::UVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: u32| { - let output: Val = UVec4::div(_self, rhs).into(); + let output: Val = bevy::math::UVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = UVec4::eq(_self, other).into(); + let output: bool = bevy::math::UVec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: u32| { - let output: Val = UVec4::add(_self, rhs).into(); + let output: Val = bevy::math::UVec4::add( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = U64Vec2::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::U64Vec2::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::sub(_self, rhs) + let output: Val = bevy::math::U64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -6489,7 +8115,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: u64| { - let output: Val = U64Vec2::add(_self, rhs) + let output: Val = bevy::math::U64Vec2::add( + _self, + rhs, + ) .into(); output }, @@ -6497,7 +8126,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: u64| { - let output: Val = U64Vec2::rem(_self, rhs) + let output: Val = bevy::math::U64Vec2::rem( + _self, + rhs, + ) .into(); output }, @@ -6505,7 +8137,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = U64Vec2::sub(_self, rhs) + let output: Val = bevy::math::U64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -6513,7 +8148,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: u64| { - let output: Val = U64Vec2::div(_self, rhs) + let output: Val = bevy::math::U64Vec2::div( + _self, + rhs, + ) .into(); output }, @@ -6521,7 +8159,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = U64Vec2::div(_self, rhs) + let output: Val = bevy::math::U64Vec2::div( + _self, + rhs, + ) .into(); output }, @@ -6529,7 +8170,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::div(_self, rhs) + let output: Val = bevy::math::U64Vec2::div( + _self, + rhs, + ) .into(); output }, @@ -6537,7 +8181,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = U64Vec2::rem(_self, rhs) + let output: Val = bevy::math::U64Vec2::rem( + _self, + rhs, + ) .into(); output }, @@ -6545,7 +8192,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: u64| { - let output: Val = U64Vec2::sub(_self, rhs) + let output: Val = bevy::math::U64Vec2::sub( + _self, + rhs, + ) .into(); output }, @@ -6553,7 +8203,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = U64Vec2::mul(_self, rhs) + let output: Val = bevy::math::U64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -6561,21 +8214,23 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = U64Vec2::eq(_self, other).into(); + let output: bool = bevy::math::U64Vec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "new", |x: u64, y: u64| { - let output: Val = U64Vec2::new(x, y).into(); + let output: Val = bevy::math::U64Vec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: u64| { - let output: Val = U64Vec2::splat(v).into(); + let output: Val = bevy::math::U64Vec2::splat(v) + .into(); output }, ) @@ -6586,7 +8241,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = U64Vec2::select( + let output: Val = bevy::math::U64Vec2::select( mask, if_true, if_false, @@ -6598,21 +8253,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u64; 2]| { - let output: Val = U64Vec2::from_array(a).into(); + let output: Val = bevy::math::U64Vec2::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u64; 2] = U64Vec2::to_array(_self).into(); + let output: [u64; 2] = bevy::math::U64Vec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: u64| { - let output: Val = U64Vec2::extend(_self, z) + let output: Val = bevy::math::U64Vec2::extend( + _self, + z, + ) .into(); output }, @@ -6620,7 +8281,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: u64| { - let output: Val = U64Vec2::with_x(_self, x) + let output: Val = bevy::math::U64Vec2::with_x( + _self, + x, + ) .into(); output }, @@ -6628,7 +8292,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: u64| { - let output: Val = U64Vec2::with_y(_self, y) + let output: Val = bevy::math::U64Vec2::with_y( + _self, + y, + ) .into(); output }, @@ -6636,14 +8303,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u64 = U64Vec2::dot(_self, rhs).into(); + let output: u64 = bevy::math::U64Vec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::dot_into_vec( + let output: Val = bevy::math::U64Vec2::dot_into_vec( _self, rhs, ) @@ -6654,7 +8321,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::min(_self, rhs) + let output: Val = bevy::math::U64Vec2::min( + _self, + rhs, + ) .into(); output }, @@ -6662,7 +8332,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::max(_self, rhs) + let output: Val = bevy::math::U64Vec2::max( + _self, + rhs, + ) .into(); output }, @@ -6674,7 +8347,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = U64Vec2::clamp( + let output: Val = bevy::math::U64Vec2::clamp( _self, min, max, @@ -6686,35 +8359,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u64 = U64Vec2::min_element(_self).into(); + let output: u64 = bevy::math::U64Vec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u64 = U64Vec2::max_element(_self).into(); + let output: u64 = bevy::math::U64Vec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u64 = U64Vec2::element_sum(_self).into(); + let output: u64 = bevy::math::U64Vec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u64 = U64Vec2::element_product(_self).into(); + let output: u64 = bevy::math::U64Vec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmpeq(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -6722,7 +8398,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmpne(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmpne( + _self, + rhs, + ) .into(); output }, @@ -6730,7 +8409,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmpge(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmpge( + _self, + rhs, + ) .into(); output }, @@ -6738,7 +8420,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmpgt(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -6746,7 +8431,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmple(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmple( + _self, + rhs, + ) .into(); output }, @@ -6754,7 +8442,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::cmplt(_self, rhs) + let output: Val = bevy::math::U64Vec2::cmplt( + _self, + rhs, + ) .into(); output }, @@ -6762,42 +8453,56 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length_squared", |_self: Val| { - let output: u64 = U64Vec2::length_squared(_self).into(); + let output: u64 = bevy::math::U64Vec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec2", |_self: Ref| { - let output: Val = U64Vec2::as_vec2(_self).into(); + let output: Val = bevy::math::U64Vec2::as_vec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec2", |_self: Ref| { - let output: Val = U64Vec2::as_dvec2(_self).into(); + let output: Val = bevy::math::U64Vec2::as_dvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec2", |_self: Ref| { - let output: Val = U64Vec2::as_ivec2(_self).into(); + let output: Val = bevy::math::U64Vec2::as_ivec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec2", |_self: Ref| { - let output: Val = U64Vec2::as_uvec2(_self).into(); + let output: Val = bevy::math::U64Vec2::as_uvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec2", |_self: Ref| { - let output: Val = U64Vec2::as_i64vec2(_self) + let output: Val = bevy::math::U64Vec2::as_i64vec2( + _self, + ) .into(); output }, @@ -6805,7 +8510,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::wrapping_add( + let output: Val = bevy::math::U64Vec2::wrapping_add( _self, rhs, ) @@ -6816,7 +8521,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::wrapping_sub( + let output: Val = bevy::math::U64Vec2::wrapping_sub( _self, rhs, ) @@ -6827,7 +8532,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::wrapping_mul( + let output: Val = bevy::math::U64Vec2::wrapping_mul( _self, rhs, ) @@ -6838,7 +8543,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::wrapping_div( + let output: Val = bevy::math::U64Vec2::wrapping_div( _self, rhs, ) @@ -6849,7 +8554,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::saturating_add( + let output: Val = bevy::math::U64Vec2::saturating_add( _self, rhs, ) @@ -6860,7 +8565,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::saturating_sub( + let output: Val = bevy::math::U64Vec2::saturating_sub( _self, rhs, ) @@ -6871,7 +8576,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::saturating_mul( + let output: Val = bevy::math::U64Vec2::saturating_mul( _self, rhs, ) @@ -6882,7 +8587,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::saturating_div( + let output: Val = bevy::math::U64Vec2::saturating_div( _self, rhs, ) @@ -6893,7 +8598,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::wrapping_add_signed( + let output: Val = bevy::math::U64Vec2::wrapping_add_signed( _self, rhs, ) @@ -6904,7 +8609,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::saturating_add_signed( + let output: Val = bevy::math::U64Vec2::saturating_add_signed( _self, rhs, ) @@ -6915,7 +8620,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: u64| { - let output: Val = U64Vec2::mul(_self, rhs) + let output: Val = bevy::math::U64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -6923,14 +8631,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = U64Vec2::clone(_self).into(); + let output: Val = bevy::math::U64Vec2::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::mul(_self, rhs) + let output: Val = bevy::math::U64Vec2::mul( + _self, + rhs, + ) .into(); output }, @@ -6938,7 +8652,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::add(_self, rhs) + let output: Val = bevy::math::U64Vec2::add( + _self, + rhs, + ) .into(); output }, @@ -6946,7 +8663,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = U64Vec2::rem(_self, rhs) + let output: Val = bevy::math::U64Vec2::rem( + _self, + rhs, + ) .into(); output }, @@ -6954,16 +8674,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = U64Vec2::add(_self, rhs) + let output: Val = bevy::math::U64Vec2::add( + _self, + rhs, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::mul(_self, rhs) + let output: Val = bevy::math::U64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -6971,7 +8697,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = U64Vec3::sub(_self, rhs) + let output: Val = bevy::math::U64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -6979,7 +8708,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = U64Vec3::div(_self, rhs) + let output: Val = bevy::math::U64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -6987,7 +8719,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::rem(_self, rhs) + let output: Val = bevy::math::U64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -6995,7 +8730,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::div(_self, rhs) + let output: Val = bevy::math::U64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -7003,7 +8741,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: u64| { - let output: Val = U64Vec3::div(_self, rhs) + let output: Val = bevy::math::U64Vec3::div( + _self, + rhs, + ) .into(); output }, @@ -7011,7 +8752,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: u64| { - let output: Val = U64Vec3::mul(_self, rhs) + let output: Val = bevy::math::U64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -7019,7 +8763,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = U64Vec3::mul(_self, rhs) + let output: Val = bevy::math::U64Vec3::mul( + _self, + rhs, + ) .into(); output }, @@ -7027,7 +8774,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = U64Vec3::rem(_self, rhs) + let output: Val = bevy::math::U64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -7035,7 +8785,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::add(_self, rhs) + let output: Val = bevy::math::U64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -7043,7 +8796,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: u64| { - let output: Val = U64Vec3::add(_self, rhs) + let output: Val = bevy::math::U64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -7051,7 +8807,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::sub(_self, rhs) + let output: Val = bevy::math::U64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -7059,7 +8818,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: u64| { - let output: Val = U64Vec3::sub(_self, rhs) + let output: Val = bevy::math::U64Vec3::sub( + _self, + rhs, + ) .into(); output }, @@ -7067,14 +8829,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |x: u64, y: u64, z: u64| { - let output: Val = U64Vec3::new(x, y, z).into(); + let output: Val = bevy::math::U64Vec3::new( + x, + y, + z, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: u64| { - let output: Val = U64Vec3::splat(v).into(); + let output: Val = bevy::math::U64Vec3::splat(v) + .into(); output }, ) @@ -7085,7 +8853,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = U64Vec3::select( + let output: Val = bevy::math::U64Vec3::select( mask, if_true, if_false, @@ -7097,21 +8865,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u64; 3]| { - let output: Val = U64Vec3::from_array(a).into(); + let output: Val = bevy::math::U64Vec3::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u64; 3] = U64Vec3::to_array(_self).into(); + let output: [u64; 3] = bevy::math::U64Vec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: u64| { - let output: Val = U64Vec3::extend(_self, w) + let output: Val = bevy::math::U64Vec3::extend( + _self, + w, + ) .into(); output }, @@ -7119,7 +8893,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = U64Vec3::truncate(_self) + let output: Val = bevy::math::U64Vec3::truncate( + _self, + ) .into(); output }, @@ -7127,7 +8903,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: u64| { - let output: Val = U64Vec3::with_x(_self, x) + let output: Val = bevy::math::U64Vec3::with_x( + _self, + x, + ) .into(); output }, @@ -7135,7 +8914,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: u64| { - let output: Val = U64Vec3::with_y(_self, y) + let output: Val = bevy::math::U64Vec3::with_y( + _self, + y, + ) .into(); output }, @@ -7143,7 +8925,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_z", |_self: Val, z: u64| { - let output: Val = U64Vec3::with_z(_self, z) + let output: Val = bevy::math::U64Vec3::with_z( + _self, + z, + ) .into(); output }, @@ -7151,14 +8936,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u64 = U64Vec3::dot(_self, rhs).into(); + let output: u64 = bevy::math::U64Vec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::dot_into_vec( + let output: Val = bevy::math::U64Vec3::dot_into_vec( _self, rhs, ) @@ -7169,7 +8954,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cross(_self, rhs) + let output: Val = bevy::math::U64Vec3::cross( + _self, + rhs, + ) .into(); output }, @@ -7177,7 +8965,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::min(_self, rhs) + let output: Val = bevy::math::U64Vec3::min( + _self, + rhs, + ) .into(); output }, @@ -7185,7 +8976,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::max(_self, rhs) + let output: Val = bevy::math::U64Vec3::max( + _self, + rhs, + ) .into(); output }, @@ -7197,7 +8991,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = U64Vec3::clamp( + let output: Val = bevy::math::U64Vec3::clamp( _self, min, max, @@ -7209,35 +9003,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u64 = U64Vec3::min_element(_self).into(); + let output: u64 = bevy::math::U64Vec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u64 = U64Vec3::max_element(_self).into(); + let output: u64 = bevy::math::U64Vec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u64 = U64Vec3::element_sum(_self).into(); + let output: u64 = bevy::math::U64Vec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u64 = U64Vec3::element_product(_self).into(); + let output: u64 = bevy::math::U64Vec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmpeq(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -7245,7 +9042,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmpne(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmpne( + _self, + rhs, + ) .into(); output }, @@ -7253,7 +9053,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmpge(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmpge( + _self, + rhs, + ) .into(); output }, @@ -7261,7 +9064,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmpgt(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -7269,7 +9075,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmple(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmple( + _self, + rhs, + ) .into(); output }, @@ -7277,7 +9086,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::cmplt(_self, rhs) + let output: Val = bevy::math::U64Vec3::cmplt( + _self, + rhs, + ) .into(); output }, @@ -7285,49 +9097,66 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length_squared", |_self: Val| { - let output: u64 = U64Vec3::length_squared(_self).into(); + let output: u64 = bevy::math::U64Vec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec3", |_self: Ref| { - let output: Val = U64Vec3::as_vec3(_self).into(); + let output: Val = bevy::math::U64Vec3::as_vec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_vec3a", |_self: Ref| { - let output: Val = U64Vec3::as_vec3a(_self).into(); + let output: Val = bevy::math::U64Vec3::as_vec3a( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = U64Vec3::as_dvec3(_self).into(); + let output: Val = bevy::math::U64Vec3::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = U64Vec3::as_ivec3(_self).into(); + let output: Val = bevy::math::U64Vec3::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = U64Vec3::as_uvec3(_self).into(); + let output: Val = bevy::math::U64Vec3::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = U64Vec3::as_i64vec3(_self) + let output: Val = bevy::math::U64Vec3::as_i64vec3( + _self, + ) .into(); output }, @@ -7335,7 +9164,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::wrapping_add( + let output: Val = bevy::math::U64Vec3::wrapping_add( _self, rhs, ) @@ -7346,7 +9175,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::wrapping_sub( + let output: Val = bevy::math::U64Vec3::wrapping_sub( _self, rhs, ) @@ -7357,7 +9186,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::wrapping_mul( + let output: Val = bevy::math::U64Vec3::wrapping_mul( _self, rhs, ) @@ -7368,7 +9197,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::wrapping_div( + let output: Val = bevy::math::U64Vec3::wrapping_div( _self, rhs, ) @@ -7379,7 +9208,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::saturating_add( + let output: Val = bevy::math::U64Vec3::saturating_add( _self, rhs, ) @@ -7390,7 +9219,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::saturating_sub( + let output: Val = bevy::math::U64Vec3::saturating_sub( _self, rhs, ) @@ -7401,7 +9230,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::saturating_mul( + let output: Val = bevy::math::U64Vec3::saturating_mul( _self, rhs, ) @@ -7412,7 +9241,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::saturating_div( + let output: Val = bevy::math::U64Vec3::saturating_div( _self, rhs, ) @@ -7423,7 +9252,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::wrapping_add_signed( + let output: Val = bevy::math::U64Vec3::wrapping_add_signed( _self, rhs, ) @@ -7434,7 +9263,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec3::saturating_add_signed( + let output: Val = bevy::math::U64Vec3::saturating_add_signed( _self, rhs, ) @@ -7445,7 +9274,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: u64| { - let output: Val = U64Vec3::rem(_self, rhs) + let output: Val = bevy::math::U64Vec3::rem( + _self, + rhs, + ) .into(); output }, @@ -7453,7 +9285,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = U64Vec3::add(_self, rhs) + let output: Val = bevy::math::U64Vec3::add( + _self, + rhs, + ) .into(); output }, @@ -7461,29 +9296,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = U64Vec3::eq(_self, other).into(); + let output: bool = bevy::math::U64Vec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = U64Vec3::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::U64Vec3::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = U64Vec3::clone(_self).into(); + let output: Val = bevy::math::U64Vec3::clone( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::rem(_self, rhs) + let output: Val = bevy::math::U64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -7491,7 +9335,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = U64Vec4::mul(_self, rhs) + let output: Val = bevy::math::U64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -7499,7 +9346,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::sub(_self, rhs) + let output: Val = bevy::math::U64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -7507,7 +9357,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = U64Vec4::rem(_self, rhs) + let output: Val = bevy::math::U64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -7515,28 +9368,37 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = U64Vec4::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::U64Vec4::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = U64Vec4::eq(_self, other).into(); + let output: bool = bevy::math::U64Vec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = U64Vec4::clone(_self).into(); + let output: Val = bevy::math::U64Vec4::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::div(_self, rhs) + let output: Val = bevy::math::U64Vec4::div( + _self, + rhs, + ) .into(); output }, @@ -7544,7 +9406,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: u64| { - let output: Val = U64Vec4::div(_self, rhs) + let output: Val = bevy::math::U64Vec4::div( + _self, + rhs, + ) .into(); output }, @@ -7552,7 +9417,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::add(_self, rhs) + let output: Val = bevy::math::U64Vec4::add( + _self, + rhs, + ) .into(); output }, @@ -7560,7 +9428,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::mul(_self, rhs) + let output: Val = bevy::math::U64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -7568,7 +9439,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem", |_self: Val, rhs: u64| { - let output: Val = U64Vec4::rem(_self, rhs) + let output: Val = bevy::math::U64Vec4::rem( + _self, + rhs, + ) .into(); output }, @@ -7576,7 +9450,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: u64| { - let output: Val = U64Vec4::mul(_self, rhs) + let output: Val = bevy::math::U64Vec4::mul( + _self, + rhs, + ) .into(); output }, @@ -7584,7 +9461,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = U64Vec4::add(_self, rhs) + let output: Val = bevy::math::U64Vec4::add( + _self, + rhs, + ) .into(); output }, @@ -7592,7 +9472,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = U64Vec4::sub(_self, rhs) + let output: Val = bevy::math::U64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -7600,7 +9483,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = U64Vec4::div(_self, rhs) + let output: Val = bevy::math::U64Vec4::div( + _self, + rhs, + ) .into(); output }, @@ -7608,7 +9494,12 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "new", |x: u64, y: u64, z: u64, w: u64| { - let output: Val = U64Vec4::new(x, y, z, w) + let output: Val = bevy::math::U64Vec4::new( + x, + y, + z, + w, + ) .into(); output }, @@ -7616,7 +9507,8 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "splat", |v: u64| { - let output: Val = U64Vec4::splat(v).into(); + let output: Val = bevy::math::U64Vec4::splat(v) + .into(); output }, ) @@ -7627,7 +9519,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = U64Vec4::select( + let output: Val = bevy::math::U64Vec4::select( mask, if_true, if_false, @@ -7639,21 +9531,26 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [u64; 4]| { - let output: Val = U64Vec4::from_array(a).into(); + let output: Val = bevy::math::U64Vec4::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [u64; 4] = U64Vec4::to_array(_self).into(); + let output: [u64; 4] = bevy::math::U64Vec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = U64Vec4::truncate(_self) + let output: Val = bevy::math::U64Vec4::truncate( + _self, + ) .into(); output }, @@ -7661,7 +9558,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_x", |_self: Val, x: u64| { - let output: Val = U64Vec4::with_x(_self, x) + let output: Val = bevy::math::U64Vec4::with_x( + _self, + x, + ) .into(); output }, @@ -7669,7 +9569,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_y", |_self: Val, y: u64| { - let output: Val = U64Vec4::with_y(_self, y) + let output: Val = bevy::math::U64Vec4::with_y( + _self, + y, + ) .into(); output }, @@ -7677,7 +9580,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_z", |_self: Val, z: u64| { - let output: Val = U64Vec4::with_z(_self, z) + let output: Val = bevy::math::U64Vec4::with_z( + _self, + z, + ) .into(); output }, @@ -7685,7 +9591,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "with_w", |_self: Val, w: u64| { - let output: Val = U64Vec4::with_w(_self, w) + let output: Val = bevy::math::U64Vec4::with_w( + _self, + w, + ) .into(); output }, @@ -7693,14 +9602,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: u64 = U64Vec4::dot(_self, rhs).into(); + let output: u64 = bevy::math::U64Vec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::dot_into_vec( + let output: Val = bevy::math::U64Vec4::dot_into_vec( _self, rhs, ) @@ -7711,7 +9620,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::min(_self, rhs) + let output: Val = bevy::math::U64Vec4::min( + _self, + rhs, + ) .into(); output }, @@ -7719,7 +9631,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::max(_self, rhs) + let output: Val = bevy::math::U64Vec4::max( + _self, + rhs, + ) .into(); output }, @@ -7731,7 +9646,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = U64Vec4::clamp( + let output: Val = bevy::math::U64Vec4::clamp( _self, min, max, @@ -7743,35 +9658,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: u64 = U64Vec4::min_element(_self).into(); + let output: u64 = bevy::math::U64Vec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: u64 = U64Vec4::max_element(_self).into(); + let output: u64 = bevy::math::U64Vec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: u64 = U64Vec4::element_sum(_self).into(); + let output: u64 = bevy::math::U64Vec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: u64 = U64Vec4::element_product(_self).into(); + let output: u64 = bevy::math::U64Vec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmpeq(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -7779,7 +9697,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmpne(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmpne( + _self, + rhs, + ) .into(); output }, @@ -7787,7 +9708,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmpge(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmpge( + _self, + rhs, + ) .into(); output }, @@ -7795,7 +9719,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmpgt(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -7803,7 +9730,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmple(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmple( + _self, + rhs, + ) .into(); output }, @@ -7811,7 +9741,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::cmplt(_self, rhs) + let output: Val = bevy::math::U64Vec4::cmplt( + _self, + rhs, + ) .into(); output }, @@ -7819,42 +9752,56 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length_squared", |_self: Val| { - let output: u64 = U64Vec4::length_squared(_self).into(); + let output: u64 = bevy::math::U64Vec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "as_vec4", |_self: Ref| { - let output: Val = U64Vec4::as_vec4(_self).into(); + let output: Val = bevy::math::U64Vec4::as_vec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_dvec4", |_self: Ref| { - let output: Val = U64Vec4::as_dvec4(_self).into(); + let output: Val = bevy::math::U64Vec4::as_dvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec4", |_self: Ref| { - let output: Val = U64Vec4::as_ivec4(_self).into(); + let output: Val = bevy::math::U64Vec4::as_ivec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec4", |_self: Ref| { - let output: Val = U64Vec4::as_uvec4(_self).into(); + let output: Val = bevy::math::U64Vec4::as_uvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec4", |_self: Ref| { - let output: Val = U64Vec4::as_i64vec4(_self) + let output: Val = bevy::math::U64Vec4::as_i64vec4( + _self, + ) .into(); output }, @@ -7862,7 +9809,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::wrapping_add( + let output: Val = bevy::math::U64Vec4::wrapping_add( _self, rhs, ) @@ -7873,7 +9820,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::wrapping_sub( + let output: Val = bevy::math::U64Vec4::wrapping_sub( _self, rhs, ) @@ -7884,7 +9831,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::wrapping_mul( + let output: Val = bevy::math::U64Vec4::wrapping_mul( _self, rhs, ) @@ -7895,7 +9842,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::wrapping_div( + let output: Val = bevy::math::U64Vec4::wrapping_div( _self, rhs, ) @@ -7906,7 +9853,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::saturating_add( + let output: Val = bevy::math::U64Vec4::saturating_add( _self, rhs, ) @@ -7917,7 +9864,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_sub", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::saturating_sub( + let output: Val = bevy::math::U64Vec4::saturating_sub( _self, rhs, ) @@ -7928,7 +9875,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_mul", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::saturating_mul( + let output: Val = bevy::math::U64Vec4::saturating_mul( _self, rhs, ) @@ -7939,7 +9886,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_div", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::saturating_div( + let output: Val = bevy::math::U64Vec4::saturating_div( _self, rhs, ) @@ -7950,7 +9897,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "wrapping_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::wrapping_add_signed( + let output: Val = bevy::math::U64Vec4::wrapping_add_signed( _self, rhs, ) @@ -7961,7 +9908,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "saturating_add_signed", |_self: Val, rhs: Val| { - let output: Val = U64Vec4::saturating_add_signed( + let output: Val = bevy::math::U64Vec4::saturating_add_signed( _self, rhs, ) @@ -7972,7 +9919,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub", |_self: Val, rhs: u64| { - let output: Val = U64Vec4::sub(_self, rhs) + let output: Val = bevy::math::U64Vec4::sub( + _self, + rhs, + ) .into(); output }, @@ -7980,72 +9930,84 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add", |_self: Val, rhs: u64| { - let output: Val = U64Vec4::add(_self, rhs) + let output: Val = bevy::math::U64Vec4::add( + _self, + rhs, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Vec2::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Vec2::add(_self, rhs).into(); + let output: Val = bevy::math::Vec2::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = Vec2::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Vec2::div(_self, rhs).into(); + let output: Val = bevy::math::Vec2::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f32| { - let output: Val = Vec2::add(_self, rhs).into(); + let output: Val = bevy::math::Vec2::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Vec2::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec2::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = Vec2::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec2::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "new", |x: f32, y: f32| { - let output: Val = Vec2::new(x, y).into(); + let output: Val = bevy::math::Vec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: f32| { - let output: Val = Vec2::splat(v).into(); + let output: Val = bevy::math::Vec2::splat(v) + .into(); output }, ) @@ -8056,7 +10018,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = Vec2::select( + let output: Val = bevy::math::Vec2::select( mask, if_true, if_false, @@ -8068,49 +10030,65 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f32; 2]| { - let output: Val = Vec2::from_array(a).into(); + let output: Val = bevy::math::Vec2::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f32; 2] = Vec2::to_array(_self).into(); + let output: [f32; 2] = bevy::math::Vec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: f32| { - let output: Val = Vec2::extend(_self, z).into(); + let output: Val = bevy::math::Vec2::extend( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f32| { - let output: Val = Vec2::with_x(_self, x).into(); + let output: Val = bevy::math::Vec2::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f32| { - let output: Val = Vec2::with_y(_self, y).into(); + let output: Val = bevy::math::Vec2::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f32 = Vec2::dot(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = Vec2::dot_into_vec(_self, rhs) + let output: Val = bevy::math::Vec2::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -8118,14 +10096,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = Vec2::min(_self, rhs).into(); + let output: Val = bevy::math::Vec2::min(_self, rhs) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = Vec2::max(_self, rhs).into(); + let output: Val = bevy::math::Vec2::max(_self, rhs) + .into(); output }, ) @@ -8136,7 +10116,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = Vec2::clamp(_self, min, max) + let output: Val = bevy::math::Vec2::clamp( + _self, + min, + max, + ) .into(); output }, @@ -8144,91 +10128,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f32 = Vec2::min_element(_self).into(); + let output: f32 = bevy::math::Vec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f32 = Vec2::max_element(_self).into(); + let output: f32 = bevy::math::Vec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f32 = Vec2::element_sum(_self).into(); + let output: f32 = bevy::math::Vec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f32 = Vec2::element_product(_self).into(); + let output: f32 = bevy::math::Vec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmpne(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmpge(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmple(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = Vec2::cmplt(_self, rhs).into(); + let output: Val = bevy::math::Vec2::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = Vec2::abs(_self).into(); + let output: Val = bevy::math::Vec2::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = Vec2::signum(_self).into(); + let output: Val = bevy::math::Vec2::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = Vec2::copysign(_self, rhs) + let output: Val = bevy::math::Vec2::copysign( + _self, + rhs, + ) .into(); output }, @@ -8236,21 +10249,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = Vec2::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::Vec2::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Vec2::is_finite(_self).into(); + let output: bool = bevy::math::Vec2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = Vec2::is_finite_mask(_self) + let output: Val = bevy::math::Vec2::is_finite_mask( + _self, + ) .into(); output }, @@ -8258,56 +10274,63 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Vec2::is_nan(_self).into(); + let output: bool = bevy::math::Vec2::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = Vec2::is_nan_mask(_self).into(); + let output: Val = bevy::math::Vec2::is_nan_mask( + _self, + ) + .into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Vec2::length(_self).into(); + let output: f32 = bevy::math::Vec2::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Vec2::length_squared(_self).into(); + let output: f32 = bevy::math::Vec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Vec2::length_recip(_self).into(); + let output: f32 = bevy::math::Vec2::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f32 = Vec2::distance(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f32 = Vec2::distance_squared(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec2::div_euclid(_self, rhs) + let output: Val = bevy::math::Vec2::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -8315,7 +10338,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec2::rem_euclid(_self, rhs) + let output: Val = bevy::math::Vec2::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -8323,14 +10349,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Vec2::normalize(_self).into(); + let output: Val = bevy::math::Vec2::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = Vec2::normalize_or( + let output: Val = bevy::math::Vec2::normalize_or( _self, fallback, ) @@ -8341,7 +10370,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = Vec2::normalize_or_zero(_self) + let output: Val = bevy::math::Vec2::normalize_or_zero( + _self, + ) .into(); output }, @@ -8349,14 +10380,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Vec2::is_normalized(_self).into(); + let output: bool = bevy::math::Vec2::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = Vec2::project_onto(_self, rhs) + let output: Val = bevy::math::Vec2::project_onto( + _self, + rhs, + ) .into(); output }, @@ -8364,7 +10398,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = Vec2::reject_from(_self, rhs) + let output: Val = bevy::math::Vec2::reject_from( + _self, + rhs, + ) .into(); output }, @@ -8372,7 +10409,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec2::project_onto_normalized( + let output: Val = bevy::math::Vec2::project_onto_normalized( _self, rhs, ) @@ -8383,7 +10420,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec2::reject_from_normalized( + let output: Val = bevy::math::Vec2::reject_from_normalized( _self, rhs, ) @@ -8394,77 +10431,95 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = Vec2::round(_self).into(); + let output: Val = bevy::math::Vec2::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = Vec2::floor(_self).into(); + let output: Val = bevy::math::Vec2::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = Vec2::ceil(_self).into(); + let output: Val = bevy::math::Vec2::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = Vec2::trunc(_self).into(); + let output: Val = bevy::math::Vec2::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = Vec2::fract(_self).into(); + let output: Val = bevy::math::Vec2::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = Vec2::fract_gl(_self).into(); + let output: Val = bevy::math::Vec2::fract_gl(_self) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = Vec2::exp(_self).into(); + let output: Val = bevy::math::Vec2::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f32| { - let output: Val = Vec2::powf(_self, n).into(); + let output: Val = bevy::math::Vec2::powf(_self, n) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = Vec2::recip(_self).into(); + let output: Val = bevy::math::Vec2::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f32| { - let output: Val = Vec2::lerp(_self, rhs, s).into(); + let output: Val = bevy::math::Vec2::lerp( + _self, + rhs, + s, + ) + .into(); output }, ) .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f32| { - let output: Val = Vec2::move_towards(_self, rhs, d) + let output: Val = bevy::math::Vec2::move_towards( + _self, + rhs, + d, + ) .into(); output }, @@ -8472,7 +10527,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = Vec2::midpoint(_self, rhs) + let output: Val = bevy::math::Vec2::midpoint( + _self, + rhs, + ) .into(); output }, @@ -8484,7 +10542,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Vec2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Vec2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -8492,7 +10554,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f32, max: f32| { - let output: Val = Vec2::clamp_length( + let output: Val = bevy::math::Vec2::clamp_length( _self, min, max, @@ -8504,7 +10566,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f32| { - let output: Val = Vec2::clamp_length_max( + let output: Val = bevy::math::Vec2::clamp_length_max( _self, max, ) @@ -8515,7 +10577,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f32| { - let output: Val = Vec2::clamp_length_min( + let output: Val = bevy::math::Vec2::clamp_length_min( _self, min, ) @@ -8530,7 +10592,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = Vec2::mul_add(_self, a, b) + let output: Val = bevy::math::Vec2::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -8538,7 +10604,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = Vec2::reflect(_self, normal) + let output: Val = bevy::math::Vec2::reflect( + _self, + normal, + ) .into(); output }, @@ -8546,7 +10615,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "refract", |_self: Val, normal: Val, eta: f32| { - let output: Val = Vec2::refract(_self, normal, eta) + let output: Val = bevy::math::Vec2::refract( + _self, + normal, + eta, + ) .into(); output }, @@ -8554,49 +10627,57 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f32| { - let output: Val = Vec2::from_angle(angle).into(); + let output: Val = bevy::math::Vec2::from_angle( + angle, + ) + .into(); output }, ) .overwrite_script_function( "to_angle", |_self: Val| { - let output: f32 = Vec2::to_angle(_self).into(); + let output: f32 = bevy::math::Vec2::to_angle(_self).into(); output }, ) .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f32 = Vec2::angle_between(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::angle_between(_self, rhs).into(); output }, ) .overwrite_script_function( "angle_to", |_self: Val, rhs: Val| { - let output: f32 = Vec2::angle_to(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::angle_to(_self, rhs).into(); output }, ) .overwrite_script_function( "perp", |_self: Val| { - let output: Val = Vec2::perp(_self).into(); + let output: Val = bevy::math::Vec2::perp(_self) + .into(); output }, ) .overwrite_script_function( "perp_dot", |_self: Val, rhs: Val| { - let output: f32 = Vec2::perp_dot(_self, rhs).into(); + let output: f32 = bevy::math::Vec2::perp_dot(_self, rhs).into(); output }, ) .overwrite_script_function( "rotate", |_self: Val, rhs: Val| { - let output: Val = Vec2::rotate(_self, rhs).into(); + let output: Val = bevy::math::Vec2::rotate( + _self, + rhs, + ) + .into(); output }, ) @@ -8607,7 +10688,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_angle: f32| { - let output: Val = Vec2::rotate_towards( + let output: Val = bevy::math::Vec2::rotate_towards( _self, rhs, max_angle, @@ -8619,28 +10700,39 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_dvec2", |_self: Ref| { - let output: Val = Vec2::as_dvec2(_self).into(); + let output: Val = bevy::math::Vec2::as_dvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec2", |_self: Ref| { - let output: Val = Vec2::as_ivec2(_self).into(); + let output: Val = bevy::math::Vec2::as_ivec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec2", |_self: Ref| { - let output: Val = Vec2::as_uvec2(_self).into(); + let output: Val = bevy::math::Vec2::as_uvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec2", |_self: Ref| { - let output: Val = Vec2::as_i64vec2(_self) + let output: Val = bevy::math::Vec2::as_i64vec2( + _self, + ) .into(); output }, @@ -8648,7 +10740,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec2", |_self: Ref| { - let output: Val = Vec2::as_u64vec2(_self) + let output: Val = bevy::math::Vec2::as_u64vec2( + _self, + ) .into(); output }, @@ -8656,127 +10750,159 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Vec2::eq(_self, other).into(); + let output: bool = bevy::math::Vec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Vec2::clone(_self).into(); + let output: Val = bevy::math::Vec2::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = Vec2::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec2::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = Vec2::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec2::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f32| { - let output: Val = Vec2::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec2::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = Vec2::div(_self, rhs).into(); + let output: Val = bevy::math::Vec2::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f32| { - let output: Val = Vec2::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec2::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Vec2::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Vec2::neg(_self).into(); + let output: Val = bevy::math::Vec2::neg(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = Vec2::add(_self, rhs).into(); + let output: Val = bevy::math::Vec2::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = Vec2::div(_self, rhs).into(); + let output: Val = bevy::math::Vec2::div(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = Vec3A::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Vec3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = Vec3A::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Vec3A::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f32| { - let output: Val = Vec3A::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: f32, y: f32, z: f32| { - let output: Val = Vec3A::new(x, y, z).into(); + let output: Val = bevy::math::Vec3A::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: f32| { - let output: Val = Vec3A::splat(v).into(); + let output: Val = bevy::math::Vec3A::splat(v) + .into(); output }, ) @@ -8787,7 +10913,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = Vec3A::select( + let output: Val = bevy::math::Vec3A::select( mask, if_true, if_false, @@ -8799,70 +10925,94 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f32; 3]| { - let output: Val = Vec3A::from_array(a).into(); + let output: Val = bevy::math::Vec3A::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f32; 3] = Vec3A::to_array(_self).into(); + let output: [f32; 3] = bevy::math::Vec3A::to_array(_self).into(); output }, ) .overwrite_script_function( "from_vec4", |v: Val| { - let output: Val = Vec3A::from_vec4(v).into(); + let output: Val = bevy::math::Vec3A::from_vec4(v) + .into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: f32| { - let output: Val = Vec3A::extend(_self, w).into(); + let output: Val = bevy::math::Vec3A::extend( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = Vec3A::truncate(_self).into(); + let output: Val = bevy::math::Vec3A::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f32| { - let output: Val = Vec3A::with_x(_self, x).into(); + let output: Val = bevy::math::Vec3A::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f32| { - let output: Val = Vec3A::with_y(_self, y).into(); + let output: Val = bevy::math::Vec3A::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: f32| { - let output: Val = Vec3A::with_z(_self, z).into(); + let output: Val = bevy::math::Vec3A::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f32 = Vec3A::dot(_self, rhs).into(); + let output: f32 = bevy::math::Vec3A::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = Vec3A::dot_into_vec(_self, rhs) + let output: Val = bevy::math::Vec3A::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -8870,21 +11020,33 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cross(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::cross( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = Vec3A::min(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = Vec3A::max(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::max( + _self, + rhs, + ) + .into(); output }, ) @@ -8895,7 +11057,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = Vec3A::clamp(_self, min, max) + let output: Val = bevy::math::Vec3A::clamp( + _self, + min, + max, + ) .into(); output }, @@ -8903,35 +11069,38 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f32 = Vec3A::min_element(_self).into(); + let output: f32 = bevy::math::Vec3A::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f32 = Vec3A::max_element(_self).into(); + let output: f32 = bevy::math::Vec3A::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f32 = Vec3A::element_sum(_self).into(); + let output: f32 = bevy::math::Vec3A::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f32 = Vec3A::element_product(_self).into(); + let output: f32 = bevy::math::Vec3A::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmpeq(_self, rhs) + let output: Val = bevy::math::Vec3A::cmpeq( + _self, + rhs, + ) .into(); output }, @@ -8939,7 +11108,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmpne(_self, rhs) + let output: Val = bevy::math::Vec3A::cmpne( + _self, + rhs, + ) .into(); output }, @@ -8947,7 +11119,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmpge(_self, rhs) + let output: Val = bevy::math::Vec3A::cmpge( + _self, + rhs, + ) .into(); output }, @@ -8955,7 +11130,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmpgt(_self, rhs) + let output: Val = bevy::math::Vec3A::cmpgt( + _self, + rhs, + ) .into(); output }, @@ -8963,7 +11141,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmple(_self, rhs) + let output: Val = bevy::math::Vec3A::cmple( + _self, + rhs, + ) .into(); output }, @@ -8971,7 +11152,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = Vec3A::cmplt(_self, rhs) + let output: Val = bevy::math::Vec3A::cmplt( + _self, + rhs, + ) .into(); output }, @@ -8979,21 +11163,26 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Val| { - let output: Val = Vec3A::abs(_self).into(); + let output: Val = bevy::math::Vec3A::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = Vec3A::signum(_self).into(); + let output: Val = bevy::math::Vec3A::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = Vec3A::copysign(_self, rhs) + let output: Val = bevy::math::Vec3A::copysign( + _self, + rhs, + ) .into(); output }, @@ -9001,21 +11190,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = Vec3A::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::Vec3A::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Vec3A::is_finite(_self).into(); + let output: bool = bevy::math::Vec3A::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = Vec3A::is_finite_mask(_self) + let output: Val = bevy::math::Vec3A::is_finite_mask( + _self, + ) .into(); output }, @@ -9023,14 +11215,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Vec3A::is_nan(_self).into(); + let output: bool = bevy::math::Vec3A::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = Vec3A::is_nan_mask(_self) + let output: Val = bevy::math::Vec3A::is_nan_mask( + _self, + ) .into(); output }, @@ -9038,42 +11232,46 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Vec3A::length(_self).into(); + let output: f32 = bevy::math::Vec3A::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Vec3A::length_squared(_self).into(); + let output: f32 = bevy::math::Vec3A::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Vec3A::length_recip(_self).into(); + let output: f32 = bevy::math::Vec3A::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f32 = Vec3A::distance(_self, rhs).into(); + let output: f32 = bevy::math::Vec3A::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f32 = Vec3A::distance_squared(_self, rhs).into(); + let output: f32 = bevy::math::Vec3A::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec3A::div_euclid(_self, rhs) + let output: Val = bevy::math::Vec3A::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -9081,7 +11279,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec3A::rem_euclid(_self, rhs) + let output: Val = bevy::math::Vec3A::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -9089,14 +11290,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Vec3A::normalize(_self).into(); + let output: Val = bevy::math::Vec3A::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = Vec3A::normalize_or( + let output: Val = bevy::math::Vec3A::normalize_or( _self, fallback, ) @@ -9107,7 +11311,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = Vec3A::normalize_or_zero(_self) + let output: Val = bevy::math::Vec3A::normalize_or_zero( + _self, + ) .into(); output }, @@ -9115,14 +11321,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Vec3A::is_normalized(_self).into(); + let output: bool = bevy::math::Vec3A::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = Vec3A::project_onto(_self, rhs) + let output: Val = bevy::math::Vec3A::project_onto( + _self, + rhs, + ) .into(); output }, @@ -9130,7 +11339,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = Vec3A::reject_from(_self, rhs) + let output: Val = bevy::math::Vec3A::reject_from( + _self, + rhs, + ) .into(); output }, @@ -9138,7 +11350,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec3A::project_onto_normalized( + let output: Val = bevy::math::Vec3A::project_onto_normalized( _self, rhs, ) @@ -9149,7 +11361,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec3A::reject_from_normalized( + let output: Val = bevy::math::Vec3A::reject_from_normalized( _self, rhs, ) @@ -9160,70 +11372,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = Vec3A::round(_self).into(); + let output: Val = bevy::math::Vec3A::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = Vec3A::floor(_self).into(); + let output: Val = bevy::math::Vec3A::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = Vec3A::ceil(_self).into(); + let output: Val = bevy::math::Vec3A::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = Vec3A::trunc(_self).into(); + let output: Val = bevy::math::Vec3A::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = Vec3A::fract(_self).into(); + let output: Val = bevy::math::Vec3A::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = Vec3A::fract_gl(_self).into(); + let output: Val = bevy::math::Vec3A::fract_gl( + _self, + ) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = Vec3A::exp(_self).into(); + let output: Val = bevy::math::Vec3A::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f32| { - let output: Val = Vec3A::powf(_self, n).into(); + let output: Val = bevy::math::Vec3A::powf( + _self, + n, + ) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = Vec3A::recip(_self).into(); + let output: Val = bevy::math::Vec3A::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f32| { - let output: Val = Vec3A::lerp(_self, rhs, s) + let output: Val = bevy::math::Vec3A::lerp( + _self, + rhs, + s, + ) .into(); output }, @@ -9231,7 +11461,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f32| { - let output: Val = Vec3A::move_towards( + let output: Val = bevy::math::Vec3A::move_towards( _self, rhs, d, @@ -9243,7 +11473,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = Vec3A::midpoint(_self, rhs) + let output: Val = bevy::math::Vec3A::midpoint( + _self, + rhs, + ) .into(); output }, @@ -9255,7 +11488,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Vec3A::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Vec3A::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -9263,7 +11500,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f32, max: f32| { - let output: Val = Vec3A::clamp_length( + let output: Val = bevy::math::Vec3A::clamp_length( _self, min, max, @@ -9275,7 +11512,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f32| { - let output: Val = Vec3A::clamp_length_max( + let output: Val = bevy::math::Vec3A::clamp_length_max( _self, max, ) @@ -9286,7 +11523,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f32| { - let output: Val = Vec3A::clamp_length_min( + let output: Val = bevy::math::Vec3A::clamp_length_min( _self, min, ) @@ -9301,7 +11538,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = Vec3A::mul_add(_self, a, b) + let output: Val = bevy::math::Vec3A::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -9309,7 +11550,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = Vec3A::reflect(_self, normal) + let output: Val = bevy::math::Vec3A::reflect( + _self, + normal, + ) .into(); output }, @@ -9321,7 +11565,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { normal: Val, eta: f32| { - let output: Val = Vec3A::refract( + let output: Val = bevy::math::Vec3A::refract( _self, normal, eta, @@ -9333,14 +11577,15 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f32 = Vec3A::angle_between(_self, rhs).into(); + let output: f32 = bevy::math::Vec3A::angle_between(_self, rhs) + .into(); output }, ) .overwrite_script_function( "any_orthogonal_vector", |_self: Ref| { - let output: Val = Vec3A::any_orthogonal_vector( + let output: Val = bevy::math::Vec3A::any_orthogonal_vector( _self, ) .into(); @@ -9350,7 +11595,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "any_orthonormal_vector", |_self: Ref| { - let output: Val = Vec3A::any_orthonormal_vector( + let output: Val = bevy::math::Vec3A::any_orthonormal_vector( _self, ) .into(); @@ -9360,28 +11605,39 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_dvec3", |_self: Ref| { - let output: Val = Vec3A::as_dvec3(_self).into(); + let output: Val = bevy::math::Vec3A::as_dvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = Vec3A::as_ivec3(_self).into(); + let output: Val = bevy::math::Vec3A::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = Vec3A::as_uvec3(_self).into(); + let output: Val = bevy::math::Vec3A::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = Vec3A::as_i64vec3(_self) + let output: Val = bevy::math::Vec3A::as_i64vec3( + _self, + ) .into(); output }, @@ -9389,7 +11645,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = Vec3A::as_u64vec3(_self) + let output: Val = bevy::math::Vec3A::as_u64vec3( + _self, + ) .into(); output }, @@ -9397,106 +11655,150 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Vec3A::neg(_self).into(); + let output: Val = bevy::math::Vec3A::neg(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = Vec3A::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Vec3A::clone(_self).into(); + let output: Val = bevy::math::Vec3A::clone(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = Vec3A::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f32| { - let output: Val = Vec3A::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Vec3A::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = Vec3A::div(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Vec3A::add(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Vec3A::eq(_self, rhs).into(); + let output: bool = bevy::math::Vec3A::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = Vec3A::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f32| { - let output: Val = Vec3A::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Vec3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = Vec3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec3A::mul( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |x: f32, y: f32, z: f32, w: f32| { - let output: Val = Vec4::new(x, y, z, w).into(); + let output: Val = bevy::math::Vec4::new(x, y, z, w) + .into(); output }, ) .overwrite_script_function( "splat", |v: f32| { - let output: Val = Vec4::splat(v).into(); + let output: Val = bevy::math::Vec4::splat(v) + .into(); output }, ) @@ -9507,7 +11809,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = Vec4::select( + let output: Val = bevy::math::Vec4::select( mask, if_true, if_false, @@ -9519,63 +11821,84 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f32; 4]| { - let output: Val = Vec4::from_array(a).into(); + let output: Val = bevy::math::Vec4::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f32; 4] = Vec4::to_array(_self).into(); + let output: [f32; 4] = bevy::math::Vec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = Vec4::truncate(_self).into(); + let output: Val = bevy::math::Vec4::truncate(_self) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f32| { - let output: Val = Vec4::with_x(_self, x).into(); + let output: Val = bevy::math::Vec4::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f32| { - let output: Val = Vec4::with_y(_self, y).into(); + let output: Val = bevy::math::Vec4::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: f32| { - let output: Val = Vec4::with_z(_self, z).into(); + let output: Val = bevy::math::Vec4::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_w", |_self: Val, w: f32| { - let output: Val = Vec4::with_w(_self, w).into(); + let output: Val = bevy::math::Vec4::with_w( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f32 = Vec4::dot(_self, rhs).into(); + let output: f32 = bevy::math::Vec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = Vec4::dot_into_vec(_self, rhs) + let output: Val = bevy::math::Vec4::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -9583,14 +11906,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = Vec4::min(_self, rhs).into(); + let output: Val = bevy::math::Vec4::min(_self, rhs) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = Vec4::max(_self, rhs).into(); + let output: Val = bevy::math::Vec4::max(_self, rhs) + .into(); output }, ) @@ -9601,7 +11926,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = Vec4::clamp(_self, min, max) + let output: Val = bevy::math::Vec4::clamp( + _self, + min, + max, + ) .into(); output }, @@ -9609,91 +11938,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f32 = Vec4::min_element(_self).into(); + let output: f32 = bevy::math::Vec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f32 = Vec4::max_element(_self).into(); + let output: f32 = bevy::math::Vec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f32 = Vec4::element_sum(_self).into(); + let output: f32 = bevy::math::Vec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f32 = Vec4::element_product(_self).into(); + let output: f32 = bevy::math::Vec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmpne(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmpge(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmple(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = Vec4::cmplt(_self, rhs).into(); + let output: Val = bevy::math::Vec4::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = Vec4::abs(_self).into(); + let output: Val = bevy::math::Vec4::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = Vec4::signum(_self).into(); + let output: Val = bevy::math::Vec4::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = Vec4::copysign(_self, rhs) + let output: Val = bevy::math::Vec4::copysign( + _self, + rhs, + ) .into(); output }, @@ -9701,21 +12059,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = Vec4::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::Vec4::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = Vec4::is_finite(_self).into(); + let output: bool = bevy::math::Vec4::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = Vec4::is_finite_mask(_self) + let output: Val = bevy::math::Vec4::is_finite_mask( + _self, + ) .into(); output }, @@ -9723,14 +12084,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = Vec4::is_nan(_self).into(); + let output: bool = bevy::math::Vec4::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = Vec4::is_nan_mask(_self) + let output: Val = bevy::math::Vec4::is_nan_mask( + _self, + ) .into(); output }, @@ -9738,42 +12101,46 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length", |_self: Val| { - let output: f32 = Vec4::length(_self).into(); + let output: f32 = bevy::math::Vec4::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f32 = Vec4::length_squared(_self).into(); + let output: f32 = bevy::math::Vec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f32 = Vec4::length_recip(_self).into(); + let output: f32 = bevy::math::Vec4::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f32 = Vec4::distance(_self, rhs).into(); + let output: f32 = bevy::math::Vec4::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f32 = Vec4::distance_squared(_self, rhs).into(); + let output: f32 = bevy::math::Vec4::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec4::div_euclid(_self, rhs) + let output: Val = bevy::math::Vec4::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -9781,7 +12148,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = Vec4::rem_euclid(_self, rhs) + let output: Val = bevy::math::Vec4::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -9789,14 +12159,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = Vec4::normalize(_self).into(); + let output: Val = bevy::math::Vec4::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = Vec4::normalize_or( + let output: Val = bevy::math::Vec4::normalize_or( _self, fallback, ) @@ -9807,7 +12180,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = Vec4::normalize_or_zero(_self) + let output: Val = bevy::math::Vec4::normalize_or_zero( + _self, + ) .into(); output }, @@ -9815,14 +12190,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = Vec4::is_normalized(_self).into(); + let output: bool = bevy::math::Vec4::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = Vec4::project_onto(_self, rhs) + let output: Val = bevy::math::Vec4::project_onto( + _self, + rhs, + ) .into(); output }, @@ -9830,7 +12208,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = Vec4::reject_from(_self, rhs) + let output: Val = bevy::math::Vec4::reject_from( + _self, + rhs, + ) .into(); output }, @@ -9838,7 +12219,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec4::project_onto_normalized( + let output: Val = bevy::math::Vec4::project_onto_normalized( _self, rhs, ) @@ -9849,7 +12230,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = Vec4::reject_from_normalized( + let output: Val = bevy::math::Vec4::reject_from_normalized( _self, rhs, ) @@ -9860,77 +12241,95 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = Vec4::round(_self).into(); + let output: Val = bevy::math::Vec4::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = Vec4::floor(_self).into(); + let output: Val = bevy::math::Vec4::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = Vec4::ceil(_self).into(); + let output: Val = bevy::math::Vec4::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = Vec4::trunc(_self).into(); + let output: Val = bevy::math::Vec4::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = Vec4::fract(_self).into(); + let output: Val = bevy::math::Vec4::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = Vec4::fract_gl(_self).into(); + let output: Val = bevy::math::Vec4::fract_gl(_self) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = Vec4::exp(_self).into(); + let output: Val = bevy::math::Vec4::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f32| { - let output: Val = Vec4::powf(_self, n).into(); + let output: Val = bevy::math::Vec4::powf(_self, n) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = Vec4::recip(_self).into(); + let output: Val = bevy::math::Vec4::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f32| { - let output: Val = Vec4::lerp(_self, rhs, s).into(); + let output: Val = bevy::math::Vec4::lerp( + _self, + rhs, + s, + ) + .into(); output }, ) .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f32| { - let output: Val = Vec4::move_towards(_self, rhs, d) + let output: Val = bevy::math::Vec4::move_towards( + _self, + rhs, + d, + ) .into(); output }, @@ -9938,7 +12337,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = Vec4::midpoint(_self, rhs) + let output: Val = bevy::math::Vec4::midpoint( + _self, + rhs, + ) .into(); output }, @@ -9950,7 +12352,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Vec4::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Vec4::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -9958,7 +12364,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f32, max: f32| { - let output: Val = Vec4::clamp_length( + let output: Val = bevy::math::Vec4::clamp_length( _self, min, max, @@ -9970,7 +12376,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f32| { - let output: Val = Vec4::clamp_length_max( + let output: Val = bevy::math::Vec4::clamp_length_max( _self, max, ) @@ -9981,7 +12387,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f32| { - let output: Val = Vec4::clamp_length_min( + let output: Val = bevy::math::Vec4::clamp_length_min( _self, min, ) @@ -9996,7 +12402,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = Vec4::mul_add(_self, a, b) + let output: Val = bevy::math::Vec4::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -10004,7 +12414,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = Vec4::reflect(_self, normal) + let output: Val = bevy::math::Vec4::reflect( + _self, + normal, + ) .into(); output }, @@ -10012,7 +12425,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "refract", |_self: Val, normal: Val, eta: f32| { - let output: Val = Vec4::refract(_self, normal, eta) + let output: Val = bevy::math::Vec4::refract( + _self, + normal, + eta, + ) .into(); output }, @@ -10020,28 +12437,39 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_dvec4", |_self: Ref| { - let output: Val = Vec4::as_dvec4(_self).into(); + let output: Val = bevy::math::Vec4::as_dvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec4", |_self: Ref| { - let output: Val = Vec4::as_ivec4(_self).into(); + let output: Val = bevy::math::Vec4::as_ivec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec4", |_self: Ref| { - let output: Val = Vec4::as_uvec4(_self).into(); + let output: Val = bevy::math::Vec4::as_uvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec4", |_self: Ref| { - let output: Val = Vec4::as_i64vec4(_self) + let output: Val = bevy::math::Vec4::as_i64vec4( + _self, + ) .into(); output }, @@ -10049,7 +12477,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec4", |_self: Ref| { - let output: Val = Vec4::as_u64vec4(_self) + let output: Val = bevy::math::Vec4::as_u64vec4( + _self, + ) .into(); output }, @@ -10057,396 +12487,453 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = Vec4::div(_self, rhs).into(); + let output: Val = bevy::math::Vec4::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = Vec4::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec4::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f32| { - let output: Val = Vec4::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec4::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = Vec4::add(_self, rhs).into(); + let output: Val = bevy::math::Vec4::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Vec4::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec4::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f32| { - let output: Val = Vec4::add(_self, rhs).into(); + let output: Val = bevy::math::Vec4::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Vec4::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec4::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = Vec4::rem(_self, rhs).into(); + let output: Val = bevy::math::Vec4::rem(_self, rhs) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Vec4::neg(_self).into(); + let output: Val = bevy::math::Vec4::neg(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f32| { - let output: Val = Vec4::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec4::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Vec4::div(_self, rhs).into(); + let output: Val = bevy::math::Vec4::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Vec4::add(_self, rhs).into(); + let output: Val = bevy::math::Vec4::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Vec4::eq(_self, rhs).into(); + let output: bool = bevy::math::Vec4::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = Vec4::sub(_self, rhs).into(); + let output: Val = bevy::math::Vec4::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = Vec4::div(_self, rhs).into(); + let output: Val = bevy::math::Vec4::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Vec4::clone(_self).into(); + let output: Val = bevy::math::Vec4::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Vec4::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec4::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = Vec4::mul(_self, rhs).into(); + let output: Val = bevy::math::Vec4::mul(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = BVec2::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::BVec2::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: bool, y: bool| { - let output: Val = BVec2::new(x, y).into(); + let output: Val = bevy::math::BVec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: bool| { - let output: Val = BVec2::splat(v).into(); + let output: Val = bevy::math::BVec2::splat(v) + .into(); output }, ) .overwrite_script_function( "from_array", |a: [bool; 2]| { - let output: Val = BVec2::from_array(a).into(); + let output: Val = bevy::math::BVec2::from_array(a) + .into(); output }, ) .overwrite_script_function( "bitmask", |_self: Val| { - let output: u32 = BVec2::bitmask(_self).into(); + let output: u32 = bevy::math::BVec2::bitmask(_self).into(); output }, ) .overwrite_script_function( "any", |_self: Val| { - let output: bool = BVec2::any(_self).into(); + let output: bool = bevy::math::BVec2::any(_self).into(); output }, ) .overwrite_script_function( "all", |_self: Val| { - let output: bool = BVec2::all(_self).into(); + let output: bool = bevy::math::BVec2::all(_self).into(); output }, ) .overwrite_script_function( "test", |_self: Ref, index: usize| { - let output: bool = BVec2::test(_self, index).into(); + let output: bool = bevy::math::BVec2::test(_self, index).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, index: usize, value: bool| { - let output: () = BVec2::set(_self, index, value).into(); + let output: () = bevy::math::BVec2::set(_self, index, value).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BVec2::clone(_self).into(); + let output: Val = bevy::math::BVec2::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = BVec2::eq(_self, other).into(); + let output: bool = bevy::math::BVec2::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = BVec3::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::BVec3::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: bool, y: bool, z: bool| { - let output: Val = BVec3::new(x, y, z).into(); + let output: Val = bevy::math::BVec3::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: bool| { - let output: Val = BVec3::splat(v).into(); + let output: Val = bevy::math::BVec3::splat(v) + .into(); output }, ) .overwrite_script_function( "from_array", |a: [bool; 3]| { - let output: Val = BVec3::from_array(a).into(); + let output: Val = bevy::math::BVec3::from_array(a) + .into(); output }, ) .overwrite_script_function( "bitmask", |_self: Val| { - let output: u32 = BVec3::bitmask(_self).into(); + let output: u32 = bevy::math::BVec3::bitmask(_self).into(); output }, ) .overwrite_script_function( "any", |_self: Val| { - let output: bool = BVec3::any(_self).into(); + let output: bool = bevy::math::BVec3::any(_self).into(); output }, ) .overwrite_script_function( "all", |_self: Val| { - let output: bool = BVec3::all(_self).into(); + let output: bool = bevy::math::BVec3::all(_self).into(); output }, ) .overwrite_script_function( "test", |_self: Ref, index: usize| { - let output: bool = BVec3::test(_self, index).into(); + let output: bool = bevy::math::BVec3::test(_self, index).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, index: usize, value: bool| { - let output: () = BVec3::set(_self, index, value).into(); + let output: () = bevy::math::BVec3::set(_self, index, value).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BVec3::clone(_self).into(); + let output: Val = bevy::math::BVec3::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = BVec3::eq(_self, other).into(); + let output: bool = bevy::math::BVec3::eq(_self, other).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BVec4::clone(_self).into(); + let output: Val = bevy::math::BVec4::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = BVec4::eq(_self, other).into(); + let output: bool = bevy::math::BVec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = BVec4::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::BVec4::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: bool, y: bool, z: bool, w: bool| { - let output: Val = BVec4::new(x, y, z, w).into(); + let output: Val = bevy::math::BVec4::new( + x, + y, + z, + w, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: bool| { - let output: Val = BVec4::splat(v).into(); + let output: Val = bevy::math::BVec4::splat(v) + .into(); output }, ) .overwrite_script_function( "from_array", |a: [bool; 4]| { - let output: Val = BVec4::from_array(a).into(); + let output: Val = bevy::math::BVec4::from_array(a) + .into(); output }, ) .overwrite_script_function( "bitmask", |_self: Val| { - let output: u32 = BVec4::bitmask(_self).into(); + let output: u32 = bevy::math::BVec4::bitmask(_self).into(); output }, ) .overwrite_script_function( "any", |_self: Val| { - let output: bool = BVec4::any(_self).into(); + let output: bool = bevy::math::BVec4::any(_self).into(); output }, ) .overwrite_script_function( "all", |_self: Val| { - let output: bool = BVec4::all(_self).into(); + let output: bool = bevy::math::BVec4::all(_self).into(); output }, ) .overwrite_script_function( "test", |_self: Ref, index: usize| { - let output: bool = BVec4::test(_self, index).into(); + let output: bool = bevy::math::BVec4::test(_self, index).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, index: usize, value: bool| { - let output: () = BVec4::set(_self, index, value).into(); + let output: () = bevy::math::BVec4::set(_self, index, value).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f64| { - let output: Val = DVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DVec2::add(_self, rhs).into(); + let output: Val = bevy::math::DVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: f64, y: f64| { - let output: Val = DVec2::new(x, y).into(); + let output: Val = bevy::math::DVec2::new(x, y) + .into(); output }, ) .overwrite_script_function( "splat", |v: f64| { - let output: Val = DVec2::splat(v).into(); + let output: Val = bevy::math::DVec2::splat(v) + .into(); output }, ) @@ -10457,7 +12944,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = DVec2::select( + let output: Val = bevy::math::DVec2::select( mask, if_true, if_false, @@ -10469,49 +12956,65 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f64; 2]| { - let output: Val = DVec2::from_array(a).into(); + let output: Val = bevy::math::DVec2::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f64; 2] = DVec2::to_array(_self).into(); + let output: [f64; 2] = bevy::math::DVec2::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, z: f64| { - let output: Val = DVec2::extend(_self, z).into(); + let output: Val = bevy::math::DVec2::extend( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f64| { - let output: Val = DVec2::with_x(_self, x).into(); + let output: Val = bevy::math::DVec2::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f64| { - let output: Val = DVec2::with_y(_self, y).into(); + let output: Val = bevy::math::DVec2::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f64 = DVec2::dot(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = DVec2::dot_into_vec(_self, rhs) + let output: Val = bevy::math::DVec2::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -10519,14 +13022,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = DVec2::min(_self, rhs).into(); + let output: Val = bevy::math::DVec2::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = DVec2::max(_self, rhs).into(); + let output: Val = bevy::math::DVec2::max( + _self, + rhs, + ) + .into(); output }, ) @@ -10537,7 +13048,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = DVec2::clamp(_self, min, max) + let output: Val = bevy::math::DVec2::clamp( + _self, + min, + max, + ) .into(); output }, @@ -10545,91 +13060,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f64 = DVec2::min_element(_self).into(); + let output: f64 = bevy::math::DVec2::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f64 = DVec2::max_element(_self).into(); + let output: f64 = bevy::math::DVec2::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f64 = DVec2::element_sum(_self).into(); + let output: f64 = bevy::math::DVec2::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f64 = DVec2::element_product(_self).into(); + let output: f64 = bevy::math::DVec2::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmpne(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmpge(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmple(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = DVec2::cmplt(_self, rhs).into(); + let output: Val = bevy::math::DVec2::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = DVec2::abs(_self).into(); + let output: Val = bevy::math::DVec2::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = DVec2::signum(_self).into(); + let output: Val = bevy::math::DVec2::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = DVec2::copysign(_self, rhs) + let output: Val = bevy::math::DVec2::copysign( + _self, + rhs, + ) .into(); output }, @@ -10637,21 +13181,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = DVec2::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::DVec2::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = DVec2::is_finite(_self).into(); + let output: bool = bevy::math::DVec2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = DVec2::is_finite_mask(_self) + let output: Val = bevy::math::DVec2::is_finite_mask( + _self, + ) .into(); output }, @@ -10659,14 +13206,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = DVec2::is_nan(_self).into(); + let output: bool = bevy::math::DVec2::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = DVec2::is_nan_mask(_self) + let output: Val = bevy::math::DVec2::is_nan_mask( + _self, + ) .into(); output }, @@ -10674,42 +13223,46 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length", |_self: Val| { - let output: f64 = DVec2::length(_self).into(); + let output: f64 = bevy::math::DVec2::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f64 = DVec2::length_squared(_self).into(); + let output: f64 = bevy::math::DVec2::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f64 = DVec2::length_recip(_self).into(); + let output: f64 = bevy::math::DVec2::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f64 = DVec2::distance(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f64 = DVec2::distance_squared(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec2::div_euclid(_self, rhs) + let output: Val = bevy::math::DVec2::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -10717,7 +13270,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec2::rem_euclid(_self, rhs) + let output: Val = bevy::math::DVec2::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -10725,14 +13281,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = DVec2::normalize(_self).into(); + let output: Val = bevy::math::DVec2::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = DVec2::normalize_or( + let output: Val = bevy::math::DVec2::normalize_or( _self, fallback, ) @@ -10743,7 +13302,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = DVec2::normalize_or_zero(_self) + let output: Val = bevy::math::DVec2::normalize_or_zero( + _self, + ) .into(); output }, @@ -10751,14 +13312,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = DVec2::is_normalized(_self).into(); + let output: bool = bevy::math::DVec2::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = DVec2::project_onto(_self, rhs) + let output: Val = bevy::math::DVec2::project_onto( + _self, + rhs, + ) .into(); output }, @@ -10766,7 +13330,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = DVec2::reject_from(_self, rhs) + let output: Val = bevy::math::DVec2::reject_from( + _self, + rhs, + ) .into(); output }, @@ -10774,7 +13341,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec2::project_onto_normalized( + let output: Val = bevy::math::DVec2::project_onto_normalized( _self, rhs, ) @@ -10785,7 +13352,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec2::reject_from_normalized( + let output: Val = bevy::math::DVec2::reject_from_normalized( _self, rhs, ) @@ -10796,70 +13363,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = DVec2::round(_self).into(); + let output: Val = bevy::math::DVec2::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = DVec2::floor(_self).into(); + let output: Val = bevy::math::DVec2::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = DVec2::ceil(_self).into(); + let output: Val = bevy::math::DVec2::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = DVec2::trunc(_self).into(); + let output: Val = bevy::math::DVec2::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = DVec2::fract(_self).into(); + let output: Val = bevy::math::DVec2::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = DVec2::fract_gl(_self).into(); + let output: Val = bevy::math::DVec2::fract_gl( + _self, + ) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = DVec2::exp(_self).into(); + let output: Val = bevy::math::DVec2::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f64| { - let output: Val = DVec2::powf(_self, n).into(); + let output: Val = bevy::math::DVec2::powf( + _self, + n, + ) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = DVec2::recip(_self).into(); + let output: Val = bevy::math::DVec2::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f64| { - let output: Val = DVec2::lerp(_self, rhs, s) + let output: Val = bevy::math::DVec2::lerp( + _self, + rhs, + s, + ) .into(); output }, @@ -10867,7 +13452,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f64| { - let output: Val = DVec2::move_towards( + let output: Val = bevy::math::DVec2::move_towards( _self, rhs, d, @@ -10879,7 +13464,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = DVec2::midpoint(_self, rhs) + let output: Val = bevy::math::DVec2::midpoint( + _self, + rhs, + ) .into(); output }, @@ -10891,7 +13479,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DVec2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DVec2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -10899,7 +13491,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f64, max: f64| { - let output: Val = DVec2::clamp_length( + let output: Val = bevy::math::DVec2::clamp_length( _self, min, max, @@ -10911,7 +13503,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f64| { - let output: Val = DVec2::clamp_length_max( + let output: Val = bevy::math::DVec2::clamp_length_max( _self, max, ) @@ -10922,7 +13514,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f64| { - let output: Val = DVec2::clamp_length_min( + let output: Val = bevy::math::DVec2::clamp_length_min( _self, min, ) @@ -10937,7 +13529,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = DVec2::mul_add(_self, a, b) + let output: Val = bevy::math::DVec2::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -10945,7 +13541,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = DVec2::reflect(_self, normal) + let output: Val = bevy::math::DVec2::reflect( + _self, + normal, + ) .into(); output }, @@ -10957,7 +13556,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { normal: Val, eta: f64| { - let output: Val = DVec2::refract( + let output: Val = bevy::math::DVec2::refract( _self, normal, eta, @@ -10969,49 +13568,57 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f64| { - let output: Val = DVec2::from_angle(angle).into(); + let output: Val = bevy::math::DVec2::from_angle( + angle, + ) + .into(); output }, ) .overwrite_script_function( "to_angle", |_self: Val| { - let output: f64 = DVec2::to_angle(_self).into(); + let output: f64 = bevy::math::DVec2::to_angle(_self).into(); output }, ) .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f64 = DVec2::angle_between(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::angle_between(_self, rhs) + .into(); output }, ) .overwrite_script_function( "angle_to", |_self: Val, rhs: Val| { - let output: f64 = DVec2::angle_to(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::angle_to(_self, rhs).into(); output }, ) .overwrite_script_function( "perp", |_self: Val| { - let output: Val = DVec2::perp(_self).into(); + let output: Val = bevy::math::DVec2::perp(_self) + .into(); output }, ) .overwrite_script_function( "perp_dot", |_self: Val, rhs: Val| { - let output: f64 = DVec2::perp_dot(_self, rhs).into(); + let output: f64 = bevy::math::DVec2::perp_dot(_self, rhs).into(); output }, ) .overwrite_script_function( "rotate", |_self: Val, rhs: Val| { - let output: Val = DVec2::rotate(_self, rhs) + let output: Val = bevy::math::DVec2::rotate( + _self, + rhs, + ) .into(); output }, @@ -11023,7 +13630,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_angle: f64| { - let output: Val = DVec2::rotate_towards( + let output: Val = bevy::math::DVec2::rotate_towards( _self, rhs, max_angle, @@ -11035,28 +13642,37 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec2", |_self: Ref| { - let output: Val = DVec2::as_vec2(_self).into(); + let output: Val = bevy::math::DVec2::as_vec2(_self) + .into(); output }, ) .overwrite_script_function( "as_ivec2", |_self: Ref| { - let output: Val = DVec2::as_ivec2(_self).into(); + let output: Val = bevy::math::DVec2::as_ivec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec2", |_self: Ref| { - let output: Val = DVec2::as_uvec2(_self).into(); + let output: Val = bevy::math::DVec2::as_uvec2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec2", |_self: Ref| { - let output: Val = DVec2::as_i64vec2(_self) + let output: Val = bevy::math::DVec2::as_i64vec2( + _self, + ) .into(); output }, @@ -11064,7 +13680,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec2", |_self: Ref| { - let output: Val = DVec2::as_u64vec2(_self) + let output: Val = bevy::math::DVec2::as_u64vec2( + _self, + ) .into(); output }, @@ -11072,218 +13690,319 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = DVec2::div(_self, rhs).into(); + let output: Val = bevy::math::DVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = DVec2::div(_self, rhs).into(); + let output: Val = bevy::math::DVec2::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = DVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = DVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f64| { - let output: Val = DVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DVec2::neg(_self).into(); + let output: Val = bevy::math::DVec2::neg(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f64| { - let output: Val = DVec2::add(_self, rhs).into(); + let output: Val = bevy::math::DVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = DVec2::eq(_self, other).into(); + let output: bool = bevy::math::DVec2::eq(_self, other).into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = DVec2::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec2::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = DVec2::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DVec2::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = DVec2::add(_self, rhs).into(); + let output: Val = bevy::math::DVec2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DVec2::clone(_self).into(); + let output: Val = bevy::math::DVec2::clone(_self) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DVec2::div(_self, rhs).into(); + let output: Val = bevy::math::DVec2::div( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DVec3::div(_self, rhs).into(); + let output: Val = bevy::math::DVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f64| { - let output: Val = DVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f64| { - let output: Val = DVec3::add(_self, rhs).into(); + let output: Val = bevy::math::DVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = DVec3::div(_self, rhs).into(); + let output: Val = bevy::math::DVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DVec3::neg(_self).into(); + let output: Val = bevy::math::DVec3::neg(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = DVec3::eq(_self, other).into(); + let output: bool = bevy::math::DVec3::eq(_self, other).into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f64| { - let output: Val = DVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DVec3::add(_self, rhs).into(); + let output: Val = bevy::math::DVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = DVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = DVec3::add(_self, rhs).into(); + let output: Val = bevy::math::DVec3::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = DVec3::div(_self, rhs).into(); + let output: Val = bevy::math::DVec3::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = DVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = DVec3::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec3::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "new", |x: f64, y: f64, z: f64| { - let output: Val = DVec3::new(x, y, z).into(); + let output: Val = bevy::math::DVec3::new(x, y, z) + .into(); output }, ) .overwrite_script_function( "splat", |v: f64| { - let output: Val = DVec3::splat(v).into(); + let output: Val = bevy::math::DVec3::splat(v) + .into(); output }, ) @@ -11294,7 +14013,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = DVec3::select( + let output: Val = bevy::math::DVec3::select( mask, if_true, if_false, @@ -11306,63 +14025,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f64; 3]| { - let output: Val = DVec3::from_array(a).into(); + let output: Val = bevy::math::DVec3::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f64; 3] = DVec3::to_array(_self).into(); + let output: [f64; 3] = bevy::math::DVec3::to_array(_self).into(); output }, ) .overwrite_script_function( "extend", |_self: Val, w: f64| { - let output: Val = DVec3::extend(_self, w).into(); + let output: Val = bevy::math::DVec3::extend( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = DVec3::truncate(_self).into(); + let output: Val = bevy::math::DVec3::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f64| { - let output: Val = DVec3::with_x(_self, x).into(); + let output: Val = bevy::math::DVec3::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f64| { - let output: Val = DVec3::with_y(_self, y).into(); + let output: Val = bevy::math::DVec3::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: f64| { - let output: Val = DVec3::with_z(_self, z).into(); + let output: Val = bevy::math::DVec3::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f64 = DVec3::dot(_self, rhs).into(); + let output: f64 = bevy::math::DVec3::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = DVec3::dot_into_vec(_self, rhs) + let output: Val = bevy::math::DVec3::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -11370,21 +14112,33 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "cross", |_self: Val, rhs: Val| { - let output: Val = DVec3::cross(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cross( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = DVec3::min(_self, rhs).into(); + let output: Val = bevy::math::DVec3::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = DVec3::max(_self, rhs).into(); + let output: Val = bevy::math::DVec3::max( + _self, + rhs, + ) + .into(); output }, ) @@ -11395,7 +14149,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = DVec3::clamp(_self, min, max) + let output: Val = bevy::math::DVec3::clamp( + _self, + min, + max, + ) .into(); output }, @@ -11403,91 +14161,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f64 = DVec3::min_element(_self).into(); + let output: f64 = bevy::math::DVec3::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f64 = DVec3::max_element(_self).into(); + let output: f64 = bevy::math::DVec3::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f64 = DVec3::element_sum(_self).into(); + let output: f64 = bevy::math::DVec3::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f64 = DVec3::element_product(_self).into(); + let output: f64 = bevy::math::DVec3::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmpne(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmpge(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmple(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = DVec3::cmplt(_self, rhs).into(); + let output: Val = bevy::math::DVec3::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = DVec3::abs(_self).into(); + let output: Val = bevy::math::DVec3::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = DVec3::signum(_self).into(); + let output: Val = bevy::math::DVec3::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = DVec3::copysign(_self, rhs) + let output: Val = bevy::math::DVec3::copysign( + _self, + rhs, + ) .into(); output }, @@ -11495,21 +14282,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = DVec3::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::DVec3::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = DVec3::is_finite(_self).into(); + let output: bool = bevy::math::DVec3::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = DVec3::is_finite_mask(_self) + let output: Val = bevy::math::DVec3::is_finite_mask( + _self, + ) .into(); output }, @@ -11517,14 +14307,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = DVec3::is_nan(_self).into(); + let output: bool = bevy::math::DVec3::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = DVec3::is_nan_mask(_self) + let output: Val = bevy::math::DVec3::is_nan_mask( + _self, + ) .into(); output }, @@ -11532,42 +14324,46 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length", |_self: Val| { - let output: f64 = DVec3::length(_self).into(); + let output: f64 = bevy::math::DVec3::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f64 = DVec3::length_squared(_self).into(); + let output: f64 = bevy::math::DVec3::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f64 = DVec3::length_recip(_self).into(); + let output: f64 = bevy::math::DVec3::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f64 = DVec3::distance(_self, rhs).into(); + let output: f64 = bevy::math::DVec3::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f64 = DVec3::distance_squared(_self, rhs).into(); + let output: f64 = bevy::math::DVec3::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec3::div_euclid(_self, rhs) + let output: Val = bevy::math::DVec3::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -11575,7 +14371,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec3::rem_euclid(_self, rhs) + let output: Val = bevy::math::DVec3::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -11583,14 +14382,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = DVec3::normalize(_self).into(); + let output: Val = bevy::math::DVec3::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = DVec3::normalize_or( + let output: Val = bevy::math::DVec3::normalize_or( _self, fallback, ) @@ -11601,7 +14403,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = DVec3::normalize_or_zero(_self) + let output: Val = bevy::math::DVec3::normalize_or_zero( + _self, + ) .into(); output }, @@ -11609,14 +14413,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = DVec3::is_normalized(_self).into(); + let output: bool = bevy::math::DVec3::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = DVec3::project_onto(_self, rhs) + let output: Val = bevy::math::DVec3::project_onto( + _self, + rhs, + ) .into(); output }, @@ -11624,7 +14431,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = DVec3::reject_from(_self, rhs) + let output: Val = bevy::math::DVec3::reject_from( + _self, + rhs, + ) .into(); output }, @@ -11632,7 +14442,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec3::project_onto_normalized( + let output: Val = bevy::math::DVec3::project_onto_normalized( _self, rhs, ) @@ -11643,7 +14453,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec3::reject_from_normalized( + let output: Val = bevy::math::DVec3::reject_from_normalized( _self, rhs, ) @@ -11654,70 +14464,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = DVec3::round(_self).into(); + let output: Val = bevy::math::DVec3::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = DVec3::floor(_self).into(); + let output: Val = bevy::math::DVec3::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = DVec3::ceil(_self).into(); + let output: Val = bevy::math::DVec3::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = DVec3::trunc(_self).into(); + let output: Val = bevy::math::DVec3::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = DVec3::fract(_self).into(); + let output: Val = bevy::math::DVec3::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = DVec3::fract_gl(_self).into(); + let output: Val = bevy::math::DVec3::fract_gl( + _self, + ) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = DVec3::exp(_self).into(); + let output: Val = bevy::math::DVec3::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f64| { - let output: Val = DVec3::powf(_self, n).into(); + let output: Val = bevy::math::DVec3::powf( + _self, + n, + ) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = DVec3::recip(_self).into(); + let output: Val = bevy::math::DVec3::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f64| { - let output: Val = DVec3::lerp(_self, rhs, s) + let output: Val = bevy::math::DVec3::lerp( + _self, + rhs, + s, + ) .into(); output }, @@ -11725,7 +14553,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f64| { - let output: Val = DVec3::move_towards( + let output: Val = bevy::math::DVec3::move_towards( _self, rhs, d, @@ -11737,7 +14565,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = DVec3::midpoint(_self, rhs) + let output: Val = bevy::math::DVec3::midpoint( + _self, + rhs, + ) .into(); output }, @@ -11749,7 +14580,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DVec3::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DVec3::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -11757,7 +14592,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f64, max: f64| { - let output: Val = DVec3::clamp_length( + let output: Val = bevy::math::DVec3::clamp_length( _self, min, max, @@ -11769,7 +14604,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f64| { - let output: Val = DVec3::clamp_length_max( + let output: Val = bevy::math::DVec3::clamp_length_max( _self, max, ) @@ -11780,7 +14615,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f64| { - let output: Val = DVec3::clamp_length_min( + let output: Val = bevy::math::DVec3::clamp_length_min( _self, min, ) @@ -11795,7 +14630,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = DVec3::mul_add(_self, a, b) + let output: Val = bevy::math::DVec3::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -11803,7 +14642,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = DVec3::reflect(_self, normal) + let output: Val = bevy::math::DVec3::reflect( + _self, + normal, + ) .into(); output }, @@ -11815,7 +14657,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { normal: Val, eta: f64| { - let output: Val = DVec3::refract( + let output: Val = bevy::math::DVec3::refract( _self, normal, eta, @@ -11827,14 +14669,15 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f64 = DVec3::angle_between(_self, rhs).into(); + let output: f64 = bevy::math::DVec3::angle_between(_self, rhs) + .into(); output }, ) .overwrite_script_function( "any_orthogonal_vector", |_self: Ref| { - let output: Val = DVec3::any_orthogonal_vector( + let output: Val = bevy::math::DVec3::any_orthogonal_vector( _self, ) .into(); @@ -11844,7 +14687,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "any_orthonormal_vector", |_self: Ref| { - let output: Val = DVec3::any_orthonormal_vector( + let output: Val = bevy::math::DVec3::any_orthonormal_vector( _self, ) .into(); @@ -11854,35 +14697,47 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec3", |_self: Ref| { - let output: Val = DVec3::as_vec3(_self).into(); + let output: Val = bevy::math::DVec3::as_vec3(_self) + .into(); output }, ) .overwrite_script_function( "as_vec3a", |_self: Ref| { - let output: Val = DVec3::as_vec3a(_self).into(); + let output: Val = bevy::math::DVec3::as_vec3a( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_ivec3", |_self: Ref| { - let output: Val = DVec3::as_ivec3(_self).into(); + let output: Val = bevy::math::DVec3::as_ivec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec3", |_self: Ref| { - let output: Val = DVec3::as_uvec3(_self).into(); + let output: Val = bevy::math::DVec3::as_uvec3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec3", |_self: Ref| { - let output: Val = DVec3::as_i64vec3(_self) + let output: Val = bevy::math::DVec3::as_i64vec3( + _self, + ) .into(); output }, @@ -11890,7 +14745,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec3", |_self: Ref| { - let output: Val = DVec3::as_u64vec3(_self) + let output: Val = bevy::math::DVec3::as_u64vec3( + _self, + ) .into(); output }, @@ -11898,64 +14755,90 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DVec3::clone(_self).into(); + let output: Val = bevy::math::DVec3::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = DVec3::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DVec3::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec3::sub( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "rem", |_self: Val, rhs: Ref| { - let output: Val = DVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DVec4::clone(_self).into(); + let output: Val = bevy::math::DVec4::clone(_self) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DVec4::neg(_self).into(); + let output: Val = bevy::math::DVec4::neg(_self) + .into(); output }, ) .overwrite_script_function( "new", |x: f64, y: f64, z: f64, w: f64| { - let output: Val = DVec4::new(x, y, z, w).into(); + let output: Val = bevy::math::DVec4::new( + x, + y, + z, + w, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: f64| { - let output: Val = DVec4::splat(v).into(); + let output: Val = bevy::math::DVec4::splat(v) + .into(); output }, ) @@ -11966,7 +14849,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { if_true: Val, if_false: Val| { - let output: Val = DVec4::select( + let output: Val = bevy::math::DVec4::select( mask, if_true, if_false, @@ -11978,63 +14861,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f64; 4]| { - let output: Val = DVec4::from_array(a).into(); + let output: Val = bevy::math::DVec4::from_array(a) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f64; 4] = DVec4::to_array(_self).into(); + let output: [f64; 4] = bevy::math::DVec4::to_array(_self).into(); output }, ) .overwrite_script_function( "truncate", |_self: Val| { - let output: Val = DVec4::truncate(_self).into(); + let output: Val = bevy::math::DVec4::truncate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "with_x", |_self: Val, x: f64| { - let output: Val = DVec4::with_x(_self, x).into(); + let output: Val = bevy::math::DVec4::with_x( + _self, + x, + ) + .into(); output }, ) .overwrite_script_function( "with_y", |_self: Val, y: f64| { - let output: Val = DVec4::with_y(_self, y).into(); + let output: Val = bevy::math::DVec4::with_y( + _self, + y, + ) + .into(); output }, ) .overwrite_script_function( "with_z", |_self: Val, z: f64| { - let output: Val = DVec4::with_z(_self, z).into(); + let output: Val = bevy::math::DVec4::with_z( + _self, + z, + ) + .into(); output }, ) .overwrite_script_function( "with_w", |_self: Val, w: f64| { - let output: Val = DVec4::with_w(_self, w).into(); + let output: Val = bevy::math::DVec4::with_w( + _self, + w, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f64 = DVec4::dot(_self, rhs).into(); + let output: f64 = bevy::math::DVec4::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "dot_into_vec", |_self: Val, rhs: Val| { - let output: Val = DVec4::dot_into_vec(_self, rhs) + let output: Val = bevy::math::DVec4::dot_into_vec( + _self, + rhs, + ) .into(); output }, @@ -12042,14 +14948,22 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min", |_self: Val, rhs: Val| { - let output: Val = DVec4::min(_self, rhs).into(); + let output: Val = bevy::math::DVec4::min( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "max", |_self: Val, rhs: Val| { - let output: Val = DVec4::max(_self, rhs).into(); + let output: Val = bevy::math::DVec4::max( + _self, + rhs, + ) + .into(); output }, ) @@ -12060,7 +14974,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { min: Val, max: Val| { - let output: Val = DVec4::clamp(_self, min, max) + let output: Val = bevy::math::DVec4::clamp( + _self, + min, + max, + ) .into(); output }, @@ -12068,91 +14986,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "min_element", |_self: Val| { - let output: f64 = DVec4::min_element(_self).into(); + let output: f64 = bevy::math::DVec4::min_element(_self).into(); output }, ) .overwrite_script_function( "max_element", |_self: Val| { - let output: f64 = DVec4::max_element(_self).into(); + let output: f64 = bevy::math::DVec4::max_element(_self).into(); output }, ) .overwrite_script_function( "element_sum", |_self: Val| { - let output: f64 = DVec4::element_sum(_self).into(); + let output: f64 = bevy::math::DVec4::element_sum(_self).into(); output }, ) .overwrite_script_function( "element_product", |_self: Val| { - let output: f64 = DVec4::element_product(_self).into(); + let output: f64 = bevy::math::DVec4::element_product(_self).into(); output }, ) .overwrite_script_function( "cmpeq", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmpeq(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmpeq( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpne", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmpne(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmpne( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpge", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmpge(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmpge( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmpgt", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmpgt(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmpgt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmple", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmple(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmple( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "cmplt", |_self: Val, rhs: Val| { - let output: Val = DVec4::cmplt(_self, rhs).into(); + let output: Val = bevy::math::DVec4::cmplt( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "abs", |_self: Val| { - let output: Val = DVec4::abs(_self).into(); + let output: Val = bevy::math::DVec4::abs(_self) + .into(); output }, ) .overwrite_script_function( "signum", |_self: Val| { - let output: Val = DVec4::signum(_self).into(); + let output: Val = bevy::math::DVec4::signum(_self) + .into(); output }, ) .overwrite_script_function( "copysign", |_self: Val, rhs: Val| { - let output: Val = DVec4::copysign(_self, rhs) + let output: Val = bevy::math::DVec4::copysign( + _self, + rhs, + ) .into(); output }, @@ -12160,21 +15107,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_negative_bitmask", |_self: Val| { - let output: u32 = DVec4::is_negative_bitmask(_self).into(); + let output: u32 = bevy::math::DVec4::is_negative_bitmask(_self) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = DVec4::is_finite(_self).into(); + let output: bool = bevy::math::DVec4::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_finite_mask", |_self: Val| { - let output: Val = DVec4::is_finite_mask(_self) + let output: Val = bevy::math::DVec4::is_finite_mask( + _self, + ) .into(); output }, @@ -12182,14 +15132,16 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = DVec4::is_nan(_self).into(); + let output: bool = bevy::math::DVec4::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_nan_mask", |_self: Val| { - let output: Val = DVec4::is_nan_mask(_self) + let output: Val = bevy::math::DVec4::is_nan_mask( + _self, + ) .into(); output }, @@ -12197,42 +15149,46 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "length", |_self: Val| { - let output: f64 = DVec4::length(_self).into(); + let output: f64 = bevy::math::DVec4::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f64 = DVec4::length_squared(_self).into(); + let output: f64 = bevy::math::DVec4::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f64 = DVec4::length_recip(_self).into(); + let output: f64 = bevy::math::DVec4::length_recip(_self).into(); output }, ) .overwrite_script_function( "distance", |_self: Val, rhs: Val| { - let output: f64 = DVec4::distance(_self, rhs).into(); + let output: f64 = bevy::math::DVec4::distance(_self, rhs).into(); output }, ) .overwrite_script_function( "distance_squared", |_self: Val, rhs: Val| { - let output: f64 = DVec4::distance_squared(_self, rhs).into(); + let output: f64 = bevy::math::DVec4::distance_squared(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec4::div_euclid(_self, rhs) + let output: Val = bevy::math::DVec4::div_euclid( + _self, + rhs, + ) .into(); output }, @@ -12240,7 +15196,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "rem_euclid", |_self: Val, rhs: Val| { - let output: Val = DVec4::rem_euclid(_self, rhs) + let output: Val = bevy::math::DVec4::rem_euclid( + _self, + rhs, + ) .into(); output }, @@ -12248,14 +15207,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = DVec4::normalize(_self).into(); + let output: Val = bevy::math::DVec4::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "normalize_or", |_self: Val, fallback: Val| { - let output: Val = DVec4::normalize_or( + let output: Val = bevy::math::DVec4::normalize_or( _self, fallback, ) @@ -12266,7 +15228,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "normalize_or_zero", |_self: Val| { - let output: Val = DVec4::normalize_or_zero(_self) + let output: Val = bevy::math::DVec4::normalize_or_zero( + _self, + ) .into(); output }, @@ -12274,14 +15238,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = DVec4::is_normalized(_self).into(); + let output: bool = bevy::math::DVec4::is_normalized(_self).into(); output }, ) .overwrite_script_function( "project_onto", |_self: Val, rhs: Val| { - let output: Val = DVec4::project_onto(_self, rhs) + let output: Val = bevy::math::DVec4::project_onto( + _self, + rhs, + ) .into(); output }, @@ -12289,7 +15256,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from", |_self: Val, rhs: Val| { - let output: Val = DVec4::reject_from(_self, rhs) + let output: Val = bevy::math::DVec4::reject_from( + _self, + rhs, + ) .into(); output }, @@ -12297,7 +15267,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_onto_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec4::project_onto_normalized( + let output: Val = bevy::math::DVec4::project_onto_normalized( _self, rhs, ) @@ -12308,7 +15278,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reject_from_normalized", |_self: Val, rhs: Val| { - let output: Val = DVec4::reject_from_normalized( + let output: Val = bevy::math::DVec4::reject_from_normalized( _self, rhs, ) @@ -12319,70 +15289,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "round", |_self: Val| { - let output: Val = DVec4::round(_self).into(); + let output: Val = bevy::math::DVec4::round(_self) + .into(); output }, ) .overwrite_script_function( "floor", |_self: Val| { - let output: Val = DVec4::floor(_self).into(); + let output: Val = bevy::math::DVec4::floor(_self) + .into(); output }, ) .overwrite_script_function( "ceil", |_self: Val| { - let output: Val = DVec4::ceil(_self).into(); + let output: Val = bevy::math::DVec4::ceil(_self) + .into(); output }, ) .overwrite_script_function( "trunc", |_self: Val| { - let output: Val = DVec4::trunc(_self).into(); + let output: Val = bevy::math::DVec4::trunc(_self) + .into(); output }, ) .overwrite_script_function( "fract", |_self: Val| { - let output: Val = DVec4::fract(_self).into(); + let output: Val = bevy::math::DVec4::fract(_self) + .into(); output }, ) .overwrite_script_function( "fract_gl", |_self: Val| { - let output: Val = DVec4::fract_gl(_self).into(); + let output: Val = bevy::math::DVec4::fract_gl( + _self, + ) + .into(); output }, ) .overwrite_script_function( "exp", |_self: Val| { - let output: Val = DVec4::exp(_self).into(); + let output: Val = bevy::math::DVec4::exp(_self) + .into(); output }, ) .overwrite_script_function( "powf", |_self: Val, n: f64| { - let output: Val = DVec4::powf(_self, n).into(); + let output: Val = bevy::math::DVec4::powf( + _self, + n, + ) + .into(); output }, ) .overwrite_script_function( "recip", |_self: Val| { - let output: Val = DVec4::recip(_self).into(); + let output: Val = bevy::math::DVec4::recip(_self) + .into(); output }, ) .overwrite_script_function( "lerp", |_self: Val, rhs: Val, s: f64| { - let output: Val = DVec4::lerp(_self, rhs, s) + let output: Val = bevy::math::DVec4::lerp( + _self, + rhs, + s, + ) .into(); output }, @@ -12390,7 +15378,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "move_towards", |_self: Ref, rhs: Val, d: f64| { - let output: Val = DVec4::move_towards( + let output: Val = bevy::math::DVec4::move_towards( _self, rhs, d, @@ -12402,7 +15390,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "midpoint", |_self: Val, rhs: Val| { - let output: Val = DVec4::midpoint(_self, rhs) + let output: Val = bevy::math::DVec4::midpoint( + _self, + rhs, + ) .into(); output }, @@ -12414,7 +15405,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DVec4::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DVec4::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -12422,7 +15417,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length", |_self: Val, min: f64, max: f64| { - let output: Val = DVec4::clamp_length( + let output: Val = bevy::math::DVec4::clamp_length( _self, min, max, @@ -12434,7 +15429,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_max", |_self: Val, max: f64| { - let output: Val = DVec4::clamp_length_max( + let output: Val = bevy::math::DVec4::clamp_length_max( _self, max, ) @@ -12445,7 +15440,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clamp_length_min", |_self: Val, min: f64| { - let output: Val = DVec4::clamp_length_min( + let output: Val = bevy::math::DVec4::clamp_length_min( _self, min, ) @@ -12460,7 +15455,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { a: Val, b: Val| { - let output: Val = DVec4::mul_add(_self, a, b) + let output: Val = bevy::math::DVec4::mul_add( + _self, + a, + b, + ) .into(); output }, @@ -12468,7 +15467,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "reflect", |_self: Val, normal: Val| { - let output: Val = DVec4::reflect(_self, normal) + let output: Val = bevy::math::DVec4::reflect( + _self, + normal, + ) .into(); output }, @@ -12480,7 +15482,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { normal: Val, eta: f64| { - let output: Val = DVec4::refract( + let output: Val = bevy::math::DVec4::refract( _self, normal, eta, @@ -12492,28 +15494,37 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_vec4", |_self: Ref| { - let output: Val = DVec4::as_vec4(_self).into(); + let output: Val = bevy::math::DVec4::as_vec4(_self) + .into(); output }, ) .overwrite_script_function( "as_ivec4", |_self: Ref| { - let output: Val = DVec4::as_ivec4(_self).into(); + let output: Val = bevy::math::DVec4::as_ivec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_uvec4", |_self: Ref| { - let output: Val = DVec4::as_uvec4(_self).into(); + let output: Val = bevy::math::DVec4::as_uvec4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "as_i64vec4", |_self: Ref| { - let output: Val = DVec4::as_i64vec4(_self) + let output: Val = bevy::math::DVec4::as_i64vec4( + _self, + ) .into(); output }, @@ -12521,7 +15532,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "as_u64vec4", |_self: Ref| { - let output: Val = DVec4::as_u64vec4(_self) + let output: Val = bevy::math::DVec4::as_u64vec4( + _self, + ) .into(); output }, @@ -12529,141 +15542,203 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = DVec4::eq(_self, other).into(); + let output: bool = bevy::math::DVec4::eq(_self, other).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DVec4::div(_self, rhs).into(); + let output: Val = bevy::math::DVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Ref| { - let output: Val = DVec4::add(_self, rhs).into(); + let output: Val = bevy::math::DVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Ref| { - let output: Val = DVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Ref| { - let output: Val = DVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: f64| { - let output: Val = DVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Val| { - let output: Val = DVec4::div(_self, rhs).into(); + let output: Val = bevy::math::DVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DVec4::sub(_self, rhs).into(); + let output: Val = bevy::math::DVec4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: f64| { - let output: Val = DVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: f64| { - let output: Val = DVec4::add(_self, rhs).into(); + let output: Val = bevy::math::DVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DVec4::add(_self, rhs).into(); + let output: Val = bevy::math::DVec4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "rem", |_self: Val, rhs: Val| { - let output: Val = DVec4::rem(_self, rhs).into(); + let output: Val = bevy::math::DVec4::rem( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: Ref| { - let output: Val = DVec4::div(_self, rhs).into(); + let output: Val = bevy::math::DVec4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DVec4::mul(_self, rhs).into(); + let output: Val = bevy::math::DVec4::mul( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Mat2::div(_self, rhs).into(); + let output: Val = bevy::math::Mat2::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Mat2::eq(_self, rhs).into(); + let output: bool = bevy::math::Mat2::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Mat2::neg(_self).into(); + let output: Val = bevy::math::Mat2::neg(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Mat2::clone(_self).into(); + let output: Val = bevy::math::Mat2::clone(_self) + .into(); output }, ) .overwrite_script_function( "from_cols", |x_axis: Val, y_axis: Val| { - let output: Val = Mat2::from_cols(x_axis, y_axis) + let output: Val = bevy::math::Mat2::from_cols( + x_axis, + y_axis, + ) .into(); output }, @@ -12671,21 +15746,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 4] = Mat2::to_cols_array(_self).into(); + let output: [f32; 4] = bevy::math::Mat2::to_cols_array(_self).into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 2]; 2] = Mat2::to_cols_array_2d(_self).into(); + let output: [[f32; 2]; 2] = bevy::math::Mat2::to_cols_array_2d(_self) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = Mat2::from_diagonal(diagonal) + let output: Val = bevy::math::Mat2::from_diagonal( + diagonal, + ) .into(); output }, @@ -12693,7 +15771,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale_angle", |scale: Val, angle: f32| { - let output: Val = Mat2::from_scale_angle( + let output: Val = bevy::math::Mat2::from_scale_angle( scale, angle, ) @@ -12704,21 +15782,29 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f32| { - let output: Val = Mat2::from_angle(angle).into(); + let output: Val = bevy::math::Mat2::from_angle( + angle, + ) + .into(); output }, ) .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = Mat2::from_mat3(m).into(); + let output: Val = bevy::math::Mat2::from_mat3(m) + .into(); output }, ) .overwrite_script_function( "from_mat3_minor", |m: Val, i: usize, j: usize| { - let output: Val = Mat2::from_mat3_minor(m, i, j) + let output: Val = bevy::math::Mat2::from_mat3_minor( + m, + i, + j, + ) .into(); output }, @@ -12726,14 +15812,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3a", |m: Val| { - let output: Val = Mat2::from_mat3a(m).into(); + let output: Val = bevy::math::Mat2::from_mat3a(m) + .into(); output }, ) .overwrite_script_function( "from_mat3a_minor", |m: Val, i: usize, j: usize| { - let output: Val = Mat2::from_mat3a_minor(m, i, j) + let output: Val = bevy::math::Mat2::from_mat3a_minor( + m, + i, + j, + ) .into(); output }, @@ -12741,56 +15832,71 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = Mat2::col(_self, index).into(); + let output: Val = bevy::math::Mat2::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = Mat2::row(_self, index).into(); + let output: Val = bevy::math::Mat2::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Mat2::is_finite(_self).into(); + let output: bool = bevy::math::Mat2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Mat2::is_nan(_self).into(); + let output: bool = bevy::math::Mat2::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = Mat2::transpose(_self).into(); + let output: Val = bevy::math::Mat2::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f32 = Mat2::determinant(_self).into(); + let output: f32 = bevy::math::Mat2::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Mat2::inverse(_self).into(); + let output: Val = bevy::math::Mat2::inverse(_self) + .into(); output }, ) .overwrite_script_function( "mul_vec2", |_self: Ref, rhs: Val| { - let output: Val = Mat2::mul_vec2(_self, rhs) + let output: Val = bevy::math::Mat2::mul_vec2( + _self, + rhs, + ) .into(); output }, @@ -12798,7 +15904,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat2", |_self: Ref, rhs: Ref| { - let output: Val = Mat2::mul_mat2(_self, rhs) + let output: Val = bevy::math::Mat2::mul_mat2( + _self, + rhs, + ) .into(); output }, @@ -12806,7 +15915,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat2", |_self: Ref, rhs: Ref| { - let output: Val = Mat2::add_mat2(_self, rhs) + let output: Val = bevy::math::Mat2::add_mat2( + _self, + rhs, + ) .into(); output }, @@ -12814,7 +15926,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat2", |_self: Ref, rhs: Ref| { - let output: Val = Mat2::sub_mat2(_self, rhs) + let output: Val = bevy::math::Mat2::sub_mat2( + _self, + rhs, + ) .into(); output }, @@ -12822,7 +15937,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat2::mul_scalar(_self, rhs) + let output: Val = bevy::math::Mat2::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -12830,7 +15948,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat2::div_scalar(_self, rhs) + let output: Val = bevy::math::Mat2::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -12842,7 +15963,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Mat2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Mat2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -12850,99 +15975,118 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = Mat2::abs(_self).into(); + let output: Val = bevy::math::Mat2::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_dmat2", |_self: Ref| { - let output: Val = Mat2::as_dmat2(_self).into(); + let output: Val = bevy::math::Mat2::as_dmat2( + _self, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Mat2::sub(_self, rhs).into(); + let output: Val = bevy::math::Mat2::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat2::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat2::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Mat2::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat2::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Mat2::add(_self, rhs).into(); + let output: Val = bevy::math::Mat2::add(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Mat3::neg(_self).into(); + let output: Val = bevy::math::Mat3::neg(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Mat3::add(_self, rhs).into(); + let output: Val = bevy::math::Mat3::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Mat3::clone(_self).into(); + let output: Val = bevy::math::Mat3::clone(_self) + .into(); output }, ) @@ -12953,7 +16097,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { y_axis: Val, z_axis: Val| { - let output: Val = Mat3::from_cols( + let output: Val = bevy::math::Mat3::from_cols( x_axis, y_axis, z_axis, @@ -12965,21 +16109,24 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 9] = Mat3::to_cols_array(_self).into(); + let output: [f32; 9] = bevy::math::Mat3::to_cols_array(_self).into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 3]; 3] = Mat3::to_cols_array_2d(_self).into(); + let output: [[f32; 3]; 3] = bevy::math::Mat3::to_cols_array_2d(_self) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = Mat3::from_diagonal(diagonal) + let output: Val = bevy::math::Mat3::from_diagonal( + diagonal, + ) .into(); output }, @@ -12987,14 +16134,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat4", |m: Val| { - let output: Val = Mat3::from_mat4(m).into(); + let output: Val = bevy::math::Mat3::from_mat4(m) + .into(); output }, ) .overwrite_script_function( "from_mat4_minor", |m: Val, i: usize, j: usize| { - let output: Val = Mat3::from_mat4_minor(m, i, j) + let output: Val = bevy::math::Mat3::from_mat4_minor( + m, + i, + j, + ) .into(); output }, @@ -13002,14 +16154,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = Mat3::from_quat(rotation).into(); + let output: Val = bevy::math::Mat3::from_quat( + rotation, + ) + .into(); output }, ) .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f32| { - let output: Val = Mat3::from_axis_angle( + let output: Val = bevy::math::Mat3::from_axis_angle( axis, angle, ) @@ -13020,7 +16175,12 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |order: Val, a: f32, b: f32, c: f32| { - let output: Val = Mat3::from_euler(order, a, b, c) + let output: Val = bevy::math::Mat3::from_euler( + order, + a, + b, + c, + ) .into(); output }, @@ -13028,14 +16188,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Ref, order: Val| { - let output: (f32, f32, f32) = Mat3::to_euler(_self, order).into(); + let output: (f32, f32, f32) = bevy::math::Mat3::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f32| { - let output: Val = Mat3::from_rotation_x(angle) + let output: Val = bevy::math::Mat3::from_rotation_x( + angle, + ) .into(); output }, @@ -13043,7 +16209,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f32| { - let output: Val = Mat3::from_rotation_y(angle) + let output: Val = bevy::math::Mat3::from_rotation_y( + angle, + ) .into(); output }, @@ -13051,7 +16219,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f32| { - let output: Val = Mat3::from_rotation_z(angle) + let output: Val = bevy::math::Mat3::from_rotation_z( + angle, + ) .into(); output }, @@ -13059,7 +16229,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = Mat3::from_translation( + let output: Val = bevy::math::Mat3::from_translation( translation, ) .into(); @@ -13069,7 +16239,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f32| { - let output: Val = Mat3::from_angle(angle).into(); + let output: Val = bevy::math::Mat3::from_angle( + angle, + ) + .into(); output }, ) @@ -13080,7 +16253,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { angle: f32, translation: Val| { - let output: Val = Mat3::from_scale_angle_translation( + let output: Val = bevy::math::Mat3::from_scale_angle_translation( scale, angle, translation, @@ -13092,70 +16265,86 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = Mat3::from_scale(scale).into(); + let output: Val = bevy::math::Mat3::from_scale( + scale, + ) + .into(); output }, ) .overwrite_script_function( "from_mat2", |m: Val| { - let output: Val = Mat3::from_mat2(m).into(); + let output: Val = bevy::math::Mat3::from_mat2(m) + .into(); output }, ) .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = Mat3::col(_self, index).into(); + let output: Val = bevy::math::Mat3::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = Mat3::row(_self, index).into(); + let output: Val = bevy::math::Mat3::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Mat3::is_finite(_self).into(); + let output: bool = bevy::math::Mat3::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Mat3::is_nan(_self).into(); + let output: bool = bevy::math::Mat3::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = Mat3::transpose(_self).into(); + let output: Val = bevy::math::Mat3::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f32 = Mat3::determinant(_self).into(); + let output: f32 = bevy::math::Mat3::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Mat3::inverse(_self).into(); + let output: Val = bevy::math::Mat3::inverse(_self) + .into(); output }, ) .overwrite_script_function( "transform_point2", |_self: Ref, rhs: Val| { - let output: Val = Mat3::transform_point2( + let output: Val = bevy::math::Mat3::transform_point2( _self, rhs, ) @@ -13166,7 +16355,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector2", |_self: Ref, rhs: Val| { - let output: Val = Mat3::transform_vector2( + let output: Val = bevy::math::Mat3::transform_vector2( _self, rhs, ) @@ -13177,7 +16366,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3", |_self: Ref, rhs: Val| { - let output: Val = Mat3::mul_vec3(_self, rhs) + let output: Val = bevy::math::Mat3::mul_vec3( + _self, + rhs, + ) .into(); output }, @@ -13185,7 +16377,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3a", |_self: Ref, rhs: Val| { - let output: Val = Mat3::mul_vec3a(_self, rhs) + let output: Val = bevy::math::Mat3::mul_vec3a( + _self, + rhs, + ) .into(); output }, @@ -13193,7 +16388,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3::mul_mat3(_self, rhs) + let output: Val = bevy::math::Mat3::mul_mat3( + _self, + rhs, + ) .into(); output }, @@ -13201,7 +16399,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3::add_mat3(_self, rhs) + let output: Val = bevy::math::Mat3::add_mat3( + _self, + rhs, + ) .into(); output }, @@ -13209,7 +16410,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3::sub_mat3(_self, rhs) + let output: Val = bevy::math::Mat3::sub_mat3( + _self, + rhs, + ) .into(); output }, @@ -13217,7 +16421,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat3::mul_scalar(_self, rhs) + let output: Val = bevy::math::Mat3::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -13225,7 +16432,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat3::div_scalar(_self, rhs) + let output: Val = bevy::math::Mat3::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -13237,7 +16447,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Mat3::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Mat3::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -13245,120 +16459,161 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = Mat3::abs(_self).into(); + let output: Val = bevy::math::Mat3::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_dmat3", |_self: Ref| { - let output: Val = Mat3::as_dmat3(_self).into(); + let output: Val = bevy::math::Mat3::as_dmat3( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Mat3::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Mat3::eq(_self, rhs).into(); + let output: bool = bevy::math::Mat3::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Mat3::div(_self, rhs).into(); + let output: Val = bevy::math::Mat3::div(_self, rhs) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Mat3::sub(_self, rhs).into(); + let output: Val = bevy::math::Mat3::sub(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Mat3A::clone(_self).into(); + let output: Val = bevy::math::Mat3A::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Mat3A::neg(_self).into(); + let output: Val = bevy::math::Mat3A::neg(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Mat3A::add(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Mat3A::eq(_self, rhs).into(); + let output: bool = bevy::math::Mat3A::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Mat3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Mat3A::div(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Mat3A::sub(_self, rhs).into(); + let output: Val = bevy::math::Mat3A::sub( + _self, + rhs, + ) + .into(); output }, ) @@ -13369,7 +16624,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { y_axis: Val, z_axis: Val| { - let output: Val = Mat3A::from_cols( + let output: Val = bevy::math::Mat3A::from_cols( x_axis, y_axis, z_axis, @@ -13381,21 +16636,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 9] = Mat3A::to_cols_array(_self).into(); + let output: [f32; 9] = bevy::math::Mat3A::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 3]; 3] = Mat3A::to_cols_array_2d(_self).into(); + let output: [[f32; 3]; 3] = bevy::math::Mat3A::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = Mat3A::from_diagonal(diagonal) + let output: Val = bevy::math::Mat3A::from_diagonal( + diagonal, + ) .into(); output }, @@ -13403,14 +16664,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat4", |m: Val| { - let output: Val = Mat3A::from_mat4(m).into(); + let output: Val = bevy::math::Mat3A::from_mat4(m) + .into(); output }, ) .overwrite_script_function( "from_mat4_minor", |m: Val, i: usize, j: usize| { - let output: Val = Mat3A::from_mat4_minor(m, i, j) + let output: Val = bevy::math::Mat3A::from_mat4_minor( + m, + i, + j, + ) .into(); output }, @@ -13418,7 +16684,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = Mat3A::from_quat(rotation) + let output: Val = bevy::math::Mat3A::from_quat( + rotation, + ) .into(); output }, @@ -13426,7 +16694,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f32| { - let output: Val = Mat3A::from_axis_angle( + let output: Val = bevy::math::Mat3A::from_axis_angle( axis, angle, ) @@ -13437,7 +16705,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |order: Val, a: f32, b: f32, c: f32| { - let output: Val = Mat3A::from_euler( + let output: Val = bevy::math::Mat3A::from_euler( order, a, b, @@ -13450,14 +16718,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Ref, order: Val| { - let output: (f32, f32, f32) = Mat3A::to_euler(_self, order).into(); + let output: (f32, f32, f32) = bevy::math::Mat3A::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f32| { - let output: Val = Mat3A::from_rotation_x(angle) + let output: Val = bevy::math::Mat3A::from_rotation_x( + angle, + ) .into(); output }, @@ -13465,7 +16739,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f32| { - let output: Val = Mat3A::from_rotation_y(angle) + let output: Val = bevy::math::Mat3A::from_rotation_y( + angle, + ) .into(); output }, @@ -13473,7 +16749,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f32| { - let output: Val = Mat3A::from_rotation_z(angle) + let output: Val = bevy::math::Mat3A::from_rotation_z( + angle, + ) .into(); output }, @@ -13481,7 +16759,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = Mat3A::from_translation( + let output: Val = bevy::math::Mat3A::from_translation( translation, ) .into(); @@ -13491,7 +16769,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f32| { - let output: Val = Mat3A::from_angle(angle).into(); + let output: Val = bevy::math::Mat3A::from_angle( + angle, + ) + .into(); output }, ) @@ -13502,7 +16783,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { angle: f32, translation: Val| { - let output: Val = Mat3A::from_scale_angle_translation( + let output: Val = bevy::math::Mat3A::from_scale_angle_translation( scale, angle, translation, @@ -13514,70 +16795,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = Mat3A::from_scale(scale).into(); + let output: Val = bevy::math::Mat3A::from_scale( + scale, + ) + .into(); output }, ) .overwrite_script_function( "from_mat2", |m: Val| { - let output: Val = Mat3A::from_mat2(m).into(); + let output: Val = bevy::math::Mat3A::from_mat2(m) + .into(); output }, ) .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = Mat3A::col(_self, index).into(); + let output: Val = bevy::math::Mat3A::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = Mat3A::row(_self, index).into(); + let output: Val = bevy::math::Mat3A::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Mat3A::is_finite(_self).into(); + let output: bool = bevy::math::Mat3A::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Mat3A::is_nan(_self).into(); + let output: bool = bevy::math::Mat3A::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = Mat3A::transpose(_self).into(); + let output: Val = bevy::math::Mat3A::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f32 = Mat3A::determinant(_self).into(); + let output: f32 = bevy::math::Mat3A::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Mat3A::inverse(_self).into(); + let output: Val = bevy::math::Mat3A::inverse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "transform_point2", |_self: Ref, rhs: Val| { - let output: Val = Mat3A::transform_point2( + let output: Val = bevy::math::Mat3A::transform_point2( _self, rhs, ) @@ -13588,7 +16887,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector2", |_self: Ref, rhs: Val| { - let output: Val = Mat3A::transform_vector2( + let output: Val = bevy::math::Mat3A::transform_vector2( _self, rhs, ) @@ -13599,7 +16898,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3", |_self: Ref, rhs: Val| { - let output: Val = Mat3A::mul_vec3(_self, rhs) + let output: Val = bevy::math::Mat3A::mul_vec3( + _self, + rhs, + ) .into(); output }, @@ -13607,7 +16909,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3a", |_self: Ref, rhs: Val| { - let output: Val = Mat3A::mul_vec3a(_self, rhs) + let output: Val = bevy::math::Mat3A::mul_vec3a( + _self, + rhs, + ) .into(); output }, @@ -13615,7 +16920,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3A::mul_mat3(_self, rhs) + let output: Val = bevy::math::Mat3A::mul_mat3( + _self, + rhs, + ) .into(); output }, @@ -13623,7 +16931,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3A::add_mat3(_self, rhs) + let output: Val = bevy::math::Mat3A::add_mat3( + _self, + rhs, + ) .into(); output }, @@ -13631,7 +16942,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat3", |_self: Ref, rhs: Ref| { - let output: Val = Mat3A::sub_mat3(_self, rhs) + let output: Val = bevy::math::Mat3A::sub_mat3( + _self, + rhs, + ) .into(); output }, @@ -13639,7 +16953,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat3A::mul_scalar(_self, rhs) + let output: Val = bevy::math::Mat3A::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -13647,7 +16964,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat3A::div_scalar(_self, rhs) + let output: Val = bevy::math::Mat3A::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -13659,7 +16979,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Mat3A::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Mat3A::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -13667,78 +16991,90 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = Mat3A::abs(_self).into(); + let output: Val = bevy::math::Mat3A::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_dmat3", |_self: Ref| { - let output: Val = Mat3A::as_dmat3(_self).into(); + let output: Val = bevy::math::Mat3A::as_dmat3( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = Mat4::neg(_self).into(); + let output: Val = bevy::math::Mat4::neg(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Mat4::clone(_self).into(); + let output: Val = bevy::math::Mat4::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat4::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat4::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat4::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat4::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = Mat4::add(_self, rhs).into(); + let output: Val = bevy::math::Mat4::add(_self, rhs) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f32| { - let output: Val = Mat4::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat4::mul(_self, rhs) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Mat4::eq(_self, rhs).into(); + let output: bool = bevy::math::Mat4::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = Mat4::sub(_self, rhs).into(); + let output: Val = bevy::math::Mat4::sub(_self, rhs) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f32| { - let output: Val = Mat4::div(_self, rhs).into(); + let output: Val = bevy::math::Mat4::div(_self, rhs) + .into(); output }, ) @@ -13750,7 +17086,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { z_axis: Val, w_axis: Val| { - let output: Val = Mat4::from_cols( + let output: Val = bevy::math::Mat4::from_cols( x_axis, y_axis, z_axis, @@ -13763,21 +17099,25 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 16] = Mat4::to_cols_array(_self).into(); + let output: [f32; 16] = bevy::math::Mat4::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 4]; 4] = Mat4::to_cols_array_2d(_self).into(); + let output: [[f32; 4]; 4] = bevy::math::Mat4::to_cols_array_2d(_self) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = Mat4::from_diagonal(diagonal) + let output: Val = bevy::math::Mat4::from_diagonal( + diagonal, + ) .into(); output }, @@ -13789,7 +17129,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rotation: Val, translation: Val| { - let output: Val = Mat4::from_scale_rotation_translation( + let output: Val = bevy::math::Mat4::from_scale_rotation_translation( scale, rotation, translation, @@ -13801,7 +17141,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_translation", |rotation: Val, translation: Val| { - let output: Val = Mat4::from_rotation_translation( + let output: Val = bevy::math::Mat4::from_rotation_translation( rotation, translation, ) @@ -13812,28 +17152,33 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = Mat4::from_quat(rotation).into(); + let output: Val = bevy::math::Mat4::from_quat( + rotation, + ) + .into(); output }, ) .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = Mat4::from_mat3(m).into(); + let output: Val = bevy::math::Mat4::from_mat3(m) + .into(); output }, ) .overwrite_script_function( "from_mat3a", |m: Val| { - let output: Val = Mat4::from_mat3a(m).into(); + let output: Val = bevy::math::Mat4::from_mat3a(m) + .into(); output }, ) .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = Mat4::from_translation( + let output: Val = bevy::math::Mat4::from_translation( translation, ) .into(); @@ -13843,7 +17188,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f32| { - let output: Val = Mat4::from_axis_angle( + let output: Val = bevy::math::Mat4::from_axis_angle( axis, angle, ) @@ -13854,7 +17199,12 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |order: Val, a: f32, b: f32, c: f32| { - let output: Val = Mat4::from_euler(order, a, b, c) + let output: Val = bevy::math::Mat4::from_euler( + order, + a, + b, + c, + ) .into(); output }, @@ -13862,14 +17212,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Ref, order: Val| { - let output: (f32, f32, f32) = Mat4::to_euler(_self, order).into(); + let output: (f32, f32, f32) = bevy::math::Mat4::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f32| { - let output: Val = Mat4::from_rotation_x(angle) + let output: Val = bevy::math::Mat4::from_rotation_x( + angle, + ) .into(); output }, @@ -13877,7 +17233,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f32| { - let output: Val = Mat4::from_rotation_y(angle) + let output: Val = bevy::math::Mat4::from_rotation_y( + angle, + ) .into(); output }, @@ -13885,7 +17243,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f32| { - let output: Val = Mat4::from_rotation_z(angle) + let output: Val = bevy::math::Mat4::from_rotation_z( + angle, + ) .into(); output }, @@ -13893,56 +17253,71 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = Mat4::from_scale(scale).into(); + let output: Val = bevy::math::Mat4::from_scale( + scale, + ) + .into(); output }, ) .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = Mat4::col(_self, index).into(); + let output: Val = bevy::math::Mat4::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = Mat4::row(_self, index).into(); + let output: Val = bevy::math::Mat4::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Mat4::is_finite(_self).into(); + let output: bool = bevy::math::Mat4::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Mat4::is_nan(_self).into(); + let output: bool = bevy::math::Mat4::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = Mat4::transpose(_self).into(); + let output: Val = bevy::math::Mat4::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f32 = Mat4::determinant(_self).into(); + let output: f32 = bevy::math::Mat4::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Mat4::inverse(_self).into(); + let output: Val = bevy::math::Mat4::inverse(_self) + .into(); output }, ) @@ -13953,7 +17328,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = Mat4::look_to_lh(eye, dir, up) + let output: Val = bevy::math::Mat4::look_to_lh( + eye, + dir, + up, + ) .into(); output }, @@ -13965,7 +17344,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = Mat4::look_to_rh(eye, dir, up) + let output: Val = bevy::math::Mat4::look_to_rh( + eye, + dir, + up, + ) .into(); output }, @@ -13977,7 +17360,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = Mat4::look_at_lh(eye, center, up) + let output: Val = bevy::math::Mat4::look_at_lh( + eye, + center, + up, + ) .into(); output }, @@ -13989,7 +17376,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = Mat4::look_at_rh(eye, center, up) + let output: Val = bevy::math::Mat4::look_at_rh( + eye, + center, + up, + ) .into(); output }, @@ -13997,7 +17388,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_rh_gl", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32, z_far: f32| { - let output: Val = Mat4::perspective_rh_gl( + let output: Val = bevy::math::Mat4::perspective_rh_gl( fov_y_radians, aspect_ratio, z_near, @@ -14010,7 +17401,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_lh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32, z_far: f32| { - let output: Val = Mat4::perspective_lh( + let output: Val = bevy::math::Mat4::perspective_lh( fov_y_radians, aspect_ratio, z_near, @@ -14023,7 +17414,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_rh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32, z_far: f32| { - let output: Val = Mat4::perspective_rh( + let output: Val = bevy::math::Mat4::perspective_rh( fov_y_radians, aspect_ratio, z_near, @@ -14036,7 +17427,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_lh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32| { - let output: Val = Mat4::perspective_infinite_lh( + let output: Val = bevy::math::Mat4::perspective_infinite_lh( fov_y_radians, aspect_ratio, z_near, @@ -14048,7 +17439,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_reverse_lh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32| { - let output: Val = Mat4::perspective_infinite_reverse_lh( + let output: Val = bevy::math::Mat4::perspective_infinite_reverse_lh( fov_y_radians, aspect_ratio, z_near, @@ -14060,7 +17451,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_rh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32| { - let output: Val = Mat4::perspective_infinite_rh( + let output: Val = bevy::math::Mat4::perspective_infinite_rh( fov_y_radians, aspect_ratio, z_near, @@ -14072,7 +17463,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_reverse_rh", |fov_y_radians: f32, aspect_ratio: f32, z_near: f32| { - let output: Val = Mat4::perspective_infinite_reverse_rh( + let output: Val = bevy::math::Mat4::perspective_infinite_reverse_rh( fov_y_radians, aspect_ratio, z_near, @@ -14084,7 +17475,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_rh_gl", |left: f32, right: f32, bottom: f32, top: f32, near: f32, far: f32| { - let output: Val = Mat4::orthographic_rh_gl( + let output: Val = bevy::math::Mat4::orthographic_rh_gl( left, right, bottom, @@ -14099,7 +17490,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_lh", |left: f32, right: f32, bottom: f32, top: f32, near: f32, far: f32| { - let output: Val = Mat4::orthographic_lh( + let output: Val = bevy::math::Mat4::orthographic_lh( left, right, bottom, @@ -14114,7 +17505,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_rh", |left: f32, right: f32, bottom: f32, top: f32, near: f32, far: f32| { - let output: Val = Mat4::orthographic_rh( + let output: Val = bevy::math::Mat4::orthographic_rh( left, right, bottom, @@ -14129,7 +17520,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_point3", |_self: Ref, rhs: Val| { - let output: Val = Mat4::project_point3(_self, rhs) + let output: Val = bevy::math::Mat4::project_point3( + _self, + rhs, + ) .into(); output }, @@ -14137,7 +17531,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3", |_self: Ref, rhs: Val| { - let output: Val = Mat4::transform_point3( + let output: Val = bevy::math::Mat4::transform_point3( _self, rhs, ) @@ -14148,7 +17542,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3", |_self: Ref, rhs: Val| { - let output: Val = Mat4::transform_vector3( + let output: Val = bevy::math::Mat4::transform_vector3( _self, rhs, ) @@ -14159,7 +17553,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_point3a", |_self: Ref, rhs: Val| { - let output: Val = Mat4::project_point3a( + let output: Val = bevy::math::Mat4::project_point3a( _self, rhs, ) @@ -14170,7 +17564,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3a", |_self: Ref, rhs: Val| { - let output: Val = Mat4::transform_point3a( + let output: Val = bevy::math::Mat4::transform_point3a( _self, rhs, ) @@ -14181,7 +17575,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3a", |_self: Ref, rhs: Val| { - let output: Val = Mat4::transform_vector3a( + let output: Val = bevy::math::Mat4::transform_vector3a( _self, rhs, ) @@ -14192,7 +17586,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec4", |_self: Ref, rhs: Val| { - let output: Val = Mat4::mul_vec4(_self, rhs) + let output: Val = bevy::math::Mat4::mul_vec4( + _self, + rhs, + ) .into(); output }, @@ -14200,7 +17597,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat4", |_self: Ref, rhs: Ref| { - let output: Val = Mat4::mul_mat4(_self, rhs) + let output: Val = bevy::math::Mat4::mul_mat4( + _self, + rhs, + ) .into(); output }, @@ -14208,7 +17608,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat4", |_self: Ref, rhs: Ref| { - let output: Val = Mat4::add_mat4(_self, rhs) + let output: Val = bevy::math::Mat4::add_mat4( + _self, + rhs, + ) .into(); output }, @@ -14216,7 +17619,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat4", |_self: Ref, rhs: Ref| { - let output: Val = Mat4::sub_mat4(_self, rhs) + let output: Val = bevy::math::Mat4::sub_mat4( + _self, + rhs, + ) .into(); output }, @@ -14224,7 +17630,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat4::mul_scalar(_self, rhs) + let output: Val = bevy::math::Mat4::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -14232,7 +17641,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f32| { - let output: Val = Mat4::div_scalar(_self, rhs) + let output: Val = bevy::math::Mat4::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -14244,7 +17656,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Mat4::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Mat4::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -14252,78 +17668,104 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = Mat4::abs(_self).into(); + let output: Val = bevy::math::Mat4::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_dmat4", |_self: Ref| { - let output: Val = Mat4::as_dmat4(_self).into(); + let output: Val = bevy::math::Mat4::as_dmat4( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Mat4::mul(_self, rhs).into(); + let output: Val = bevy::math::Mat4::mul(_self, rhs) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DMat2::eq(_self, rhs).into(); + let output: bool = bevy::math::DMat2::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DMat2::clone(_self).into(); + let output: Val = bevy::math::DMat2::clone(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DMat2::add(_self, rhs).into(); + let output: Val = bevy::math::DMat2::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DMat2::sub(_self, rhs).into(); + let output: Val = bevy::math::DMat2::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat2::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DMat2::neg(_self).into(); + let output: Val = bevy::math::DMat2::neg(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat2::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "from_cols", |x_axis: Val, y_axis: Val| { - let output: Val = DMat2::from_cols(x_axis, y_axis) + let output: Val = bevy::math::DMat2::from_cols( + x_axis, + y_axis, + ) .into(); output }, @@ -14331,21 +17773,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f64; 4] = DMat2::to_cols_array(_self).into(); + let output: [f64; 4] = bevy::math::DMat2::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f64; 2]; 2] = DMat2::to_cols_array_2d(_self).into(); + let output: [[f64; 2]; 2] = bevy::math::DMat2::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = DMat2::from_diagonal(diagonal) + let output: Val = bevy::math::DMat2::from_diagonal( + diagonal, + ) .into(); output }, @@ -14353,7 +17801,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale_angle", |scale: Val, angle: f64| { - let output: Val = DMat2::from_scale_angle( + let output: Val = bevy::math::DMat2::from_scale_angle( scale, angle, ) @@ -14364,21 +17812,29 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f64| { - let output: Val = DMat2::from_angle(angle).into(); + let output: Val = bevy::math::DMat2::from_angle( + angle, + ) + .into(); output }, ) .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = DMat2::from_mat3(m).into(); + let output: Val = bevy::math::DMat2::from_mat3(m) + .into(); output }, ) .overwrite_script_function( "from_mat3_minor", |m: Val, i: usize, j: usize| { - let output: Val = DMat2::from_mat3_minor(m, i, j) + let output: Val = bevy::math::DMat2::from_mat3_minor( + m, + i, + j, + ) .into(); output }, @@ -14386,56 +17842,73 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = DMat2::col(_self, index).into(); + let output: Val = bevy::math::DMat2::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = DMat2::row(_self, index).into(); + let output: Val = bevy::math::DMat2::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = DMat2::is_finite(_self).into(); + let output: bool = bevy::math::DMat2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = DMat2::is_nan(_self).into(); + let output: bool = bevy::math::DMat2::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = DMat2::transpose(_self).into(); + let output: Val = bevy::math::DMat2::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f64 = DMat2::determinant(_self).into(); + let output: f64 = bevy::math::DMat2::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = DMat2::inverse(_self).into(); + let output: Val = bevy::math::DMat2::inverse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "mul_vec2", |_self: Ref, rhs: Val| { - let output: Val = DMat2::mul_vec2(_self, rhs) + let output: Val = bevy::math::DMat2::mul_vec2( + _self, + rhs, + ) .into(); output }, @@ -14443,7 +17916,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat2", |_self: Ref, rhs: Ref| { - let output: Val = DMat2::mul_mat2(_self, rhs) + let output: Val = bevy::math::DMat2::mul_mat2( + _self, + rhs, + ) .into(); output }, @@ -14451,7 +17927,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat2", |_self: Ref, rhs: Ref| { - let output: Val = DMat2::add_mat2(_self, rhs) + let output: Val = bevy::math::DMat2::add_mat2( + _self, + rhs, + ) .into(); output }, @@ -14459,7 +17938,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat2", |_self: Ref, rhs: Ref| { - let output: Val = DMat2::sub_mat2(_self, rhs) + let output: Val = bevy::math::DMat2::sub_mat2( + _self, + rhs, + ) .into(); output }, @@ -14467,7 +17949,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat2::mul_scalar(_self, rhs) + let output: Val = bevy::math::DMat2::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -14475,7 +17960,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat2::div_scalar(_self, rhs) + let output: Val = bevy::math::DMat2::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -14487,7 +17975,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DMat2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DMat2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -14495,50 +17987,72 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = DMat2::abs(_self).into(); + let output: Val = bevy::math::DMat2::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_mat2", |_self: Ref| { - let output: Val = DMat2::as_mat2(_self).into(); + let output: Val = bevy::math::DMat2::as_mat2(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DMat2::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DMat2::div(_self, rhs).into(); + let output: Val = bevy::math::DMat2::div( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat3::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat3::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DMat3::add(_self, rhs).into(); + let output: Val = bevy::math::DMat3::add( + _self, + rhs, + ) + .into(); output }, ) @@ -14549,7 +18063,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { y_axis: Val, z_axis: Val| { - let output: Val = DMat3::from_cols( + let output: Val = bevy::math::DMat3::from_cols( x_axis, y_axis, z_axis, @@ -14561,21 +18075,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f64; 9] = DMat3::to_cols_array(_self).into(); + let output: [f64; 9] = bevy::math::DMat3::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f64; 3]; 3] = DMat3::to_cols_array_2d(_self).into(); + let output: [[f64; 3]; 3] = bevy::math::DMat3::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = DMat3::from_diagonal(diagonal) + let output: Val = bevy::math::DMat3::from_diagonal( + diagonal, + ) .into(); output }, @@ -14583,14 +18103,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat4", |m: Val| { - let output: Val = DMat3::from_mat4(m).into(); + let output: Val = bevy::math::DMat3::from_mat4(m) + .into(); output }, ) .overwrite_script_function( "from_mat4_minor", |m: Val, i: usize, j: usize| { - let output: Val = DMat3::from_mat4_minor(m, i, j) + let output: Val = bevy::math::DMat3::from_mat4_minor( + m, + i, + j, + ) .into(); output }, @@ -14598,7 +18123,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = DMat3::from_quat(rotation) + let output: Val = bevy::math::DMat3::from_quat( + rotation, + ) .into(); output }, @@ -14606,7 +18133,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f64| { - let output: Val = DMat3::from_axis_angle( + let output: Val = bevy::math::DMat3::from_axis_angle( axis, angle, ) @@ -14617,7 +18144,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |order: Val, a: f64, b: f64, c: f64| { - let output: Val = DMat3::from_euler( + let output: Val = bevy::math::DMat3::from_euler( order, a, b, @@ -14630,14 +18157,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Ref, order: Val| { - let output: (f64, f64, f64) = DMat3::to_euler(_self, order).into(); + let output: (f64, f64, f64) = bevy::math::DMat3::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f64| { - let output: Val = DMat3::from_rotation_x(angle) + let output: Val = bevy::math::DMat3::from_rotation_x( + angle, + ) .into(); output }, @@ -14645,7 +18178,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f64| { - let output: Val = DMat3::from_rotation_y(angle) + let output: Val = bevy::math::DMat3::from_rotation_y( + angle, + ) .into(); output }, @@ -14653,7 +18188,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f64| { - let output: Val = DMat3::from_rotation_z(angle) + let output: Val = bevy::math::DMat3::from_rotation_z( + angle, + ) .into(); output }, @@ -14661,7 +18198,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = DMat3::from_translation( + let output: Val = bevy::math::DMat3::from_translation( translation, ) .into(); @@ -14671,7 +18208,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f64| { - let output: Val = DMat3::from_angle(angle).into(); + let output: Val = bevy::math::DMat3::from_angle( + angle, + ) + .into(); output }, ) @@ -14682,7 +18222,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { angle: f64, translation: Val| { - let output: Val = DMat3::from_scale_angle_translation( + let output: Val = bevy::math::DMat3::from_scale_angle_translation( scale, angle, translation, @@ -14694,70 +18234,88 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = DMat3::from_scale(scale).into(); + let output: Val = bevy::math::DMat3::from_scale( + scale, + ) + .into(); output }, ) .overwrite_script_function( "from_mat2", |m: Val| { - let output: Val = DMat3::from_mat2(m).into(); + let output: Val = bevy::math::DMat3::from_mat2(m) + .into(); output }, ) .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = DMat3::col(_self, index).into(); + let output: Val = bevy::math::DMat3::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = DMat3::row(_self, index).into(); + let output: Val = bevy::math::DMat3::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = DMat3::is_finite(_self).into(); + let output: bool = bevy::math::DMat3::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = DMat3::is_nan(_self).into(); + let output: bool = bevy::math::DMat3::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = DMat3::transpose(_self).into(); + let output: Val = bevy::math::DMat3::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f64 = DMat3::determinant(_self).into(); + let output: f64 = bevy::math::DMat3::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = DMat3::inverse(_self).into(); + let output: Val = bevy::math::DMat3::inverse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "transform_point2", |_self: Ref, rhs: Val| { - let output: Val = DMat3::transform_point2( + let output: Val = bevy::math::DMat3::transform_point2( _self, rhs, ) @@ -14768,7 +18326,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector2", |_self: Ref, rhs: Val| { - let output: Val = DMat3::transform_vector2( + let output: Val = bevy::math::DMat3::transform_vector2( _self, rhs, ) @@ -14779,7 +18337,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3", |_self: Ref, rhs: Val| { - let output: Val = DMat3::mul_vec3(_self, rhs) + let output: Val = bevy::math::DMat3::mul_vec3( + _self, + rhs, + ) .into(); output }, @@ -14787,7 +18348,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat3", |_self: Ref, rhs: Ref| { - let output: Val = DMat3::mul_mat3(_self, rhs) + let output: Val = bevy::math::DMat3::mul_mat3( + _self, + rhs, + ) .into(); output }, @@ -14795,7 +18359,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat3", |_self: Ref, rhs: Ref| { - let output: Val = DMat3::add_mat3(_self, rhs) + let output: Val = bevy::math::DMat3::add_mat3( + _self, + rhs, + ) .into(); output }, @@ -14803,7 +18370,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat3", |_self: Ref, rhs: Ref| { - let output: Val = DMat3::sub_mat3(_self, rhs) + let output: Val = bevy::math::DMat3::sub_mat3( + _self, + rhs, + ) .into(); output }, @@ -14811,7 +18381,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat3::mul_scalar(_self, rhs) + let output: Val = bevy::math::DMat3::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -14819,7 +18392,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat3::div_scalar(_self, rhs) + let output: Val = bevy::math::DMat3::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -14831,7 +18407,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DMat3::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DMat3::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -14839,78 +18419,106 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = DMat3::abs(_self).into(); + let output: Val = bevy::math::DMat3::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_mat3", |_self: Ref| { - let output: Val = DMat3::as_mat3(_self).into(); + let output: Val = bevy::math::DMat3::as_mat3(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DMat3::eq(_self, rhs).into(); + let output: bool = bevy::math::DMat3::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DMat3::clone(_self).into(); + let output: Val = bevy::math::DMat3::clone(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DMat3::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DMat3::neg(_self).into(); + let output: Val = bevy::math::DMat3::neg(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DMat3::sub(_self, rhs).into(); + let output: Val = bevy::math::DMat3::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat3::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat3::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DMat3::div(_self, rhs).into(); + let output: Val = bevy::math::DMat3::div( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat4::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat4::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat4::mul( + _self, + rhs, + ) + .into(); output }, ) @@ -14922,7 +18530,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { z_axis: Val, w_axis: Val| { - let output: Val = DMat4::from_cols( + let output: Val = bevy::math::DMat4::from_cols( x_axis, y_axis, z_axis, @@ -14935,21 +18543,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f64; 16] = DMat4::to_cols_array(_self).into(); + let output: [f64; 16] = bevy::math::DMat4::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f64; 4]; 4] = DMat4::to_cols_array_2d(_self).into(); + let output: [[f64; 4]; 4] = bevy::math::DMat4::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_diagonal", |diagonal: Val| { - let output: Val = DMat4::from_diagonal(diagonal) + let output: Val = bevy::math::DMat4::from_diagonal( + diagonal, + ) .into(); output }, @@ -14961,7 +18575,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rotation: Val, translation: Val| { - let output: Val = DMat4::from_scale_rotation_translation( + let output: Val = bevy::math::DMat4::from_scale_rotation_translation( scale, rotation, translation, @@ -14973,7 +18587,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_translation", |rotation: Val, translation: Val| { - let output: Val = DMat4::from_rotation_translation( + let output: Val = bevy::math::DMat4::from_rotation_translation( rotation, translation, ) @@ -14984,7 +18598,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = DMat4::from_quat(rotation) + let output: Val = bevy::math::DMat4::from_quat( + rotation, + ) .into(); output }, @@ -14992,14 +18608,15 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = DMat4::from_mat3(m).into(); + let output: Val = bevy::math::DMat4::from_mat3(m) + .into(); output }, ) .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = DMat4::from_translation( + let output: Val = bevy::math::DMat4::from_translation( translation, ) .into(); @@ -15009,7 +18626,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f64| { - let output: Val = DMat4::from_axis_angle( + let output: Val = bevy::math::DMat4::from_axis_angle( axis, angle, ) @@ -15020,7 +18637,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |order: Val, a: f64, b: f64, c: f64| { - let output: Val = DMat4::from_euler( + let output: Val = bevy::math::DMat4::from_euler( order, a, b, @@ -15033,14 +18650,20 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Ref, order: Val| { - let output: (f64, f64, f64) = DMat4::to_euler(_self, order).into(); + let output: (f64, f64, f64) = bevy::math::DMat4::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_x", |angle: f64| { - let output: Val = DMat4::from_rotation_x(angle) + let output: Val = bevy::math::DMat4::from_rotation_x( + angle, + ) .into(); output }, @@ -15048,7 +18671,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f64| { - let output: Val = DMat4::from_rotation_y(angle) + let output: Val = bevy::math::DMat4::from_rotation_y( + angle, + ) .into(); output }, @@ -15056,7 +18681,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f64| { - let output: Val = DMat4::from_rotation_z(angle) + let output: Val = bevy::math::DMat4::from_rotation_z( + angle, + ) .into(); output }, @@ -15064,56 +18691,73 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = DMat4::from_scale(scale).into(); + let output: Val = bevy::math::DMat4::from_scale( + scale, + ) + .into(); output }, ) .overwrite_script_function( "col", |_self: Ref, index: usize| { - let output: Val = DMat4::col(_self, index).into(); + let output: Val = bevy::math::DMat4::col( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "row", |_self: Ref, index: usize| { - let output: Val = DMat4::row(_self, index).into(); + let output: Val = bevy::math::DMat4::row( + _self, + index, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = DMat4::is_finite(_self).into(); + let output: bool = bevy::math::DMat4::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = DMat4::is_nan(_self).into(); + let output: bool = bevy::math::DMat4::is_nan(_self).into(); output }, ) .overwrite_script_function( "transpose", |_self: Ref| { - let output: Val = DMat4::transpose(_self).into(); + let output: Val = bevy::math::DMat4::transpose( + _self, + ) + .into(); output }, ) .overwrite_script_function( "determinant", |_self: Ref| { - let output: f64 = DMat4::determinant(_self).into(); + let output: f64 = bevy::math::DMat4::determinant(_self).into(); output }, ) .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = DMat4::inverse(_self).into(); + let output: Val = bevy::math::DMat4::inverse( + _self, + ) + .into(); output }, ) @@ -15124,7 +18768,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = DMat4::look_to_lh(eye, dir, up) + let output: Val = bevy::math::DMat4::look_to_lh( + eye, + dir, + up, + ) .into(); output }, @@ -15136,7 +18784,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = DMat4::look_to_rh(eye, dir, up) + let output: Val = bevy::math::DMat4::look_to_rh( + eye, + dir, + up, + ) .into(); output }, @@ -15148,7 +18800,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = DMat4::look_at_lh( + let output: Val = bevy::math::DMat4::look_at_lh( eye, center, up, @@ -15164,7 +18816,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = DMat4::look_at_rh( + let output: Val = bevy::math::DMat4::look_at_rh( eye, center, up, @@ -15176,7 +18828,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_rh_gl", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64, z_far: f64| { - let output: Val = DMat4::perspective_rh_gl( + let output: Val = bevy::math::DMat4::perspective_rh_gl( fov_y_radians, aspect_ratio, z_near, @@ -15189,7 +18841,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_lh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64, z_far: f64| { - let output: Val = DMat4::perspective_lh( + let output: Val = bevy::math::DMat4::perspective_lh( fov_y_radians, aspect_ratio, z_near, @@ -15202,7 +18854,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_rh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64, z_far: f64| { - let output: Val = DMat4::perspective_rh( + let output: Val = bevy::math::DMat4::perspective_rh( fov_y_radians, aspect_ratio, z_near, @@ -15215,7 +18867,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_lh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64| { - let output: Val = DMat4::perspective_infinite_lh( + let output: Val = bevy::math::DMat4::perspective_infinite_lh( fov_y_radians, aspect_ratio, z_near, @@ -15227,7 +18879,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_reverse_lh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64| { - let output: Val = DMat4::perspective_infinite_reverse_lh( + let output: Val = bevy::math::DMat4::perspective_infinite_reverse_lh( fov_y_radians, aspect_ratio, z_near, @@ -15239,7 +18891,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_rh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64| { - let output: Val = DMat4::perspective_infinite_rh( + let output: Val = bevy::math::DMat4::perspective_infinite_rh( fov_y_radians, aspect_ratio, z_near, @@ -15251,7 +18903,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "perspective_infinite_reverse_rh", |fov_y_radians: f64, aspect_ratio: f64, z_near: f64| { - let output: Val = DMat4::perspective_infinite_reverse_rh( + let output: Val = bevy::math::DMat4::perspective_infinite_reverse_rh( fov_y_radians, aspect_ratio, z_near, @@ -15263,7 +18915,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_rh_gl", |left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64| { - let output: Val = DMat4::orthographic_rh_gl( + let output: Val = bevy::math::DMat4::orthographic_rh_gl( left, right, bottom, @@ -15278,7 +18930,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_lh", |left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64| { - let output: Val = DMat4::orthographic_lh( + let output: Val = bevy::math::DMat4::orthographic_lh( left, right, bottom, @@ -15293,7 +18945,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "orthographic_rh", |left: f64, right: f64, bottom: f64, top: f64, near: f64, far: f64| { - let output: Val = DMat4::orthographic_rh( + let output: Val = bevy::math::DMat4::orthographic_rh( left, right, bottom, @@ -15308,7 +18960,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "project_point3", |_self: Ref, rhs: Val| { - let output: Val = DMat4::project_point3( + let output: Val = bevy::math::DMat4::project_point3( _self, rhs, ) @@ -15319,7 +18971,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3", |_self: Ref, rhs: Val| { - let output: Val = DMat4::transform_point3( + let output: Val = bevy::math::DMat4::transform_point3( _self, rhs, ) @@ -15330,7 +18982,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3", |_self: Ref, rhs: Val| { - let output: Val = DMat4::transform_vector3( + let output: Val = bevy::math::DMat4::transform_vector3( _self, rhs, ) @@ -15341,7 +18993,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec4", |_self: Ref, rhs: Val| { - let output: Val = DMat4::mul_vec4(_self, rhs) + let output: Val = bevy::math::DMat4::mul_vec4( + _self, + rhs, + ) .into(); output }, @@ -15349,7 +19004,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_mat4", |_self: Ref, rhs: Ref| { - let output: Val = DMat4::mul_mat4(_self, rhs) + let output: Val = bevy::math::DMat4::mul_mat4( + _self, + rhs, + ) .into(); output }, @@ -15357,7 +19015,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "add_mat4", |_self: Ref, rhs: Ref| { - let output: Val = DMat4::add_mat4(_self, rhs) + let output: Val = bevy::math::DMat4::add_mat4( + _self, + rhs, + ) .into(); output }, @@ -15365,7 +19026,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "sub_mat4", |_self: Ref, rhs: Ref| { - let output: Val = DMat4::sub_mat4(_self, rhs) + let output: Val = bevy::math::DMat4::sub_mat4( + _self, + rhs, + ) .into(); output }, @@ -15373,7 +19037,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat4::mul_scalar(_self, rhs) + let output: Val = bevy::math::DMat4::mul_scalar( + _self, + rhs, + ) .into(); output }, @@ -15381,7 +19048,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "div_scalar", |_self: Ref, rhs: f64| { - let output: Val = DMat4::div_scalar(_self, rhs) + let output: Val = bevy::math::DMat4::div_scalar( + _self, + rhs, + ) .into(); output }, @@ -15393,7 +19063,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DMat4::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DMat4::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -15401,85 +19075,116 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "abs", |_self: Ref| { - let output: Val = DMat4::abs(_self).into(); + let output: Val = bevy::math::DMat4::abs(_self) + .into(); output }, ) .overwrite_script_function( "as_mat4", |_self: Ref| { - let output: Val = DMat4::as_mat4(_self).into(); + let output: Val = bevy::math::DMat4::as_mat4(_self) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DMat4::neg(_self).into(); + let output: Val = bevy::math::DMat4::neg(_self) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DMat4::clone(_self).into(); + let output: Val = bevy::math::DMat4::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DMat4::sub(_self, rhs).into(); + let output: Val = bevy::math::DMat4::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DMat4::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat4::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DMat4::eq(_self, rhs).into(); + let output: bool = bevy::math::DMat4::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DMat4::add(_self, rhs).into(); + let output: Val = bevy::math::DMat4::add( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DMat4::div(_self, rhs).into(); + let output: Val = bevy::math::DMat4::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DMat4::mul(_self, rhs).into(); + let output: Val = bevy::math::DMat4::mul( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Affine2::mul(_self, rhs).into(); + let output: Val = bevy::math::Affine2::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Affine2::mul(_self, rhs) + let output: Val = bevy::math::Affine2::mul( + _self, + rhs, + ) .into(); output }, @@ -15487,7 +19192,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Affine2::clone(_self).into(); + let output: Val = bevy::math::Affine2::clone( + _self, + ) + .into(); output }, ) @@ -15498,7 +19206,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { y_axis: Val, z_axis: Val| { - let output: Val = Affine2::from_cols( + let output: Val = bevy::math::Affine2::from_cols( x_axis, y_axis, z_axis, @@ -15510,21 +19218,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 6] = Affine2::to_cols_array(_self).into(); + let output: [f32; 6] = bevy::math::Affine2::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 2]; 3] = Affine2::to_cols_array_2d(_self).into(); + let output: [[f32; 2]; 3] = bevy::math::Affine2::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = Affine2::from_scale(scale) + let output: Val = bevy::math::Affine2::from_scale( + scale, + ) .into(); output }, @@ -15532,7 +19246,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f32| { - let output: Val = Affine2::from_angle(angle) + let output: Val = bevy::math::Affine2::from_angle( + angle, + ) .into(); output }, @@ -15540,7 +19256,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = Affine2::from_translation( + let output: Val = bevy::math::Affine2::from_translation( translation, ) .into(); @@ -15550,7 +19266,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat2", |matrix2: Val| { - let output: Val = Affine2::from_mat2(matrix2) + let output: Val = bevy::math::Affine2::from_mat2( + matrix2, + ) .into(); output }, @@ -15558,7 +19276,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat2_translation", |matrix2: Val, translation: Val| { - let output: Val = Affine2::from_mat2_translation( + let output: Val = bevy::math::Affine2::from_mat2_translation( matrix2, translation, ) @@ -15573,7 +19291,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { angle: f32, translation: Val| { - let output: Val = Affine2::from_scale_angle_translation( + let output: Val = bevy::math::Affine2::from_scale_angle_translation( scale, angle, translation, @@ -15585,7 +19303,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle_translation", |angle: f32, translation: Val| { - let output: Val = Affine2::from_angle_translation( + let output: Val = bevy::math::Affine2::from_angle_translation( angle, translation, ) @@ -15596,21 +19314,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = Affine2::from_mat3(m).into(); + let output: Val = bevy::math::Affine2::from_mat3( + m, + ) + .into(); output }, ) .overwrite_script_function( "from_mat3a", |m: Val| { - let output: Val = Affine2::from_mat3a(m).into(); + let output: Val = bevy::math::Affine2::from_mat3a( + m, + ) + .into(); output }, ) .overwrite_script_function( "transform_point2", |_self: Ref, rhs: Val| { - let output: Val = Affine2::transform_point2( + let output: Val = bevy::math::Affine2::transform_point2( _self, rhs, ) @@ -15621,7 +19345,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector2", |_self: Ref, rhs: Val| { - let output: Val = Affine2::transform_vector2( + let output: Val = bevy::math::Affine2::transform_vector2( _self, rhs, ) @@ -15632,14 +19356,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Affine2::is_finite(_self).into(); + let output: bool = bevy::math::Affine2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Affine2::is_nan(_self).into(); + let output: bool = bevy::math::Affine2::is_nan(_self).into(); output }, ) @@ -15650,7 +19374,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Affine2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Affine2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -15658,7 +19386,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Affine2::inverse(_self) + let output: Val = bevy::math::Affine2::inverse( + _self, + ) .into(); output }, @@ -15666,29 +19396,35 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Affine2::eq(_self, rhs).into(); + let output: bool = bevy::math::Affine2::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Affine2::mul(_self, rhs).into(); + let output: Val = bevy::math::Affine2::mul( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = Affine3A::eq(_self, rhs).into(); + let output: bool = bevy::math::Affine3A::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Affine3A::clone(_self) + let output: Val = bevy::math::Affine3A::clone( + _self, + ) .into(); output }, @@ -15701,7 +19437,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { z_axis: Val, w_axis: Val| { - let output: Val = Affine3A::from_cols( + let output: Val = bevy::math::Affine3A::from_cols( x_axis, y_axis, z_axis, @@ -15714,21 +19450,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f32; 12] = Affine3A::to_cols_array(_self).into(); + let output: [f32; 12] = bevy::math::Affine3A::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f32; 3]; 4] = Affine3A::to_cols_array_2d(_self).into(); + let output: [[f32; 3]; 4] = bevy::math::Affine3A::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = Affine3A::from_scale(scale) + let output: Val = bevy::math::Affine3A::from_scale( + scale, + ) .into(); output }, @@ -15736,7 +19478,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = Affine3A::from_quat(rotation) + let output: Val = bevy::math::Affine3A::from_quat( + rotation, + ) .into(); output }, @@ -15744,7 +19488,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f32| { - let output: Val = Affine3A::from_axis_angle( + let output: Val = bevy::math::Affine3A::from_axis_angle( axis, angle, ) @@ -15755,7 +19499,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_x", |angle: f32| { - let output: Val = Affine3A::from_rotation_x( + let output: Val = bevy::math::Affine3A::from_rotation_x( angle, ) .into(); @@ -15765,7 +19509,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f32| { - let output: Val = Affine3A::from_rotation_y( + let output: Val = bevy::math::Affine3A::from_rotation_y( angle, ) .into(); @@ -15775,7 +19519,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f32| { - let output: Val = Affine3A::from_rotation_z( + let output: Val = bevy::math::Affine3A::from_rotation_z( angle, ) .into(); @@ -15785,7 +19529,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = Affine3A::from_translation( + let output: Val = bevy::math::Affine3A::from_translation( translation, ) .into(); @@ -15795,7 +19539,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |mat3: Val| { - let output: Val = Affine3A::from_mat3(mat3) + let output: Val = bevy::math::Affine3A::from_mat3( + mat3, + ) .into(); output }, @@ -15803,7 +19549,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3_translation", |mat3: Val, translation: Val| { - let output: Val = Affine3A::from_mat3_translation( + let output: Val = bevy::math::Affine3A::from_mat3_translation( mat3, translation, ) @@ -15818,7 +19564,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rotation: Val, translation: Val| { - let output: Val = Affine3A::from_scale_rotation_translation( + let output: Val = bevy::math::Affine3A::from_scale_rotation_translation( scale, rotation, translation, @@ -15830,7 +19576,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_translation", |rotation: Val, translation: Val| { - let output: Val = Affine3A::from_rotation_translation( + let output: Val = bevy::math::Affine3A::from_rotation_translation( rotation, translation, ) @@ -15841,7 +19587,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat4", |m: Val| { - let output: Val = Affine3A::from_mat4(m) + let output: Val = bevy::math::Affine3A::from_mat4( + m, + ) .into(); output }, @@ -15853,7 +19601,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = Affine3A::look_to_lh( + let output: Val = bevy::math::Affine3A::look_to_lh( eye, dir, up, @@ -15869,7 +19617,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = Affine3A::look_to_rh( + let output: Val = bevy::math::Affine3A::look_to_rh( eye, dir, up, @@ -15885,7 +19633,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = Affine3A::look_at_lh( + let output: Val = bevy::math::Affine3A::look_at_lh( eye, center, up, @@ -15901,7 +19649,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = Affine3A::look_at_rh( + let output: Val = bevy::math::Affine3A::look_at_rh( eye, center, up, @@ -15913,7 +19661,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3", |_self: Ref, rhs: Val| { - let output: Val = Affine3A::transform_point3( + let output: Val = bevy::math::Affine3A::transform_point3( _self, rhs, ) @@ -15924,7 +19672,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3", |_self: Ref, rhs: Val| { - let output: Val = Affine3A::transform_vector3( + let output: Val = bevy::math::Affine3A::transform_vector3( _self, rhs, ) @@ -15935,7 +19683,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3a", |_self: Ref, rhs: Val| { - let output: Val = Affine3A::transform_point3a( + let output: Val = bevy::math::Affine3A::transform_point3a( _self, rhs, ) @@ -15946,7 +19694,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3a", |_self: Ref, rhs: Val| { - let output: Val = Affine3A::transform_vector3a( + let output: Val = bevy::math::Affine3A::transform_vector3a( _self, rhs, ) @@ -15957,14 +19705,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Affine3A::is_finite(_self).into(); + let output: bool = bevy::math::Affine3A::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = Affine3A::is_nan(_self).into(); + let output: bool = bevy::math::Affine3A::is_nan(_self).into(); output }, ) @@ -15975,7 +19723,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f32| { - let output: bool = Affine3A::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::Affine3A::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -15983,7 +19735,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = Affine3A::inverse(_self) + let output: Val = bevy::math::Affine3A::inverse( + _self, + ) .into(); output }, @@ -15991,7 +19745,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Affine3A::mul(_self, rhs) + let output: Val = bevy::math::Affine3A::mul( + _self, + rhs, + ) .into(); output }, @@ -15999,15 +19756,19 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = Affine3A::mul(_self, rhs).into(); + let output: Val = bevy::math::Affine3A::mul( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DAffine2::eq(_self, rhs).into(); + let output: bool = bevy::math::DAffine2::eq(_self, rhs).into(); output }, ) @@ -16018,7 +19779,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { y_axis: Val, z_axis: Val| { - let output: Val = DAffine2::from_cols( + let output: Val = bevy::math::DAffine2::from_cols( x_axis, y_axis, z_axis, @@ -16030,21 +19791,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f64; 6] = DAffine2::to_cols_array(_self).into(); + let output: [f64; 6] = bevy::math::DAffine2::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f64; 2]; 3] = DAffine2::to_cols_array_2d(_self).into(); + let output: [[f64; 2]; 3] = bevy::math::DAffine2::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = DAffine2::from_scale(scale) + let output: Val = bevy::math::DAffine2::from_scale( + scale, + ) .into(); output }, @@ -16052,7 +19819,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle", |angle: f64| { - let output: Val = DAffine2::from_angle(angle) + let output: Val = bevy::math::DAffine2::from_angle( + angle, + ) .into(); output }, @@ -16060,7 +19829,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = DAffine2::from_translation( + let output: Val = bevy::math::DAffine2::from_translation( translation, ) .into(); @@ -16070,7 +19839,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat2", |matrix2: Val| { - let output: Val = DAffine2::from_mat2(matrix2) + let output: Val = bevy::math::DAffine2::from_mat2( + matrix2, + ) .into(); output }, @@ -16078,7 +19849,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat2_translation", |matrix2: Val, translation: Val| { - let output: Val = DAffine2::from_mat2_translation( + let output: Val = bevy::math::DAffine2::from_mat2_translation( matrix2, translation, ) @@ -16093,7 +19864,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { angle: f64, translation: Val| { - let output: Val = DAffine2::from_scale_angle_translation( + let output: Val = bevy::math::DAffine2::from_scale_angle_translation( scale, angle, translation, @@ -16105,7 +19876,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_angle_translation", |angle: f64, translation: Val| { - let output: Val = DAffine2::from_angle_translation( + let output: Val = bevy::math::DAffine2::from_angle_translation( angle, translation, ) @@ -16116,7 +19887,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |m: Val| { - let output: Val = DAffine2::from_mat3(m) + let output: Val = bevy::math::DAffine2::from_mat3( + m, + ) .into(); output }, @@ -16124,7 +19897,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point2", |_self: Ref, rhs: Val| { - let output: Val = DAffine2::transform_point2( + let output: Val = bevy::math::DAffine2::transform_point2( _self, rhs, ) @@ -16135,7 +19908,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector2", |_self: Ref, rhs: Val| { - let output: Val = DAffine2::transform_vector2( + let output: Val = bevy::math::DAffine2::transform_vector2( _self, rhs, ) @@ -16146,14 +19919,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = DAffine2::is_finite(_self).into(); + let output: bool = bevy::math::DAffine2::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = DAffine2::is_nan(_self).into(); + let output: bool = bevy::math::DAffine2::is_nan(_self).into(); output }, ) @@ -16164,7 +19937,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DAffine2::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DAffine2::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -16172,7 +19949,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = DAffine2::inverse(_self) + let output: Val = bevy::math::DAffine2::inverse( + _self, + ) .into(); output }, @@ -16180,7 +19959,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DAffine2::mul(_self, rhs) + let output: Val = bevy::math::DAffine2::mul( + _self, + rhs, + ) .into(); output }, @@ -16188,7 +19970,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DAffine2::mul(_self, rhs) + let output: Val = bevy::math::DAffine2::mul( + _self, + rhs, + ) .into(); output }, @@ -16196,12 +19981,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DAffine2::clone(_self) + let output: Val = bevy::math::DAffine2::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_cols", | @@ -16210,7 +19997,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { z_axis: Val, w_axis: Val| { - let output: Val = DAffine3::from_cols( + let output: Val = bevy::math::DAffine3::from_cols( x_axis, y_axis, z_axis, @@ -16223,21 +20010,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_cols_array", |_self: Ref| { - let output: [f64; 12] = DAffine3::to_cols_array(_self).into(); + let output: [f64; 12] = bevy::math::DAffine3::to_cols_array(_self) + .into(); output }, ) .overwrite_script_function( "to_cols_array_2d", |_self: Ref| { - let output: [[f64; 3]; 4] = DAffine3::to_cols_array_2d(_self).into(); + let output: [[f64; 3]; 4] = bevy::math::DAffine3::to_cols_array_2d( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_scale", |scale: Val| { - let output: Val = DAffine3::from_scale(scale) + let output: Val = bevy::math::DAffine3::from_scale( + scale, + ) .into(); output }, @@ -16245,7 +20038,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_quat", |rotation: Val| { - let output: Val = DAffine3::from_quat(rotation) + let output: Val = bevy::math::DAffine3::from_quat( + rotation, + ) .into(); output }, @@ -16253,7 +20048,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f64| { - let output: Val = DAffine3::from_axis_angle( + let output: Val = bevy::math::DAffine3::from_axis_angle( axis, angle, ) @@ -16264,7 +20059,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_x", |angle: f64| { - let output: Val = DAffine3::from_rotation_x( + let output: Val = bevy::math::DAffine3::from_rotation_x( angle, ) .into(); @@ -16274,7 +20069,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f64| { - let output: Val = DAffine3::from_rotation_y( + let output: Val = bevy::math::DAffine3::from_rotation_y( angle, ) .into(); @@ -16284,7 +20079,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f64| { - let output: Val = DAffine3::from_rotation_z( + let output: Val = bevy::math::DAffine3::from_rotation_z( angle, ) .into(); @@ -16294,7 +20089,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_translation", |translation: Val| { - let output: Val = DAffine3::from_translation( + let output: Val = bevy::math::DAffine3::from_translation( translation, ) .into(); @@ -16304,7 +20099,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |mat3: Val| { - let output: Val = DAffine3::from_mat3(mat3) + let output: Val = bevy::math::DAffine3::from_mat3( + mat3, + ) .into(); output }, @@ -16312,7 +20109,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3_translation", |mat3: Val, translation: Val| { - let output: Val = DAffine3::from_mat3_translation( + let output: Val = bevy::math::DAffine3::from_mat3_translation( mat3, translation, ) @@ -16327,7 +20124,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rotation: Val, translation: Val| { - let output: Val = DAffine3::from_scale_rotation_translation( + let output: Val = bevy::math::DAffine3::from_scale_rotation_translation( scale, rotation, translation, @@ -16339,7 +20136,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_translation", |rotation: Val, translation: Val| { - let output: Val = DAffine3::from_rotation_translation( + let output: Val = bevy::math::DAffine3::from_rotation_translation( rotation, translation, ) @@ -16350,7 +20147,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat4", |m: Val| { - let output: Val = DAffine3::from_mat4(m) + let output: Val = bevy::math::DAffine3::from_mat4( + m, + ) .into(); output }, @@ -16362,7 +20161,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = DAffine3::look_to_lh( + let output: Val = bevy::math::DAffine3::look_to_lh( eye, dir, up, @@ -16378,7 +20177,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { dir: Val, up: Val| { - let output: Val = DAffine3::look_to_rh( + let output: Val = bevy::math::DAffine3::look_to_rh( eye, dir, up, @@ -16394,7 +20193,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = DAffine3::look_at_lh( + let output: Val = bevy::math::DAffine3::look_at_lh( eye, center, up, @@ -16410,7 +20209,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { center: Val, up: Val| { - let output: Val = DAffine3::look_at_rh( + let output: Val = bevy::math::DAffine3::look_at_rh( eye, center, up, @@ -16422,7 +20221,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_point3", |_self: Ref, rhs: Val| { - let output: Val = DAffine3::transform_point3( + let output: Val = bevy::math::DAffine3::transform_point3( _self, rhs, ) @@ -16433,7 +20232,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "transform_vector3", |_self: Ref, rhs: Val| { - let output: Val = DAffine3::transform_vector3( + let output: Val = bevy::math::DAffine3::transform_vector3( _self, rhs, ) @@ -16444,14 +20243,14 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = DAffine3::is_finite(_self).into(); + let output: bool = bevy::math::DAffine3::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Ref| { - let output: bool = DAffine3::is_nan(_self).into(); + let output: bool = bevy::math::DAffine3::is_nan(_self).into(); output }, ) @@ -16462,7 +20261,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DAffine3::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DAffine3::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -16470,7 +20273,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "inverse", |_self: Ref| { - let output: Val = DAffine3::inverse(_self) + let output: Val = bevy::math::DAffine3::inverse( + _self, + ) .into(); output }, @@ -16478,14 +20283,17 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DAffine3::eq(_self, rhs).into(); + let output: bool = bevy::math::DAffine3::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DAffine3::mul(_self, rhs) + let output: Val = bevy::math::DAffine3::mul( + _self, + rhs, + ) .into(); output }, @@ -16493,7 +20301,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DAffine3::mul(_self, rhs) + let output: Val = bevy::math::DAffine3::mul( + _self, + rhs, + ) .into(); output }, @@ -16501,30 +20312,41 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DAffine3::clone(_self) + let output: Val = bevy::math::DAffine3::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = DQuat::eq(_self, rhs).into(); + let output: bool = bevy::math::DQuat::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "div", |_self: Val, rhs: f64| { - let output: Val = DQuat::div(_self, rhs).into(); + let output: Val = bevy::math::DQuat::div( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "from_xyzw", |x: f64, y: f64, z: f64, w: f64| { - let output: Val = DQuat::from_xyzw(x, y, z, w) + let output: Val = bevy::math::DQuat::from_xyzw( + x, + y, + z, + w, + ) .into(); output }, @@ -16532,21 +20354,23 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_array", |a: [f64; 4]| { - let output: Val = DQuat::from_array(a).into(); + let output: Val = bevy::math::DQuat::from_array(a) + .into(); output }, ) .overwrite_script_function( "from_vec4", |v: Val| { - let output: Val = DQuat::from_vec4(v).into(); + let output: Val = bevy::math::DQuat::from_vec4(v) + .into(); output }, ) .overwrite_script_function( "from_axis_angle", |axis: Val, angle: f64| { - let output: Val = DQuat::from_axis_angle( + let output: Val = bevy::math::DQuat::from_axis_angle( axis, angle, ) @@ -16557,7 +20381,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_scaled_axis", |v: Val| { - let output: Val = DQuat::from_scaled_axis(v) + let output: Val = bevy::math::DQuat::from_scaled_axis( + v, + ) .into(); output }, @@ -16565,7 +20391,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_x", |angle: f64| { - let output: Val = DQuat::from_rotation_x(angle) + let output: Val = bevy::math::DQuat::from_rotation_x( + angle, + ) .into(); output }, @@ -16573,7 +20401,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_y", |angle: f64| { - let output: Val = DQuat::from_rotation_y(angle) + let output: Val = bevy::math::DQuat::from_rotation_y( + angle, + ) .into(); output }, @@ -16581,7 +20411,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_z", |angle: f64| { - let output: Val = DQuat::from_rotation_z(angle) + let output: Val = bevy::math::DQuat::from_rotation_z( + angle, + ) .into(); output }, @@ -16589,7 +20421,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_euler", |euler: Val, a: f64, b: f64, c: f64| { - let output: Val = DQuat::from_euler( + let output: Val = bevy::math::DQuat::from_euler( euler, a, b, @@ -16602,21 +20434,27 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_mat3", |mat: Ref| { - let output: Val = DQuat::from_mat3(mat).into(); + let output: Val = bevy::math::DQuat::from_mat3( + mat, + ) + .into(); output }, ) .overwrite_script_function( "from_mat4", |mat: Ref| { - let output: Val = DQuat::from_mat4(mat).into(); + let output: Val = bevy::math::DQuat::from_mat4( + mat, + ) + .into(); output }, ) .overwrite_script_function( "from_rotation_arc", |from: Val, to: Val| { - let output: Val = DQuat::from_rotation_arc( + let output: Val = bevy::math::DQuat::from_rotation_arc( from, to, ) @@ -16627,7 +20465,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_arc_colinear", |from: Val, to: Val| { - let output: Val = DQuat::from_rotation_arc_colinear( + let output: Val = bevy::math::DQuat::from_rotation_arc_colinear( from, to, ) @@ -16638,7 +20476,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_rotation_arc_2d", |from: Val, to: Val| { - let output: Val = DQuat::from_rotation_arc_2d( + let output: Val = bevy::math::DQuat::from_rotation_arc_2d( from, to, ) @@ -16649,7 +20487,9 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_scaled_axis", |_self: Val| { - let output: Val = DQuat::to_scaled_axis(_self) + let output: Val = bevy::math::DQuat::to_scaled_axis( + _self, + ) .into(); output }, @@ -16657,105 +20497,120 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "to_euler", |_self: Val, order: Val| { - let output: (f64, f64, f64) = DQuat::to_euler(_self, order).into(); + let output: (f64, f64, f64) = bevy::math::DQuat::to_euler( + _self, + order, + ) + .into(); output }, ) .overwrite_script_function( "to_array", |_self: Ref| { - let output: [f64; 4] = DQuat::to_array(_self).into(); + let output: [f64; 4] = bevy::math::DQuat::to_array(_self).into(); output }, ) .overwrite_script_function( "xyz", |_self: Val| { - let output: Val = DQuat::xyz(_self).into(); + let output: Val = bevy::math::DQuat::xyz(_self) + .into(); output }, ) .overwrite_script_function( "conjugate", |_self: Val| { - let output: Val = DQuat::conjugate(_self).into(); + let output: Val = bevy::math::DQuat::conjugate( + _self, + ) + .into(); output }, ) .overwrite_script_function( "inverse", |_self: Val| { - let output: Val = DQuat::inverse(_self).into(); + let output: Val = bevy::math::DQuat::inverse( + _self, + ) + .into(); output }, ) .overwrite_script_function( "dot", |_self: Val, rhs: Val| { - let output: f64 = DQuat::dot(_self, rhs).into(); + let output: f64 = bevy::math::DQuat::dot(_self, rhs).into(); output }, ) .overwrite_script_function( "length", |_self: Val| { - let output: f64 = DQuat::length(_self).into(); + let output: f64 = bevy::math::DQuat::length(_self).into(); output }, ) .overwrite_script_function( "length_squared", |_self: Val| { - let output: f64 = DQuat::length_squared(_self).into(); + let output: f64 = bevy::math::DQuat::length_squared(_self).into(); output }, ) .overwrite_script_function( "length_recip", |_self: Val| { - let output: f64 = DQuat::length_recip(_self).into(); + let output: f64 = bevy::math::DQuat::length_recip(_self).into(); output }, ) .overwrite_script_function( "normalize", |_self: Val| { - let output: Val = DQuat::normalize(_self).into(); + let output: Val = bevy::math::DQuat::normalize( + _self, + ) + .into(); output }, ) .overwrite_script_function( "is_finite", |_self: Val| { - let output: bool = DQuat::is_finite(_self).into(); + let output: bool = bevy::math::DQuat::is_finite(_self).into(); output }, ) .overwrite_script_function( "is_nan", |_self: Val| { - let output: bool = DQuat::is_nan(_self).into(); + let output: bool = bevy::math::DQuat::is_nan(_self).into(); output }, ) .overwrite_script_function( "is_normalized", |_self: Val| { - let output: bool = DQuat::is_normalized(_self).into(); + let output: bool = bevy::math::DQuat::is_normalized(_self).into(); output }, ) .overwrite_script_function( "is_near_identity", |_self: Val| { - let output: bool = DQuat::is_near_identity(_self).into(); + let output: bool = bevy::math::DQuat::is_near_identity(_self).into(); output }, ) .overwrite_script_function( "angle_between", |_self: Val, rhs: Val| { - let output: f64 = DQuat::angle_between(_self, rhs).into(); + let output: f64 = bevy::math::DQuat::angle_between(_self, rhs) + .into(); output }, ) @@ -16766,7 +20621,7 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_angle: f64| { - let output: Val = DQuat::rotate_towards( + let output: Val = bevy::math::DQuat::rotate_towards( _self, rhs, max_angle, @@ -16782,7 +20637,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { rhs: Val, max_abs_diff: f64| { - let output: bool = DQuat::abs_diff_eq(_self, rhs, max_abs_diff) + let output: bool = bevy::math::DQuat::abs_diff_eq( + _self, + rhs, + max_abs_diff, + ) .into(); output }, @@ -16790,7 +20649,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "lerp", |_self: Val, end: Val, s: f64| { - let output: Val = DQuat::lerp(_self, end, s) + let output: Val = bevy::math::DQuat::lerp( + _self, + end, + s, + ) .into(); output }, @@ -16798,7 +20661,11 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "slerp", |_self: Val, end: Val, s: f64| { - let output: Val = DQuat::slerp(_self, end, s) + let output: Val = bevy::math::DQuat::slerp( + _self, + end, + s, + ) .into(); output }, @@ -16806,7 +20673,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_vec3", |_self: Val, rhs: Val| { - let output: Val = DQuat::mul_vec3(_self, rhs) + let output: Val = bevy::math::DQuat::mul_vec3( + _self, + rhs, + ) .into(); output }, @@ -16814,7 +20684,10 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "mul_quat", |_self: Val, rhs: Val| { - let output: Val = DQuat::mul_quat(_self, rhs) + let output: Val = bevy::math::DQuat::mul_quat( + _self, + rhs, + ) .into(); output }, @@ -16822,71 +20695,99 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_affine3", |a: Ref| { - let output: Val = DQuat::from_affine3(a).into(); + let output: Val = bevy::math::DQuat::from_affine3( + a, + ) + .into(); output }, ) .overwrite_script_function( "as_quat", |_self: Val| { - let output: Val = DQuat::as_quat(_self).into(); + let output: Val = bevy::math::DQuat::as_quat(_self) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DQuat::mul(_self, rhs).into(); + let output: Val = bevy::math::DQuat::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: Val| { - let output: Val = DQuat::mul(_self, rhs).into(); + let output: Val = bevy::math::DQuat::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = DQuat::clone(_self).into(); + let output: Val = bevy::math::DQuat::clone(_self) + .into(); output }, ) .overwrite_script_function( "sub", |_self: Val, rhs: Val| { - let output: Val = DQuat::sub(_self, rhs).into(); + let output: Val = bevy::math::DQuat::sub( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "mul", |_self: Val, rhs: f64| { - let output: Val = DQuat::mul(_self, rhs).into(); + let output: Val = bevy::math::DQuat::mul( + _self, + rhs, + ) + .into(); output }, ) .overwrite_script_function( "neg", |_self: Val| { - let output: Val = DQuat::neg(_self).into(); + let output: Val = bevy::math::DQuat::neg(_self) + .into(); output }, ) .overwrite_script_function( "add", |_self: Val, rhs: Val| { - let output: Val = DQuat::add(_self, rhs).into(); + let output: Val = bevy::math::DQuat::add( + _self, + rhs, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = EulerRot::clone(_self) + let output: Val = bevy::math::EulerRot::clone( + _self, + ) .into(); output }, @@ -16894,263 +20795,294 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = EulerRot::eq(_self, other).into(); + let output: bool = bevy::math::EulerRot::eq(_self, other).into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = EulerRot::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::math::EulerRot::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |x: bool, y: bool, z: bool| { - let output: Val = BVec3A::new(x, y, z).into(); + let output: Val = bevy::math::BVec3A::new( + x, + y, + z, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: bool| { - let output: Val = BVec3A::splat(v).into(); + let output: Val = bevy::math::BVec3A::splat(v) + .into(); output }, ) .overwrite_script_function( "from_array", |a: [bool; 3]| { - let output: Val = BVec3A::from_array(a).into(); + let output: Val = bevy::math::BVec3A::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "bitmask", |_self: Val| { - let output: u32 = BVec3A::bitmask(_self).into(); + let output: u32 = bevy::math::BVec3A::bitmask(_self).into(); output }, ) .overwrite_script_function( "any", |_self: Val| { - let output: bool = BVec3A::any(_self).into(); + let output: bool = bevy::math::BVec3A::any(_self).into(); output }, ) .overwrite_script_function( "all", |_self: Val| { - let output: bool = BVec3A::all(_self).into(); + let output: bool = bevy::math::BVec3A::all(_self).into(); output }, ) .overwrite_script_function( "test", |_self: Ref, index: usize| { - let output: bool = BVec3A::test(_self, index).into(); + let output: bool = bevy::math::BVec3A::test(_self, index).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, index: usize, value: bool| { - let output: () = BVec3A::set(_self, index, value).into(); + let output: () = bevy::math::BVec3A::set(_self, index, value).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BVec3A::clone(_self).into(); + let output: Val = bevy::math::BVec3A::clone( + _self, + ) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = BVec3A::eq(_self, rhs).into(); + let output: bool = bevy::math::BVec3A::eq(_self, rhs).into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", |x: bool, y: bool, z: bool, w: bool| { - let output: Val = BVec4A::new(x, y, z, w).into(); + let output: Val = bevy::math::BVec4A::new( + x, + y, + z, + w, + ) + .into(); output }, ) .overwrite_script_function( "splat", |v: bool| { - let output: Val = BVec4A::splat(v).into(); + let output: Val = bevy::math::BVec4A::splat(v) + .into(); output }, ) .overwrite_script_function( "from_array", |a: [bool; 4]| { - let output: Val = BVec4A::from_array(a).into(); + let output: Val = bevy::math::BVec4A::from_array( + a, + ) + .into(); output }, ) .overwrite_script_function( "bitmask", |_self: Val| { - let output: u32 = BVec4A::bitmask(_self).into(); + let output: u32 = bevy::math::BVec4A::bitmask(_self).into(); output }, ) .overwrite_script_function( "any", |_self: Val| { - let output: bool = BVec4A::any(_self).into(); + let output: bool = bevy::math::BVec4A::any(_self).into(); output }, ) .overwrite_script_function( "all", |_self: Val| { - let output: bool = BVec4A::all(_self).into(); + let output: bool = bevy::math::BVec4A::all(_self).into(); output }, ) .overwrite_script_function( "test", |_self: Ref, index: usize| { - let output: bool = BVec4A::test(_self, index).into(); + let output: bool = bevy::math::BVec4A::test(_self, index).into(); output }, ) .overwrite_script_function( "set", |_self: Mut, index: usize, value: bool| { - let output: () = BVec4A::set(_self, index, value).into(); + let output: () = bevy::math::BVec4A::set(_self, index, value).into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, rhs: Ref| { - let output: bool = BVec4A::eq(_self, rhs).into(); + let output: bool = bevy::math::BVec4A::eq(_self, rhs).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = BVec4A::clone(_self).into(); + let output: Val = bevy::math::BVec4A::clone( + _self, + ) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = SmolStr::clone(_self).into(); + let output: Val = smol_str::SmolStr::clone(_self) + .into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = SmolStr::eq(_self, other).into(); + let output: bool = smol_str::SmolStr::eq(_self, other).into(); output }, ) .overwrite_script_function( "to_string", |_self: Ref| { - let output: std::string::String = SmolStr::to_string(_self).into(); + let output: std::string::String = smol_str::SmolStr::to_string(_self) + .into(); output }, ) .overwrite_script_function( "len", |_self: Ref| { - let output: usize = SmolStr::len(_self).into(); + let output: usize = smol_str::SmolStr::len(_self).into(); output }, ) .overwrite_script_function( "is_empty", |_self: Ref| { - let output: bool = SmolStr::is_empty(_self).into(); + let output: bool = smol_str::SmolStr::is_empty(_self).into(); output }, ) .overwrite_script_function( "is_heap_allocated", |_self: Ref| { - let output: bool = SmolStr::is_heap_allocated(_self).into(); + let output: bool = smol_str::SmolStr::is_heap_allocated(_self) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "get_version_num", |_self: Ref| { - let output: usize = Uuid::get_version_num(_self).into(); + let output: usize = uuid::Uuid::get_version_num(_self).into(); output }, ) .overwrite_script_function( "as_u128", |_self: Ref| { - let output: u128 = Uuid::as_u128(_self).into(); + let output: u128 = uuid::Uuid::as_u128(_self).into(); output }, ) .overwrite_script_function( "to_u128_le", |_self: Ref| { - let output: u128 = Uuid::to_u128_le(_self).into(); + let output: u128 = uuid::Uuid::to_u128_le(_self).into(); output }, ) .overwrite_script_function( "as_u64_pair", |_self: Ref| { - let output: (u64, u64) = Uuid::as_u64_pair(_self).into(); + let output: (u64, u64) = uuid::Uuid::as_u64_pair(_self).into(); output }, ) .overwrite_script_function( "into_bytes", |_self: Val| { - let output: [u8; 16] = Uuid::into_bytes(_self).into(); + let output: [u8; 16] = uuid::Uuid::into_bytes(_self).into(); output }, ) .overwrite_script_function( "to_bytes_le", |_self: Ref| { - let output: [u8; 16] = Uuid::to_bytes_le(_self).into(); + let output: [u8; 16] = uuid::Uuid::to_bytes_le(_self).into(); output }, ) .overwrite_script_function( "is_nil", |_self: Ref| { - let output: bool = Uuid::is_nil(_self).into(); + let output: bool = uuid::Uuid::is_nil(_self).into(); output }, ) .overwrite_script_function( "is_max", |_self: Ref| { - let output: bool = Uuid::is_max(_self).into(); + let output: bool = uuid::Uuid::is_max(_self).into(); output }, ) .overwrite_script_function( "encode_buffer", || { - let output: [u8; 45] = Uuid::encode_buffer().into(); + let output: [u8; 45] = uuid::Uuid::encode_buffer().into(); output }, ) @@ -17159,49 +21091,50 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { |_self: Ref| { let output: bevy::reflect::erased_serde::__private::serde::__private::Option< [u8; 6], - > = Uuid::get_node_id(_self).into(); + > = uuid::Uuid::get_node_id(_self).into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Uuid::assert_receiver_is_total_eq(_self).into(); + let output: () = uuid::Uuid::assert_receiver_is_total_eq(_self) + .into(); output }, ) .overwrite_script_function( "nil", || { - let output: Val = Uuid::nil().into(); + let output: Val = uuid::Uuid::nil().into(); output }, ) .overwrite_script_function( "max", || { - let output: Val = Uuid::max().into(); + let output: Val = uuid::Uuid::max().into(); output }, ) .overwrite_script_function( "from_u128", |v: u128| { - let output: Val = Uuid::from_u128(v).into(); + let output: Val = uuid::Uuid::from_u128(v).into(); output }, ) .overwrite_script_function( "from_u128_le", |v: u128| { - let output: Val = Uuid::from_u128_le(v).into(); + let output: Val = uuid::Uuid::from_u128_le(v).into(); output }, ) .overwrite_script_function( "from_u64_pair", |high_bits: u64, low_bits: u64| { - let output: Val = Uuid::from_u64_pair( + let output: Val = uuid::Uuid::from_u64_pair( high_bits, low_bits, ) @@ -17212,35 +21145,35 @@ impl bevy::app::Plugin for BevyReflectScriptingPlugin { .overwrite_script_function( "from_bytes", |bytes: [u8; 16]| { - let output: Val = Uuid::from_bytes(bytes).into(); + let output: Val = uuid::Uuid::from_bytes(bytes).into(); output }, ) .overwrite_script_function( "from_bytes_le", |b: [u8; 16]| { - let output: Val = Uuid::from_bytes_le(b).into(); + let output: Val = uuid::Uuid::from_bytes_le(b).into(); output }, ) .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Uuid::eq(_self, other).into(); + let output: bool = uuid::Uuid::eq(_self, other).into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Uuid::clone(_self).into(); + let output: Val = uuid::Uuid::clone(_self).into(); output }, ) .overwrite_script_function( "new_v4", || { - let output: Val = Uuid::new_v4().into(); + let output: Val = uuid::Uuid::new_v4().into(); output }, ); diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_time.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_time.rs index b310c16014..40c2846dfe 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_time.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_time.rs @@ -5,7 +5,8 @@ use super::bevy_ecs::*; use super::bevy_reflect::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -13,29 +14,35 @@ pub struct BevyTimeScriptingPlugin; impl bevy::app::Plugin for BevyTimeScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Fixed::clone(_self) + let output: Val = bevy::time::prelude::Fixed::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Real::clone(_self) + let output: Val = bevy::time::prelude::Real::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Timer::clone(_self) + let output: Val = bevy::time::prelude::Timer::clone( + _self, + ) .into(); output }, @@ -43,14 +50,17 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Timer::assert_receiver_is_total_eq(_self).into(); + let output: () = bevy::time::prelude::Timer::assert_receiver_is_total_eq( + _self, + ) + .into(); output }, ) .overwrite_script_function( "from_seconds", |duration: f32, mode: Val| { - let output: Val = Timer::from_seconds( + let output: Val = bevy::time::prelude::Timer::from_seconds( duration, mode, ) @@ -61,35 +71,41 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { .overwrite_script_function( "finished", |_self: Ref| { - let output: bool = Timer::finished(_self).into(); + let output: bool = bevy::time::prelude::Timer::finished(_self) + .into(); output }, ) .overwrite_script_function( "just_finished", |_self: Ref| { - let output: bool = Timer::just_finished(_self).into(); + let output: bool = bevy::time::prelude::Timer::just_finished(_self) + .into(); output }, ) .overwrite_script_function( "elapsed_secs", |_self: Ref| { - let output: f32 = Timer::elapsed_secs(_self).into(); + let output: f32 = bevy::time::prelude::Timer::elapsed_secs(_self) + .into(); output }, ) .overwrite_script_function( "elapsed_secs_f64", |_self: Ref| { - let output: f64 = Timer::elapsed_secs_f64(_self).into(); + let output: f64 = bevy::time::prelude::Timer::elapsed_secs_f64(_self) + .into(); output }, ) .overwrite_script_function( "mode", |_self: Ref| { - let output: Val = Timer::mode(_self) + let output: Val = bevy::time::prelude::Timer::mode( + _self, + ) .into(); output }, @@ -100,63 +116,71 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { _self: Mut, mode: Val| { - let output: () = Timer::set_mode(_self, mode).into(); + let output: () = bevy::time::prelude::Timer::set_mode(_self, mode) + .into(); output }, ) .overwrite_script_function( "pause", |_self: Mut| { - let output: () = Timer::pause(_self).into(); + let output: () = bevy::time::prelude::Timer::pause(_self).into(); output }, ) .overwrite_script_function( "unpause", |_self: Mut| { - let output: () = Timer::unpause(_self).into(); + let output: () = bevy::time::prelude::Timer::unpause(_self).into(); output }, ) .overwrite_script_function( "paused", |_self: Ref| { - let output: bool = Timer::paused(_self).into(); + let output: bool = bevy::time::prelude::Timer::paused(_self).into(); output }, ) .overwrite_script_function( "reset", |_self: Mut| { - let output: () = Timer::reset(_self).into(); + let output: () = bevy::time::prelude::Timer::reset(_self).into(); output }, ) .overwrite_script_function( "fraction", |_self: Ref| { - let output: f32 = Timer::fraction(_self).into(); + let output: f32 = bevy::time::prelude::Timer::fraction(_self).into(); output }, ) .overwrite_script_function( "fraction_remaining", |_self: Ref| { - let output: f32 = Timer::fraction_remaining(_self).into(); + let output: f32 = bevy::time::prelude::Timer::fraction_remaining( + _self, + ) + .into(); output }, ) .overwrite_script_function( "remaining_secs", |_self: Ref| { - let output: f32 = Timer::remaining_secs(_self).into(); + let output: f32 = bevy::time::prelude::Timer::remaining_secs(_self) + .into(); output }, ) .overwrite_script_function( "times_finished_this_tick", |_self: Ref| { - let output: u32 = Timer::times_finished_this_tick(_self).into(); + let output: u32 = bevy::time::prelude::Timer::times_finished_this_tick( + _self, + ) + .into(); output }, ) @@ -166,25 +190,27 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Timer::eq(_self, other).into(); + let output: bool = bevy::time::prelude::Timer::eq(_self, other) + .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "eq", | _self: Ref, other: Ref| { - let output: bool = TimerMode::eq(_self, other).into(); + let output: bool = bevy::time::prelude::TimerMode::eq(_self, other) + .into(); output }, ) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = TimerMode::clone( + let output: Val = bevy::time::prelude::TimerMode::clone( _self, ) .into(); @@ -194,74 +220,82 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = TimerMode::assert_receiver_is_total_eq(_self) + let output: () = bevy::time::prelude::TimerMode::assert_receiver_is_total_eq( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Virtual::clone(_self) + let output: Val = bevy::time::prelude::Virtual::clone( + _self, + ) .into(); output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "new", || { - let output: Val = Stopwatch::new().into(); + let output: Val = bevy::time::Stopwatch::new() + .into(); output }, ) .overwrite_script_function( "elapsed_secs", |_self: Ref| { - let output: f32 = Stopwatch::elapsed_secs(_self).into(); + let output: f32 = bevy::time::Stopwatch::elapsed_secs(_self).into(); output }, ) .overwrite_script_function( "elapsed_secs_f64", |_self: Ref| { - let output: f64 = Stopwatch::elapsed_secs_f64(_self).into(); + let output: f64 = bevy::time::Stopwatch::elapsed_secs_f64(_self) + .into(); output }, ) .overwrite_script_function( "pause", |_self: Mut| { - let output: () = Stopwatch::pause(_self).into(); + let output: () = bevy::time::Stopwatch::pause(_self).into(); output }, ) .overwrite_script_function( "unpause", |_self: Mut| { - let output: () = Stopwatch::unpause(_self).into(); + let output: () = bevy::time::Stopwatch::unpause(_self).into(); output }, ) .overwrite_script_function( "is_paused", |_self: Ref| { - let output: bool = Stopwatch::is_paused(_self).into(); + let output: bool = bevy::time::Stopwatch::is_paused(_self).into(); output }, ) .overwrite_script_function( "reset", |_self: Mut| { - let output: () = Stopwatch::reset(_self).into(); + let output: () = bevy::time::Stopwatch::reset(_self).into(); output }, ) .overwrite_script_function( "assert_receiver_is_total_eq", |_self: Ref| { - let output: () = Stopwatch::assert_receiver_is_total_eq(_self) + let output: () = bevy::time::Stopwatch::assert_receiver_is_total_eq( + _self, + ) .into(); output }, @@ -269,7 +303,9 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Stopwatch::clone(_self) + let output: Val = bevy::time::Stopwatch::clone( + _self, + ) .into(); output }, @@ -277,7 +313,7 @@ impl bevy::app::Plugin for BevyTimeScriptingPlugin { .overwrite_script_function( "eq", |_self: Ref, other: Ref| { - let output: bool = Stopwatch::eq(_self, other).into(); + let output: bool = bevy::time::Stopwatch::eq(_self, other).into(); output }, ); diff --git a/crates/bevy_mod_scripting_functions/src/bevy/bevy_transform.rs b/crates/bevy_mod_scripting_functions/src/bevy/bevy_transform.rs index 32fa0c402c..9a9e2a72cf 100644 --- a/crates/bevy_mod_scripting_functions/src/bevy/bevy_transform.rs +++ b/crates/bevy_mod_scripting_functions/src/bevy/bevy_transform.rs @@ -8,7 +8,8 @@ use super::bevy_core::*; use super::bevy_math::*; use super::bevy_hierarchy::*; use bevy_mod_scripting_core::{ - AddContextInitializer, StoreDocumentation, bindings::ReflectReference, + AddContextInitializer, StoreDocumentation, + bindings::{ReflectReference, function::from::{Ref, Mut, Val}}, }; use bevy_mod_scripting_functions::RegisterScriptFunction; use crate::*; @@ -16,11 +17,11 @@ pub struct BevyTransformScriptingPlugin; impl bevy::app::Plugin for BevyTransformScriptingPlugin { fn build(&self, app: &mut bevy::prelude::App) { let mut world = app.world_mut(); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = GlobalTransform::clone( + let output: Val = bevy::transform::components::GlobalTransform::clone( _self, ) .into(); @@ -33,7 +34,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Val, global_transform: Val| { - let output: Val = GlobalTransform::mul( + let output: Val = bevy::transform::components::GlobalTransform::mul( _self, global_transform, ) @@ -47,7 +48,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Val, transform: Val| { - let output: Val = GlobalTransform::mul( + let output: Val = bevy::transform::components::GlobalTransform::mul( _self, transform, ) @@ -61,14 +62,18 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = GlobalTransform::eq(_self, other).into(); + let output: bool = bevy::transform::components::GlobalTransform::eq( + _self, + other, + ) + .into(); output }, ) .overwrite_script_function( "from_xyz", |x: f32, y: f32, z: f32| { - let output: Val = GlobalTransform::from_xyz( + let output: Val = bevy::transform::components::GlobalTransform::from_xyz( x, y, z, @@ -80,7 +85,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { .overwrite_script_function( "compute_transform", |_self: Ref| { - let output: Val = GlobalTransform::compute_transform( + let output: Val = bevy::transform::components::GlobalTransform::compute_transform( _self, ) .into(); @@ -93,7 +98,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Ref, parent: Ref| { - let output: Val = GlobalTransform::reparented_to( + let output: Val = bevy::transform::components::GlobalTransform::reparented_to( _self, parent, ) @@ -107,7 +112,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Ref, transform: Val| { - let output: Val = GlobalTransform::mul_transform( + let output: Val = bevy::transform::components::GlobalTransform::mul_transform( _self, transform, ) @@ -115,11 +120,11 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { output }, ); - NamespaceBuilder::::new(world) + NamespaceBuilder::::new(world) .overwrite_script_function( "from_xyz", |x: f32, y: f32, z: f32| { - let output: Val = Transform::from_xyz( + let output: Val = bevy::transform::components::Transform::from_xyz( x, y, z, @@ -131,42 +136,66 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { .overwrite_script_function( "rotate_x", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_x(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_x( + _self, + angle, + ) + .into(); output }, ) .overwrite_script_function( "rotate_y", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_y(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_y( + _self, + angle, + ) + .into(); output }, ) .overwrite_script_function( "rotate_z", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_z(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_z( + _self, + angle, + ) + .into(); output }, ) .overwrite_script_function( "rotate_local_x", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_local_x(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_local_x( + _self, + angle, + ) + .into(); output }, ) .overwrite_script_function( "rotate_local_y", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_local_y(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_local_y( + _self, + angle, + ) + .into(); output }, ) .overwrite_script_function( "rotate_local_z", |_self: Mut, angle: f32| { - let output: () = Transform::rotate_local_z(_self, angle).into(); + let output: () = bevy::transform::components::Transform::rotate_local_z( + _self, + angle, + ) + .into(); output }, ) @@ -176,7 +205,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Ref, transform: Val| { - let output: Val = Transform::mul_transform( + let output: Val = bevy::transform::components::Transform::mul_transform( _self, transform, ) @@ -187,7 +216,10 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { .overwrite_script_function( "is_finite", |_self: Ref| { - let output: bool = Transform::is_finite(_self).into(); + let output: bool = bevy::transform::components::Transform::is_finite( + _self, + ) + .into(); output }, ) @@ -197,7 +229,11 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Ref, other: Ref| { - let output: bool = Transform::eq(_self, other).into(); + let output: bool = bevy::transform::components::Transform::eq( + _self, + other, + ) + .into(); output }, ) @@ -207,7 +243,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Val, transform: Val| { - let output: Val = Transform::mul( + let output: Val = bevy::transform::components::Transform::mul( _self, transform, ) @@ -221,7 +257,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { _self: Val, global_transform: Val| { - let output: Val = Transform::mul( + let output: Val = bevy::transform::components::Transform::mul( _self, global_transform, ) @@ -232,7 +268,7 @@ impl bevy::app::Plugin for BevyTransformScriptingPlugin { .overwrite_script_function( "clone", |_self: Ref| { - let output: Val = Transform::clone( + let output: Val = bevy::transform::components::Transform::clone( _self, ) .into();