Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

From the above figure, the vertex locations (in MATLAB syntax) are as follows:

Vertex

x

y

v1

0

0

v2

0.5*coscosd(pi/630)

0.5*sinsind(pi/630)

v3

cos cosd(pi/630) sin

sind(pi/630)

v4

cos cosd(pi/630) - 0.25*sinsind(pi/630) sin

sind(pi/630) + 0.25*coscosd(pi/630)

v5

cos cosd(pi/630) - 0.5*sinsind(pi/630) sin

sind(pi/630) + 0.5*coscosd(pi/630)

v6

0.5*(coscosd(pi/630) - sinsind(pi/630))

0.5* (sinsind(pi/630) + coscosd(pi/630))

v7

-0.5*sinsind(pi/630)

0.5*coscosd(pi/630)

v8

-0.25*sinsind(pi/630)

0.25*coscosd(pi/630)

There are two options for creating the eight vertices: we can use the mouse after pressing the Click SD Points button, or we can enter the coordinates directly into the edit boxes under Vertex positions. We'll use the latter option. Enter the above coordinates in the corresponding edit boxes under Vertex positions as shown below. You can use MATLAB expressions within these boxes. For instance, for the x coordinate of the fifth vertex, enter cosd(30)-0.5*sind(30) under Xpos. Remember to use the correct trig function for how you express your angles: if you enter the angle in degrees, you must use the MATLAB functions sind and cosd, if you enter the angle in radians you must use the MATLAB functions sin and cos.

...