Maths is a subject that can be difficult to teach, but with the right tools, it can be made easier. This article will discuss some of the best tools for tutoring math online, and how they can help teachers to improve their student’s skills.

Continue readingPosts categorised under:

# Math

## Calculating the shorter angle of rotation in 2D

Here’s a really simple math problem in 2D games development that has a surprisingly complex solution. If I were to give you angles *a* and *b*, how would you calculate 1) **the direction** — that is, clockwise being positive; and anti-clockwise being negative — and 2) **magnitude** of the shorter angle of rotation from *a* to *b*?

When you visualise it, both values seem so obvious; which was why I was so surprised I couldn’t figure it out. On the surface, it seems really simple — if you just take *b – a*, doesn’t it give you the solution?

## Creating a histogram with a frequency polygon in Microsoft Word

Microsoft Word has a bevy of powerful chart-making tools, capable of creating almost any kind of graph or chart that one can imagine. The way to create some of these charts are not immediately obvious, however, and one of these kinds of charts is the histogram (with an accompanying frequency polygon).

Continue reading## Creating a bar-line chart in Microsoft Word

Are you tearing your hair out trying to figure out how to create a bar-line chart (i.e. a combination of a bar chart and a line chart) in Microsoft Word? Look no further, we’ve got step-by-step instructions for you in this post, as well as an accompanying video guide.

Continue reading## A formula for rounding numbers

Most programming languages come with native functions that help us round our numbers, either upwards (i.e. **ceiling** operation), downwards (i.e. **floor** operation), or to the nearest whole (i.e. **round** operation). While this is convenient, we sometimes need a bit more than that — what if — for example — we want to round our numbers to the nearest 0.5, or the nearest 3^{rd}?

## Unity Rigidbody’s Interpolate property

If you looked at the properties available for configuration on a Unity **Rigidbody** and poured through the documentation for it, you’ll likely find that most of its properties are pretty easily to understand, with the exception of **Interpolate** and **Collision Detection**. We’ve explored what the Collision Detection properties do in another article on this blog, and we’re going to explore the **Interpolate** property in this article.

## Calculating EVs needed to raise a stat in Pokémon

As a result of working on upgrades for this Pokémon Effort Value Calculator, math has been a pretty big part of my life for the past few months, as I’ve been rearranging the games’ formulas for stat and damage calculation to make my own that fit my needs.

One such formula was the ** EVs needed** one, which gives you

**the amount of EVs you need to invest to raise a stat by**. Everyone knows that at Level 100, you get 1 stat point for every 4 EV points you invest; but what happens when you’re

*n*points*not*at Level 100, or when you factor in stat modifiers like Nature, or item and ability boosts?

Don’t know what effort values are? Start with this article from Bulbapedia. Don’t play the mainline Pokémon games? Then you should start with these.

Continue reading## Vector math for polar movement in 2D games (Unity)

Polar movement, i.e. moving objects at an angle, is something that people starting out in games programming often have trouble with. Coordinate systems are easy to understand, and so is moving things left and right or up and down; but what if you want to move at angles that are not parallel to an axis, like 30° upwards, or towards a target? How do you get a vector that represents that direction of movement?

Continue reading## Vector math basics for games programming

If you’re making your foray into games programming, vectors are an important concept that you’ll have to understand and work with. If you’ve been reading build-your-own-game tutorials and getting confused by all the vector math that’s been going on, this article is probably a good one to read.

Continue reading