wgpu_examples::water

Module point_gen

Source
Expand description

This module covers generating points in a hexagonal fashion.

Structs§

Constants§

  • A 🔒
    X multiplication factor. 1.0 / sqrt(2)
  • B 🔒
    Y multiplication factor. sqrt(3) / sqrt(2) == sqrt(1.5)
  • C45 🔒
    cos(45deg) is used to rotate the points.
  • S45 🔒
    sin(45deg) is used to rotate the points.
  • SQRT_3 🔒

Functions§