# Shapes

There are lots of names for shapes which you are supposed to know, such as "circle", "triangle" and "square". I don't need to tell you what those three shapes look like, but there are different kinds of triangle, and different kinds of quadrilateral (four-sided shapes) whose names you ought to learn to recognise. I'm going to start by showing you a square, but I'm not going to bother with fancy graphics for the first ones because they cost more money (I actually have to pay money to get this stuff to you over the Internet).
```####################################
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
####################################
```
The angles between the sides of a square are called "right angles" or "90 degree angles" (90° angles), though they can sometimes be described just by using the word "square" (as in "this line is square to that line"). If the angles of a quadrilateral are not right angles but the sides are all the same length, then you have a diamond, although the correct name for it is "rhombus":-
```####################################
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
#                                  #
####################################
```
The next shape is a rectangle, but it can also be called an "oblong".
```################################################
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
################################################
```
If the angles aren't square, it becomes a parallelogram:-
```################################################
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
#                                              #
################################################
```
There first triangle we need to look at is the equilateral triangle: "equi" means "equal" and "lateral" means "sided", so all the lengths are the same, and each of the angles is 60°:-
```#
# #
#    #
#      #
#         #
#           #
#              #
#                #
#                   #
#                     #
#                        #
#                          #
#                             #
#                               #
#                                  #
#                                    #
#########################################
```
If only two of the sides are the same length, then you have an isosoles triangle (meaning "equal legs"!) which may look like this:-
```#
##
# #
#  #
#   #
#    #
#     #
#      #
#       #
#        #
#         #
#          #
#           #
#            #
#             #
#              #
#################
```
...or this:-
```#
#     #
#           #
#                 #
#                       #
#                             #
#                                   #
#                                         #
#                                               #
#                                                     #
#                                                           #
#                                                                 #
#                                                                       #
###############################################################################
```
There are also "right-angled triangles" which have a 90° angle at one of the corners, as seen below:-
```                                                    #
# #
#   #
#     #
#        #
#          #
#            #
#              #
#                 #
#                   #
#                     #
#                       #
#                          #
#                            #
#                              #
#                                #
####################################
```
There are popular drawing tools used in design called "set squares" which are triangular in shape, and their name comes from the fact that one of their angles is "square". The other two angles may both be 45° (as in the diagram above), or else one will be 30° and the other 60° (as shown below):-
```                                            ,
##.
# '##.
#    '##.
#       '##.
#          '##;.
#             ':##.
#                 '##.
#                    '##.
#                       '##;.
#                          ':##.
#                              '##.
#                                 '##.
#                                    '##;.
#                                       ':##.
#                                           '##.
#                                              '##..
#####################################################.
```
A "polygon" can be any shape with three or more straight sides, but we normally only use the word when we're talking about shapes with five or more sides. The shape below is a pentagon:-
```#
##   ##
##         ##
##               ##
##                     ##
##                           ##
#                                 #
#                                #
#                               #
#                              #
#                            #
#                           #
#                          #
#                        #
#                       #
#                      #
#######################
```
...and the next is a hexagon:-
```#######################
#                       #
#                          #
#                            #
#                               #
#                                 #
#                                    #
#                                      #
#                                         #
#                                           #
#                                         #
#                                      #
#                                    #
#                                 #
#                               #
#                            #
#                          #
#                       #
#######################
```
Before we look at three-dimensional shapes, we have a couple of flat ones left to do. I'm sure you know what a circle looks like, but here's one anyway:-
```_. = #'^'# + ._
.#^               ^#.
.#                      #.
.#                          #.
#                              #
#                                #
d                                  b
#                                  #
d                                   b
#                                   #
q                                   p
#                                  #
q                                  p
#                                #
#                              #
'#.                        .#'
'#,                    ,#'
'#._            _.#'
^'=#,;,#='^
```
When a circle is stretched, it turns into an elipse, as you can see below. If you close one eye and look at the screen from the side, it will turn back into a circle:-
```_  #  #  #  _
#  ^                   ^  #
#                                #
#                                      #
#                                          #
#                                              #
#                                                 #
#                                                   #
#                                                    #
#                                                    #
#                                                    #
#                                                   #
#                                                 #
#                                              #
#                                          #
#                                      #
#                                #
#  _                  _  #
^  #  #  #  ^
```
Running tracks are oval rather than eliptical. The name "oval" means "egg-like", and it covers a variety of shapes including elipses, so it's not such a precise term. Running tracks are actually made up of two straight lines and two semi-circles, as shown below. If you close one eye and look in from the side, it doesn't turn into a neat circle in the way that a true elipse does:-
```_ # # # # # # # # # # # # # # # # # # # _
# ^                                             ^ #
#                                                      #
#                                                          #
#                                                              #
#                                                                #
#                                                                  #
#                                                                  #
#                                                                   #
#                                                                   #
#                                                                   #
#                                                                  #
#                                                                  #
#                                                                #
#                                                              #
#                                                          #
#                                                      #
# _                                            _ #
^ # # # # # # # # # # # # # # # # # # # ^
```
We'll now move on to some three-dimensional shapes. I can't show you a sphere (or a ball) very well because it looks just like a circle regardles of which direction you look at it from, but here it is anyway:-
```_. = #'^'# + ._
.#^               ^#.
.#                      #.
.#                          #.
#                              #
#                                #
d                                  b
#             #                    #
d                                   b
#                                   #
q                                   p
#                                  #
q                                  p
#                                #
#                              #
'#.                        .#'
'#,                    ,#'
'#._            _.#'
^'=#,;,#='^
```
A cube is much easier to show. All the sides are supposed to be the same length, though you can't tell that from the diagram (if you measure them on the screen they will not seem the same at all):-
```          # # # # # # # # # # # # # # # # # #
#                                 # #
#                                 #   #
#                                 #     #
#                                 #       #
# # # # # # # # # # # # # # # # # #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #         #
#                                 #       #
#                                 #     #
#                                 #   #
#                                 # #
# # # # # # # # # # # # # # # # # #
```
The rectangular equivalent of a cube is called a "cuboid":-
```          # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#                                                         # #
#                                                         #   #
#                                                         #     #
#                                                         #       #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #         #
#                                                         #       #
#                                                         #     #
#                                                         #   #
#                                                         # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
```
Three kinds of regular three-dimensional shapes can be made out of equilateral triangles. The simplest is the "tetrahedron" and it is made from four triangles:-
```                     #
.###.
,P # V,
#   #   #
#    #    #
.#     #     #.
,P      #      V,
#        #        #
.#         #         #.
,P          #          V,
#            #            #
.#           _-#-_           #.
,P        _-#^     ^#-_        V,
#      _-#^             ^#-_      #
#   _-#^                     ^#-_   #
.#_-#^                             ^#-_#.
.#########################################.
```
This should not be confused with the square-based pyramid which is made using four triangles round a square base. When two square-based pyramids are joined together by their square sides they turn into an octahedron: the two squares then become part of the inside and you can build the whole structure out of eight equilateral triangles:-

Diagram needed