<!-- This XML file has been created by Easy Java Simulations (Ejs). Visit http://www.um.es/fem/Ejs. -->
<!-- Please, save the file to your hard disk on your Ejs' user directory and open it with Ejs. -->
<Osejs version="4.2.7" password="">
<Osejs.Information>
<Title><![CDATA[]]></Title>
<Author><![CDATA[]]></Author>
<Keywords><![CDATA[]]></Keywords>
<Password><![CDATA[]]></Password>
<Level><![CDATA[]]></Level>
<Language><![CDATA[]]></Language>
<Abstract><![CDATA[]]></Abstract>
<ExecPassword><![CDATA[]]></ExecPassword>
<CaptureTools>true</CaptureTools>
<DataTools>true</DataTools>
<LanguageTools>true</LanguageTools>
<EmersionSupport>false</EmersionSupport>
<UseInterpreter>true</UseInterpreter>
<AdditionalLibraries>
</AdditionalLibraries>
<ImportStatements>
</ImportStatements>
<AuxiliaryFiles><![CDATA[]]></AuxiliaryFiles>
<DetectedFiles><![CDATA[]]></DetectedFiles>
</Osejs.Information>
<Osejs.Description>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>Vector Addition</Name>
<Active>true</Active>
<Content>
<![CDATA[
<html>
  <head>
    
  </head>
  <body>
    <h1>
      Vector Addition
    </h1>
    <p>
      With this simulation, you can practice vector addition of two vectors in 
      two dimensions.
    </p>
    <p>
      You are given the magnitude and direction of the two vectors, and your 
      goal is to fill in the nine values in the table (showing the 
      x-component, y-component, and length) of the two vectors, and the 
      resultant vector that is the sum of the first two vectors. You should 
      also determine the angle of the resultant, and enter that value in the 
      box at the right, just above the table.
    </p>
    <p>
      When you worked out and entered your values, click on the &quot;Check 
      Answers&quot; button. If you get any values wrong, you can change them and 
      then click the &quot;Check Answers&quot; button again (you can do this is many 
      times as you like). If you get stuck, you can click the &quot;Show Answers&quot; 
      button. Note that, after pressing the &quot;Show Answers&quot; button, you can not 
      use the &quot;Check Answers&quot; button again until you have obtained a new pair 
      of vectors to do.
    </p>
    <p>
      You can get two new vectors in three different ways:
    </p>
    <ul>
      <li>
        clicking the &quot;Reset Vectors&quot; button;
      </li>
    </ul>
    <ul>
      <li>
        clicking and dragging the tip of either or both of the vectors to 
        change the size and/or the angle;
      </li>
    </ul>
    <ul>
      <li>
        using the sliders to change the length and/or angle of the vectors.
      </li>
    </ul>
  </body>
</html>

]]>

</Content>
</Osejs.Description.Page>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>Activities</Name>
<Active>true</Active>
<Content>
<![CDATA[
<html>
  <head>
    
  </head>
  <body>
    <h1>
      Activities
    </h1>
    <ol>
      <li>
        First, either specify lengths and angles for the two vectors, or get 
        the simulation to do that by pressing the &quot;Generate Vectors&quot; button. 
        It should be easy for you to fill in the lengths of the first two 
        vectors. Then, figure out the components of the vectors and enter them 
        in the table at the bottom of the simulation. Don't worry about 
        filling in the &quot;Resultant&quot; line yet. Check your answers by pressing 
        the &quot;Check Answer&quot; button at the bottom.
      </li>
      <li>
        Once you have the components of the first two vectors correct, 
        determine the components of the resultant vector (the resultant vector 
        is the sum of the red vector and the blue vector). Enter those, and 
        check your answers.
      </li>
      <li>
        Finally, work out the magnitude and angle of the resultant vector. The 
        angle is in degrees, measured counter-clockwise from the positive 
        x-axis, which points to the right. Check your answers, and correct any 
        mistakes.
      </li>
      <li>
        Once you've solved the problem, get a new pair of vectors and try it 
        all again to get more practice.
      </li>
    </ol>
  </body>
</html>

]]>

</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>25</Osejs.Model.FramesPerSecond>
<Osejs.Model.StepsPerDisplay>1</Osejs.Model.StepsPerDisplay>
<Osejs.Model.Autostart>false</Osejs.Model.Autostart>
<Osejs.Model.Variables>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>variables</Name>
<Active>true</Active>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[theta1]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Angle of first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[theta2]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Angle of second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L1]]></Name>
<Value><![CDATA[2.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Length of the first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L2]]></Name>
<Value><![CDATA[2.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Length of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L1x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L1y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L2x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L2y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L3x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L3y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L3]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[magnitude of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[angle1]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Angle of first vector, in degrees]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[angle2]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[Angle of second vector, in degrees]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showarrows]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[A flag to show, or hide, the vectors]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showcomp]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[A flag to show, or hide, the vector components]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showres]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[A flag to show, or hide, the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[show3comp]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[A flag to show, or hide, the components of the resultant]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[theta3]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[angle3]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showAnswerFlag]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[helpLabel]]></Name>
<Value><![CDATA["Show Help"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[helpFlag]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>

</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>user-entered variables</Name>
<Active>true</Active>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[enterL1x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL1y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the first vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL1]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL2x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL2y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the second vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL2]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL3x]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[x-component of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL3y]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[y-component of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterL3]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[magnitude of the resultant vector]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterangle]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>

</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>check variables</Name>
<Active>true</Active>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[x1correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x1correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y1correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y1correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L1correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L1correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x2correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x2correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y2correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y2correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L2correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L2correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x3correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x3correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y3correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y3correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L3correct]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L3correctbackground]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[anglecorrect]]></Name>
<Value><![CDATA["  ?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[anglecorrectbackground]]></Name>
<Value><![CDATA[null]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[redness]]></Name>
<Value><![CDATA[200]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[greenness]]></Name>
<Value><![CDATA[220]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[blueness]]></Name>
<Value><![CDATA[208]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[backColor]]></Name>
<Value><![CDATA[null]]></Value>
<Type><![CDATA[Object]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>

</Content>
</Osejs.Model.Variables.Page>
</Osejs.Model.Variables>
<Osejs.Model.Initialization>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>Init Page</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
// Generate random vectors
resetVectors();

// Components of the resultant vector, by vector addition
L3x = L1x + L2x;
L3y = L1y + L2y;

// Magnitude of the resultant vector, by Pythagorean theorem
L3 = Math.sqrt(L3x*L3x+L3y*L3y);

//Angle of the resultant vector
theta3 = Math.atan2(L3y,L3x);
if (theta3 < 0.0) theta3 = theta3 + 2.0*Math.PI;
angle3 = theta3*180.0/Math.PI;

// set the background color of the correct messages to light gray
backColor = new java.awt.Color(redness,greenness,blueness);
x1correctbackground = backColor;
y1correctbackground = backColor;
L1correctbackground = backColor;
x2correctbackground = backColor;
y2correctbackground = backColor;
L2correctbackground = backColor;
x3correctbackground = backColor;
y3correctbackground = backColor;
L3correctbackground = backColor;
anglecorrectbackground = backColor;
]]></Code>

</Content>
</Osejs.Model.Initialization.Page>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>Cons Page</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
// Components of vector 1
L1x = L1*Math.cos(theta1);
L1y = L1*Math.sin(theta1);

// Components of vector 2
L2x = L2*Math.cos(theta2);
L2y = L2*Math.sin(theta2);

// Components of the resultant vector, by vector addition
L3x = L1x + L2x;
L3y = L1y + L2y;

// Magnitude of the resultant vector, by Pythagorean theorem
L3 = Math.sqrt(L3x*L3x+L3y*L3y);

//Angle of the resultant vector
theta3 = Math.atan2(L3y,L3x);
if (theta3 < 0.0) theta3 = theta3 + 2.0*Math.PI;
angle3 = theta3*180.0/Math.PI;

// When to show the components of the resultant
if ((showres) && (showcomp)) 
{
show3comp = true;
}
else show3comp = false;
]]></Code>

</Content>
</Osejs.Model.Constraints.Page>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>resetTable</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
public void resetTable () {

showAnswerFlag = false;

enterL1x = 0.0;
x1correct = "  ?";
x1correctbackground = backColor;

enterL1y = 0.0;
y1correct = "  ?";
y1correctbackground = backColor;

enterL1 = 0.0;
L1correct = "  ?";
L1correctbackground = backColor;

enterL2x = 0.0;
x2correct = "  ?";
x2correctbackground = backColor;

enterL2y = 0.0;
y2correct = "  ?";
y2correctbackground = backColor;

enterL2 = 0.0;
L2correct = "  ?";
L2correctbackground = backColor;

enterL3x = 0.0;
x3correct = "  ?";
showAnswerFlag = false;

x3correctbackground = backColor;

enterL3y = 0.0;
y3correct = "  ?";
y3correctbackground = backColor;

enterL3 = 0.0;
L3correct = "  ?";
L3correctbackground = backColor;

enterangle = 0.0;
anglecorrect = "  ?";
anglecorrectbackground = backColor;
}
]]></Code>

</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>resetVectors</Name>
<Active>true</Active>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
public void resetVectors () {
L1x = -10.0 + 20.0*Math.random();
L2x = -10.0 + 20.0*Math.random();
L1y = -10.0 + 20.0*Math.random();
L2y = -10.0 + 20.0*Math.random();

L1 = Math.sqrt(L1x*L1x+L1y*L1y);
L2 = Math.sqrt(L2x*L2x+L2y*L2y);

theta1 = Math.atan2(L1y,L1x);
if (theta1 < 0.0) theta1 = theta1 + 2.0*Math.PI; 
theta2 = Math.atan2(L2y,L2x);
if (theta2 < 0.0) theta2 = theta2 + 2.0*Math.PI;

angle1 = theta1*180.0/Math.PI;
angle2 = theta2*180.0/Math.PI;
}
]]></Code>

</Content>
</Osejs.Model.Library.Page>
</Osejs.Model.Library>
</Osejs.Model>
<Osejs.View>
<Osejs.View.Creation>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Frame</Type>
<Property name="name">MainWindow</Property>
<Property name="_ejs_mainWindow">true</Property>
<Property name="title"><![CDATA[Vector Addition]]></Property>
<Property name="layout"><![CDATA[border]]></Property>
<Property name="visible"><![CDATA[true]]></Property>
<Property name="size"><![CDATA["855,550"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">RightPanel</Property>
<Property name="parent">MainWindow</Property>
<Property name="position">east</Property>
<Property name="layout"><![CDATA[border]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">ButtonsPanel</Property>
<Property name="parent">RightPanel</Property>
<Property name="position">north</Property>
<Property name="layout"><![CDATA[grid:0,1,0,0]]></Property>
<Property name="size"><![CDATA["240,405"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.CheckBox</Type>
<Property name="name">showresultant</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[showres]]></Property>
<Property name="text"><![CDATA[show resultant]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.CheckBox</Type>
<Property name="name">showcomponents</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[showcomp]]></Property>
<Property name="text"><![CDATA[show components]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Reset</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="text"><![CDATA[Reset Vectors]]></Property>
<Property name="action"><![CDATA[resetVectors();
resetTable();]]></Property>
<Property name="background"><![CDATA[255,192,64]]></Property>
<Property name="foreground"><![CDATA[BLUE]]></Property>
<Property name="font"><![CDATA[Tahoma,BOLD,15]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Slider</Type>
<Property name="name">length1</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[L1]]></Property>
<Property name="minimum"><![CDATA[0.0]]></Property>
<Property name="maximum"><![CDATA[10.0]]></Property>
<Property name="format"><![CDATA[Length of vector 1 = 0.###]]></Property>
<Property name="orientation"><![CDATA[HORIZONTAL]]></Property>
<Property name="action"><![CDATA[resetTable();]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Slider</Type>
<Property name="name">length2</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[L2]]></Property>
<Property name="minimum"><![CDATA[0.0]]></Property>
<Property name="maximum"><![CDATA[10.0]]></Property>
<Property name="format"><![CDATA[Length of vector 2 = 0.###]]></Property>
<Property name="orientation"><![CDATA[HORIZONTAL]]></Property>
<Property name="action"><![CDATA[resetTable();]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Slider</Type>
<Property name="name">angle1</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[angle1]]></Property>
<Property name="minimum"><![CDATA[0.0]]></Property>
<Property name="maximum"><![CDATA[360]]></Property>
<Property name="format"><![CDATA[Angle of vector 1 = 0.##]]></Property>
<Property name="orientation"><![CDATA[HORIZONTAL]]></Property>
<Property name="dragaction"><![CDATA[theta1 = angle1*Math.PI/180.0;]]></Property>
<Property name="action"><![CDATA[theta1 = angle1*Math.PI/180.0;
resetTable();]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Slider</Type>
<Property name="name">angle2</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[angle2]]></Property>
<Property name="minimum"><![CDATA[0.0]]></Property>
<Property name="maximum"><![CDATA[360]]></Property>
<Property name="format"><![CDATA[Angle of vector 2 = 0.##]]></Property>
<Property name="orientation"><![CDATA[HORIZONTAL]]></Property>
<Property name="dragaction"><![CDATA[theta2 = angle2*Math.PI/180.0;]]></Property>
<Property name="action"><![CDATA[theta2 = angle2*Math.PI/180.0;
resetTable();]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Check</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="text"><![CDATA[Check Answers]]></Property>
<Property name="action"><![CDATA[if (showAnswerFlag)
{ }
else
{

if (Math.abs(L1x - enterL1x) < 0.1)
{
x1correct = "  Yes";
x1correctbackground = java.awt.Color.GREEN;
}
else
{
x1correct = "  No";
x1correctbackground = java.awt.Color.RED;
}

if (Math.abs(L2x - enterL2x) < 0.1)
{
x2correct = "  Yes";
x2correctbackground = java.awt.Color.GREEN;
}
else
{
x2correct = "  No";
x2correctbackground = java.awt.Color.RED;
}

if (Math.abs(L3x - enterL3x) < 0.1)
{
x3correct = "  Yes";
x3correctbackground = java.awt.Color.GREEN;
}
else
{
x3correct = "  No";
x3correctbackground = java.awt.Color.RED;
}

if (Math.abs(L1y - enterL1y) < 0.1)
{
y1correct = "  Yes";
y1correctbackground = java.awt.Color.GREEN;
}
else
{
y1correct = "  No";
y1correctbackground = java.awt.Color.RED;
}

if (Math.abs(L2y - enterL2y) < 0.1)
{
y2correct = "  Yes";
y2correctbackground = java.awt.Color.GREEN;
}
else
{
y2correct = "  No";
y2correctbackground = java.awt.Color.RED;
}

if (Math.abs(L3y - enterL3y) < 0.1)
{
y3correct = "  Yes";
y3correctbackground = java.awt.Color.GREEN;
}
else
{
y3correct = "  No";
y3correctbackground = java.awt.Color.RED;
}

if (Math.abs(L1 - enterL1) < 0.1)
{
L1correct = "  Yes";
L1correctbackground = java.awt.Color.GREEN;
}
else
{
L1correct = "  No";
L1correctbackground = java.awt.Color.RED;
}

if (Math.abs(L2 - enterL2) < 0.1)
{
L2correct = "  Yes";
L2correctbackground = java.awt.Color.GREEN;
}
else
{
L2correct = "  No";
L2correctbackground = java.awt.Color.RED;
}

if (Math.abs(L3 - enterL3) < 0.1)
{
L3correct = "  Yes";
L3correctbackground = java.awt.Color.GREEN;
}
else
{
L3correct = "  No";
L3correctbackground = java.awt.Color.RED;
}

if (Math.abs(angle3 - enterangle) < 0.2)
{
anglecorrect = "  Yes";
anglecorrectbackground = java.awt.Color.GREEN;
}
else
{
anglecorrect = "  No";
anglecorrectbackground = java.awt.Color.RED;
}

}]]></Property>
<Property name="background"><![CDATA[255,192,64]]></Property>
<Property name="foreground"><![CDATA[BLUE]]></Property>
<Property name="font"><![CDATA[Tahoma,BOLD,15]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Show</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="text"><![CDATA[Show Answers]]></Property>
<Property name="action"><![CDATA[showAnswerFlag = true;

enterL1x = L1x;
enterL2x = L2x;
enterL3x = L3x;

enterL1y = L1y;
enterL2y = L2y;
enterL3y = L3y;

enterL1 = L1;
enterL2 = L2;
enterL3 = L3;

enterangle = angle3;]]></Property>
<Property name="background"><![CDATA[255,192,64]]></Property>
<Property name="foreground"><![CDATA[BLUE]]></Property>
<Property name="font"><![CDATA[Tahoma,BOLD,15]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">reset</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="text"><![CDATA[Reset Simulation]]></Property>
<Property name="action"><![CDATA[_reset()]]></Property>
<Property name="background"><![CDATA[BLACK]]></Property>
<Property name="foreground"><![CDATA[RED]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">instructions</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="text"><![CDATA[%helpLabel%]]></Property>
<Property name="action"><![CDATA[if (helpFlag)
{
helpFlag = false;
helpLabel = "Show Help";
}
else
{
helpFlag = true;
helpLabel = "Hide Help";
}]]></Property>
<Property name="background"><![CDATA[BLUE]]></Property>
<Property name="foreground"><![CDATA[YELLOW]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">resAngle</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="value"><![CDATA[Resultant angle (degrees)]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[MAGENTA]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">resAngleEntry</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[enterangle]]></Property>
<Property name="format"><![CDATA[theta = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">resAnglecheck</Property>
<Property name="parent">ButtonsPanel</Property>
<Property name="variable"><![CDATA[%anglecorrect%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[anglecorrectbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>false</Expanded>
<Type>Elements.PlottingPanel</Type>
<Property name="name">plottingPanel</Property>
<Property name="parent">MainWindow</Property>
<Property name="position">center</Property>
<Property name="autoscaleX"><![CDATA[false]]></Property>
<Property name="autoscaleY"><![CDATA[false]]></Property>
<Property name="minimumX"><![CDATA[-L1-L2]]></Property>
<Property name="maximumX"><![CDATA[L1+L2]]></Property>
<Property name="minimumY"><![CDATA[-L1-L2]]></Property>
<Property name="maximumY"><![CDATA[L1+L2]]></Property>
<Property name="square"><![CDATA[true]]></Property>
<Property name="title"><![CDATA[Vector Addition]]></Property>
<Property name="majorTicksX"><![CDATA[true]]></Property>
<Property name="majorTicksY"><![CDATA[true]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector1x</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[0.0]]></Property>
<Property name="y"><![CDATA[0.0]]></Property>
<Property name="sizex"><![CDATA[L1x]]></Property>
<Property name="sizey"><![CDATA[0.0]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showcomp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[CYAN]]></Property>
<Property name="secondaryColor"><![CDATA[CYAN]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector1y</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[L1x]]></Property>
<Property name="y"><![CDATA[0.0]]></Property>
<Property name="sizex"><![CDATA[0.0]]></Property>
<Property name="sizey"><![CDATA[L1y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showcomp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[CYAN]]></Property>
<Property name="secondaryColor"><![CDATA[CYAN]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector1</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[0.0]]></Property>
<Property name="y"><![CDATA[0.0]]></Property>
<Property name="sizex"><![CDATA[L1x]]></Property>
<Property name="sizey"><![CDATA[L1y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showarrows]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[true]]></Property>
<Property name="dragaction"><![CDATA[theta1 = Math.atan2(L1y,L1x);
if (theta1 < 0.0) theta1 = theta1 + 2.0*Math.PI;
angle1 = theta1*180.0/Math.PI;

L1 = Math.sqrt(L1x*L1x+L1y*L1y);

if (L1 > 10.0) L1 = 10.0;]]></Property>
<Property name="action"><![CDATA[resetTable();]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[BLUE]]></Property>
<Property name="secondaryColor"><![CDATA[BLUE]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector2x</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[L1x]]></Property>
<Property name="y"><![CDATA[L1y]]></Property>
<Property name="sizex"><![CDATA[L2x]]></Property>
<Property name="sizey"><![CDATA[0.0]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showcomp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[PINK]]></Property>
<Property name="secondaryColor"><![CDATA[PINK]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector2y</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[L1x+L2x]]></Property>
<Property name="y"><![CDATA[L1y]]></Property>
<Property name="sizex"><![CDATA[0.0]]></Property>
<Property name="sizey"><![CDATA[L2y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showcomp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[PINK]]></Property>
<Property name="secondaryColor"><![CDATA[PINK]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector2</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[L1x]]></Property>
<Property name="y"><![CDATA[L1y]]></Property>
<Property name="sizex"><![CDATA[L2x]]></Property>
<Property name="sizey"><![CDATA[L2y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showarrows]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[true]]></Property>
<Property name="pressaction"><![CDATA[theta2 = Math.atan2(L2y,L2x);
if (theta2 < 0.0) theta2 = theta2 + 2.0*Math.PI;
angle2 = theta2*180.0/Math.PI;

L2 = Math.sqrt(L2x*L2x+L2y*L2y);

if (L2 > 10.0) L2 = 10.0;]]></Property>
<Property name="dragaction"><![CDATA[theta2 = Math.atan2(L2y,L2x);
if (theta2 < 0.0) theta2 = theta2 + 2.0*Math.PI;
angle2 = theta2*180.0/Math.PI;

L2 = Math.sqrt(L2x*L2x+L2y*L2y);

if (L2 > 10.0) L2 = 10.0;]]></Property>
<Property name="action"><![CDATA[resetTable();]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[RED]]></Property>
<Property name="secondaryColor"><![CDATA[RED]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector3x</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[0.0]]></Property>
<Property name="y"><![CDATA[L3y]]></Property>
<Property name="sizex"><![CDATA[L3x]]></Property>
<Property name="sizey"><![CDATA[0.0]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[show3comp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[255,120,255,255]]></Property>
<Property name="secondaryColor"><![CDATA[255,120,255,255]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector3y</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[0.0]]></Property>
<Property name="y"><![CDATA[0.0]]></Property>
<Property name="sizex"><![CDATA[0.0]]></Property>
<Property name="sizey"><![CDATA[L3y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[show3comp]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[255,120,255,255]]></Property>
<Property name="secondaryColor"><![CDATA[255,120,255,255]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">vector3</Property>
<Property name="parent">plottingPanel</Property>
<Property name="x"><![CDATA[0.0]]></Property>
<Property name="y"><![CDATA[0.0]]></Property>
<Property name="sizex"><![CDATA[L3x]]></Property>
<Property name="sizey"><![CDATA[L3y]]></Property>
<Property name="scalex"><![CDATA[1.0]]></Property>
<Property name="scaley"><![CDATA[1.0]]></Property>
<Property name="visible"><![CDATA[showres]]></Property>
<Property name="enabledSecondary"><![CDATA[false]]></Property>
<Property name="enabled"><![CDATA[false]]></Property>
<Property name="style"><![CDATA[ARROW]]></Property>
<Property name="color"><![CDATA[MAGENTA]]></Property>
<Property name="secondaryColor"><![CDATA[MAGENTA]]></Property>
<Property name="stroke"><![CDATA[2]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">Table</Property>
<Property name="parent">MainWindow</Property>
<Property name="position">south</Property>
<Property name="layout"><![CDATA[grid:4,7,3,3]]></Property>
<Property name="size"><![CDATA[300,120]]></Property>
<Property name="border"><![CDATA[50]]></Property>
<Property name="borderType"><![CDATA[MATTE]]></Property>
<Property name="borderColor"><![CDATA[CYAN]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">tf1</Property>
<Property name="parent">Table</Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="size"><![CDATA[200,40]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">xcomp</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[x-component]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkx</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[x correct?]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">ycomp</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[y-component]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checky</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[y correct?]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">length</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[Length]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkL</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA[length correct?]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">vec1</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA["Vector 1"]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[100,100,255]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">x1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL1x]]></Property>
<Property name="format"><![CDATA[x1 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkx1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[x1correct]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[x1correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">y1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL1y]]></Property>
<Property name="format"><![CDATA[y1 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checky1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%y1correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[y1correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">l1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL1]]></Property>
<Property name="format"><![CDATA[L1 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkL1</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%L1correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[L1correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">vec2</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA["Vector 2"]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[255,100,100]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">x2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL2x]]></Property>
<Property name="format"><![CDATA[x2 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkx2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%x2correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[x2correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">y2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL2y]]></Property>
<Property name="format"><![CDATA[y2 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checky2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%y2correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[y2correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">l2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL2]]></Property>
<Property name="format"><![CDATA[L2 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkL2</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%L2correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[L2correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">vec3</Property>
<Property name="parent">Table</Property>
<Property name="value"><![CDATA["Resultant"]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[MAGENTA]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">x3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL3x]]></Property>
<Property name="format"><![CDATA[x3 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkx3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%x3correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[x3correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">y3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL3y]]></Property>
<Property name="format"><![CDATA[y3 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checky3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%y3correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[y3correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.ParsedField</Type>
<Property name="name">l3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[enterL3]]></Property>
<Property name="format"><![CDATA[L3 = 0.##]]></Property>
<Property name="editable"><![CDATA[true]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">checkL3</Property>
<Property name="parent">Table</Property>
<Property name="variable"><![CDATA[%L3correct%]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="background"><![CDATA[L3correctbackground]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Frame</Type>
<Property name="name">helpBox</Property>
<Property name="title"><![CDATA[Help]]></Property>
<Property name="layout"><![CDATA[grid:0,1,0,0]]></Property>
<Property name="visible"><![CDATA[helpFlag]]></Property>
<Property name="onClosing"><![CDATA[helpFlag = false;
helpLabel = "Show Help";]]></Property>
<Property name="location"><![CDATA["15,1"]]></Property>
<Property name="size"><![CDATA["903,244"]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line1</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA[You can show, or hide, the resultant vector using the box at the top right.]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line2</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA[Show or hide the vector components using the second check box.]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line3</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA["You can get new vectors using the Reset Vectors button, or by resetting the simulation."]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line4</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA[You can also get new vectors by using the length and angle sliders, or by clicking-and-dragging the tips of the vectors.]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line5</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA[Enter the 10 unknowns in the white entry boxes near the bottom of the simulation.]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line6</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA["The entry boxes will turn yellow - hit Enter to have the simulation accept your value (the box turns white again)."]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line7</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA["Use the Check Answers button to check the answers you entered."]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line10</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA[Fix all your incorrect answers (marked red) and check your answers again.]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line8</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA["If you get stuck, you can see the answers using the Show Answers button."]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.TextField</Type>
<Property name="name">line9</Property>
<Property name="parent">helpBox</Property>
<Property name="value"><![CDATA["After pressing the Show Answers button, you need to get a new vector to start again."]]></Property>
<Property name="editable"><![CDATA[false]]></Property>
<Property name="font"><![CDATA[Dialog,BOLD,16]]></Property>
</Osejs.View.Creation.Element>
</Osejs.View.Creation>
</Osejs.View>
<Osejs.Experiment>
</Osejs.Experiment>
</Osejs>
