Tag: maths


  1. Supershapes

    While doing some research on procedural content generation, specifically on ways to generate shapes I stumbled upon the so called Superformula. Introduction The Superformula is based on the the concept of superellipses. The original form is in polar coordinate. The snippet below shows how you convert those into points to…

    procedural content, maths

  2. Recreational Maths Vol. 1

    The Golden Ratio Disclaimer Defintion The relation of two things is, such that the ratio of A plus B to A is the same as A to B. function isGoldenRatio (a, b) { var x = (a + b) / a; var y = a / b; // check if 'almost' equal, avoids floating point errors return…

    maths