godot::prelude

Macro reals

macro_rules! reals {
    ($($f:literal),* $(,)?) => { ... };
}
Expand description

Array of reals.

The expression has type [real; N] where N is the number of elements in the array.

ยงExample

use godot_core::builtin::{real, reals};

let arr = reals![1.0, 2.0, 3.0];
assert_eq!(arr[1], real!(2.0));