Trigonometry and Class Diagrams.

Trigonometry is using maths to calculate the sides and angles of a triangle. The three different sides of a triangle all have their own name, the hypotenuse, the opposite and the adjacent. The hypotenuse always sits across from the corner with the 90 degree angle and is always the longest of the three sides of the triangle. A triangle also has three different names for each of its angles. The names are Sine, Cosine and tangent. The Sine (angle) = opposite/hypotenuse, the Cosine (angle) = adjacent/hypotenuse and the tangent (angle) = opposite/adjacent. The Sine, Cosine and tangent are all pre -written functions that you can use in most programs when coding.

An easy way of remembering the formulas to work out the angles and sides is : SOHCAHTOA.

SOH = Sine(angle) = opposite/hypotenuse

CAH = Cosine(angle) = adjacent/hypotenuse

TOA = Tangent(angle) = opposite/adjacent.

Radians are an alternative to degrees and are more commonly used in code. One radian is the angle covered by wrapping a circle’s radius around its own circumference.

Class Diagrams. A class is like a recipe or a blueprint. Class files map out all of the stats (properties) an object will need. They also explain the actions (functions) an object of that type of platform.

class-diagrams

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: