Skip to content

Instantly share code, notes, and snippets.

View rnistuk's full-sized avatar
🏠
Working from home

Rich Nistuk rnistuk

🏠
Working from home
View GitHub Profile
# get_cmake_property(_variableNames VARIABLES)
# list (SORT _variableNames)
# foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
# endforeach()
point pointy_hex_corner(point center, float size, int i) {
float angle_deg = 60 * i - 30;
float angle_rad = (M_PI / 180.0) * angle_deg;
return point{center.x + size * cos(angle_rad),
center.y + size * sin(angle_rad)};
}
void drawPointyHex(point center, float hex_size) {
point p0 = pointy_hex_corner(center, hex_size, 0);

Keybase proof

I hereby claim:

  • I am rnistuk on github.
  • I am rnistuk (https://keybase.io/rnistuk) on keybase.
  • I have a public key ASA33UMYCC7cJ-GQwwiqifNxC8ehB2sUISyqkjt7je3cywo

To claim this, I am signing this object: