Function de_test_utils::load_points

source ·
pub fn load_points(number: &NumPoints, max_value: f32) -> Vec<Vec2>
Expand description

Load deterministic points for testing.

§Arguments

  • number - the selected number of points from the NumPoints enum.
  • max_value - the max and min value for the returned point, the numbers returned will be between -max_value and +max_value.

§Returns

A list of Vec2 points with x and y between -max_value and +max_value. This is guaranteed to be deterministic across calls with the same input.