<?xml version="1.0" encoding="UTF-8"?>
<!-- This XML file has been created by Easy JavaScript Simulations (EjsS). 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="6.1 BETA">
<Osejs.Information>
<Title><![CDATA[Angle of Release Projectile Motion Model for Exercise Sports Science]]></Title>
<Copyright><![CDATA[creative common attribution]]></Copyright>
<Keywords><![CDATA[]]></Keywords>
<Level><![CDATA[]]></Level>
<Language><![CDATA[]]></Language>
<Abstract><![CDATA[http://weelookang.blogspot.sg/2013/12/ejss-free-fall-model.html

ball taken from: http://psychology.wikia.com/wiki/File:Soccer_ball.svg

http://weelookang.blogspot.sg/2014/09/ejss-projectile-customized-after.html

http://weelookang.blogspot.sg/2013/12/ejss-free-fall-model.html sound effects from http://www.freesfx.co.uk/sfx/bouncing]]></Abstract>
<FixedNavigationBar>false</FixedNavigationBar>
<RunAlways>true</RunAlways>
<UseInterpreter>true</UseInterpreter>
<UseDeltaForODE>false</UseDeltaForODE>
<ModelTab></ModelTab>
<ModelTabTitle><![CDATA[]]></ModelTabTitle>
<ModelName><![CDATA[]]></ModelName>
<CSSFile></CSSFile>
<StaticImages>
</StaticImages>
<HTMLHead><![CDATA[<style type="text/css">
.metadata { display: none; }
</style>
<script async="true" src="https://www.googletagmanager.com/gtag/js?id=UA-3326007-19"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-3326007-19');
</script>
<script data-ad-client="ca-pub-0121577198857509" async="true" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>]]></HTMLHead>
<Logo>./projectile/Screenshot 2020-02-18 at 5.00.32 PM (2) 3 2.png</Logo>
<Author><![CDATA[weelookang@gmail.com; Cleve Chia]]></Author>
<AuthorLogo>./01authorlookang50x50.png;</AuthorLogo>
<DetectedFiles><![CDATA[./01authorlookang50x50.png;./projectile/240px-Soccer_ball.svg.png;./projectile/Screenshot 2020-02-18 at 5.00.32 PM (2) 3 2.png;./projectile/toy_plastic_inflatable_ball_bounce_on_floor.mp3;./projectile/zero.png;]]></DetectedFiles>
<AuxiliaryFiles><![CDATA[./projectile/;]]></AuxiliaryFiles>
</Osejs.Information>
<Osejs.Description>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>About</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<OneHTMLPage>
  <Locale>_default_</Locale>
  <Title>About</Title>
  <External>false</External>
  <![CDATA[
<html>
  <head>
    <style type="text/css">
      <!--
        ﻿ body { margin-top: 2%; margin-right: 3%; margin-bottom: 5%; margin-left: 3%; text-align: justify; font-size: medium; font-family: Georgia, Times New Roman, Times, serif }
        h1 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; color: #0000C8; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; font-size: 135% !important }
        h2 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; color: #000777; font-size: 120% !important }
        h3 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; color: navy; font-size: 110% !important }
        h4 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif }
        h5 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif }
        h6 { text-indent: 0px; text-align: left; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif }
        li { text-align: left; margin-top: 0; margin-bottom: 0 }
        p { line-height: 1.5em; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; font-family: Georgia, Times New Roman, Times, serif }
        a:link { color: red }
        a:visited { color: fuchsia }
        address { margin-top: 0; padding-top: 0; border-top-color: border-color; border-top-style: dotted; border-top-width: thin }
        button { font-family: Georgia, Times New Roman, Times, serif; font-size: 1em; color: black }
        input { font-size: 0.70em; background-repeat: repeat; background-attachment: scroll; color: black }
        div.experiment p { display: inline }
        .ArrayPanel { border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; display: table; width: 100% }
        .DataTable { border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; display: table; width: 100% }
        .ArrayPanel thead { float: left; width: 100%; background-repeat: repeat; background-attachment: scroll }
        .ArrayPanel tbody { float: left; width: 100% }
        .ArrayPanel tr { width: 100%; display: table }
        .DataPanel tr { width: 100%; display: table }
        .ArrayPanel th { width: 1%; border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; text-align: center }
        .DataTable th { width: 1%; border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; text-align: center }
        .ArrayPanel td { width: 1%; border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; text-align: right }
        .DataTable td { width: 1%; border-top-color: black; border-top-style: solid; border-top-width: 1px; border-right-color: black; border-right-style: solid; border-right-width: 1px; border-bottom-color: black; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: black; border-left-style: solid; border-left-width: 1px; text-align: right }
        .DataTable thead { background-repeat: repeat; background-attachment: scroll }
        .BoxPanel { background-color: red; background-repeat: repeat; background-attachment: scroll }
        ._TabbedPanel.span { display: table; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0 }
        ._TabbedPanel.ul { list-style-type: none; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0 }
        ._TabbedPanel.li { float: left; text-align: center; margin-top: 0; margin-bottom: 0; border-top-color: #ccc; border-top-style: solid; border-top-width: 1px; border-right-color: #ccc; border-right-style: solid; border-right-width: 1px; border-bottom-color: #ccc; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #ccc; border-left-style: solid; border-left-width: 1px }
        ._TabbedPanel.a { display: inline-block; color: black; text-align: center; padding-top: 7px; padding-bottom: 7px; padding-right: 8px; padding-left: 8px; text-decoration: none; font-size: 14px }
        ï»¿ body { text-align: justify; font-size: medium; font-family: Georgia, Times New Roman, Times, serif; margin-left: 3%; margin-right: 3%; margin-top: 2%; margin-bottom: 5% }
      -->
    </style>
    
  </head>
  <body>
  </body>
</html>

]]>
</OneHTMLPage>
</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>20</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>Var Table</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[fontb]]></Name>
<Value><![CDATA["normal bold 2vw "]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[pi]]></Name>
<Value><![CDATA[Math.PI]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[autoscale]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmin]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmax]]></Name>
<Value><![CDATA[20]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymin]]></Name>
<Value><![CDATA[-5]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymax]]></Name>
<Value><![CDATA[15]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[rangex]]></Name>
<Value><![CDATA[xmax-xmin]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yminplot]]></Name>
<Value><![CDATA[-100]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymaxplot]]></Name>
<Value><![CDATA[10]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[rangey]]></Name>
<Value><![CDATA[ymax-ymin]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[sizex]]></Name>
<Value><![CDATA[rangex/20]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[sizey]]></Name>
<Value><![CDATA[rangey/20]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[scalex]]></Name>
<Value><![CDATA[rangey/rangex/2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[scaley]]></Name>
<Value><![CDATA[rangex/rangey/2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[t]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[dt]]></Name>
<Value><![CDATA[0.05]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xs]]></Name>
<Value><![CDATA[x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xs0]]></Name>
<Value><![CDATA[x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y]]></Name>
<Value><![CDATA[0.001]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ys]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ys0]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yo]]></Name>
<Value><![CDATA[-8.4]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[m]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vx]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vxdrag]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vxs]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vxs0]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vy]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vydrag]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vys]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vys0]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[theta]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetas]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetas0]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vymax]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vymin]]></Name>
<Value><![CDATA[-5]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetadeg]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetadegs]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ninetyminustheta]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[v]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vs]]></Name>
<Value><![CDATA[v]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[textv]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[texts]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ax]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ay]]></Name>
<Value><![CDATA[-9.81]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[aydrag]]></Name>
<Value><![CDATA[ay*0.2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[aym]]></Name>
<Value><![CDATA[ay]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selected]]></Name>
<Value><![CDATA["toss out 30 deg"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[textt]]></Name>
<Value><![CDATA["change angle & click play"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yground]]></Name>
<Value><![CDATA[-sizex/2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yground2]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[e]]></Name>
<Value><![CDATA[0.6]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ke]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[pe]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[te]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[keshow]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[k]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[peshow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[teshow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[memorycolor]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[memorycolory]]></Name>
<Value><![CDATA[2]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[memorycolorv]]></Name>
<Value><![CDATA[5]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[memorycolora]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showtextposition]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[shows]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showv]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showa]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showe]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[manpic]]></Name>
<Value><![CDATA["./projectile/zero.png"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[maxrange]]></Name>
<Value><![CDATA["?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[maxheight]]></Name>
<Value><![CDATA["?"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[n]]></Name>
<Value><![CDATA[10]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[angleword]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[anglewordx]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[anglewordy]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[counter]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>shadows</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[numShadows]]></Name>
<Value><![CDATA[100]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xShadows]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yShadows]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vxShadows]]></Name>
<Value><![CDATA[vx]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vShadows]]></Name>
<Value><![CDATA[vy]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[axShadows]]></Name>
<Value><![CDATA[ax]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[aShadows]]></Name>
<Value><![CDATA[ay]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[tShadows]]></Name>
<Value><![CDATA[t]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[shadowColor]]></Name>
<Value><![CDATA["rgba(0,0,255,1)"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[shadowVis]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[counter]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[prev]]></Name>
<Value><![CDATA[-0.05]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xMarkVert]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yMarkVert]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xMarkHoriz]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yMarkHoriz]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[numShadows]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>layout</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[iOS]]></Name>
<Value><![CDATA[/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iPad]]></Name>
<Value><![CDATA[/iPad/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iPhone]]></Name>
<Value><![CDATA[/iPhone|iPod/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Android]]></Name>
<Value><![CDATA[/Android|android/i.test(navigator.userAgent)]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[world]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[graph]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[graph3]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[graphs]]></Name>
<Value><![CDATA[graph]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width]]></Name>
<Value><![CDATA[(_isEPub)?"400":"100%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Height]]></Name>
<Value><![CDATA[(_isEPub)?"500":"100%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width1]]></Name>
<Value><![CDATA["100%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width2]]></Name>
<Value><![CDATA["0%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width3]]></Name>
<Value><![CDATA["0%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[disabledworld]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[disabled]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[disabled3]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xvst]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vvst]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[avst]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>model</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selectedmodel]]></Name>
<Value><![CDATA["0"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selectedmodely]]></Name>
<Value><![CDATA["0"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[functionY]]></Name>
<Value><![CDATA["0"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[functionY2]]></Name>
<Value><![CDATA["0"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmodel]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymodel]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showmodel]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>edits</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[hint]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[font]]></Name>
<Value><![CDATA["normal normal 1.5vw "]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[null]]></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>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[

  
  xs=x; //store values of x and y
  ys=y;
  vxs=vx;
  vys=vy;
//  graph=graphs;

]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>shadows</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
// prev = Math.ceil(t);
for (var counter=0; counter<numShadows /* Iterations */ ; counter++) {

yShadows[counter] = y;
tShadows[counter]=t;
vShadows[counter]=vy;
aShadows[counter]=ay;
}

]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>undefined</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if (showtextposition==undefined){
  showtextposition=true;
  }
  
  if (x==undefined){
  x=0;
  }
  if (x==undefined){
  y=0;
  }
  if (xs0==undefined){
  xs0=x;
  }
  if (xs0==undefined){
  ys0=y;
  }
  // for v
  if (vx==undefined){
  vx=10;
  //alert(vx);
  vxs=vx;
  vxdrag=vx*0.2;
  vxs0=vx;
  }
  if (vy==undefined){
  vy=10;
  vydrag=vy*0.2;
  vys=vy;
  vys0=vy;
  v= Math.sqrt(vx*vx+vy*vy);
  vs=v;
  }
 // if (theta==undefined){
    theta=Math.atan2(vy,vx);
    
    thetas=Math.atan2(vys,vxs);
    thetas0=Math.atan2(vys0,vxs0);
    thetadeg= theta*180/pi;
    thetadegs=thetas*180/pi;
    ninetyminustheta= 90-thetadegs;
   
 //   }
  
  
  if (shows==undefined){
  shows=false;
  }
  if (showv==undefined){
  showv=false;
  }
  if (showa==undefined){
  showa=false;
  }
  if (showe==undefined){
  showe=false;
  }



]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>svg</Name>
<Active>false</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,0,0); stop-opacity:1" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0.5" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
document.body.appendChild(container);

var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient1" cx="50%" cy="50%" r="80%" fx="30%" fy="30%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,0,0); stop-opacity:1" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:1" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
document.body.appendChild(container);
//"url(#mygrandient1)"

var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient2" cx="50%" cy="50%" r="70%" fx="90%" fy="50%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,255,0); stop-opacity:0.5" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0.5" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
document.body.appendChild(container);
//"url(#mygrandient2)"
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>svg 2</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,0,0); stop-opacity:1" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0.5" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
container.style.width = 0;
container.style.height = 0;
container.style.display = 'flex';
document.body.appendChild(container);

var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient1" cx="50%" cy="50%" r="80%" fx="30%" fy="30%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,0,0); stop-opacity:1" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:1" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
container.style.width = 0;
container.style.height = 0;
container.style.display = 'flex';
document.body.appendChild(container);
//"url(#mygrandient1)"

var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient2" cx="50%" cy="50%" r="70%" fx="90%" fy="50%">'+
  '    <stop offset="0%" style="stop-color:rgb(0,255,0); stop-opacity:0.5" />'+
  '    <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0.5" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
container.style.width = 0;
container.style.height = 0;
container.style.display = 'flex';
document.body.appendChild(container);
//"url(#mygrandient2)"
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>axes</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
_view.plottingPanel.getAxisX().setPosition([0,0.272]);
_view.plottingPanel.getTitleX().setPosition([0.95,0.2]);

_view.plottingPanel.getAxisY().setPosition([0.302,0]);
_view.plottingPanel.getTitleY().setPosition([0.35,0.9]);

//_view.plottingPanel.getAxisX().setPosition([0,0.409]);
//_view.plottingPanel.getTitleX().setPosition([0.95,0.5]);

//_view.plottingPanel.getAxisY().setPosition([0.33,0]);
//_view.plottingPanel.getTitleY().setPosition([0.4,0.9]);

//old
//_view.plottingPanel.getAxisX().setPosition([0,0.137]);
//_view.plottingPanel.getTitleX().setPosition([0.95,0.2]);

//_view.plottingPanel.getAxisY().setPosition([0.288,0]);
//_view.plottingPanel.getTitleY().setPosition([0.35,0.9]);

]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>Init Page 2</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if (_isMobile){
  //do nothing
  }
  
  else{
    // copy this into the initialization
// make the font bigger

_view.plottingPanel.getMessageDecoration("TL").getFont().setFontSize("1.5vw");
_view.plottingPanel.getMessageDecoration("TR").getFont().setFontSize("1.5vw");
_view.plottingPanel.getMessageDecoration("BL").getFont().setFontSize("1.5vw");
_view.plottingPanel.getMessageDecoration("BR").getFont().setFontSize("1.5vw");

    }
    
    if (ninetyminustheta==45 ){
 _view.comboBox2.setSelectedOptions(["angle of release = 45°"]);
 }


]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
<Osejs.Model.Evolution.Page>
<Type>ODE_EDITOR</Type>
<Name>Evol Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PreliminaryCode>
<Comment><![CDATA[Code to be executed before rate equations are evaluated]]></Comment>
<Code><![CDATA[

]]></Code>
</PreliminaryCode>
<ErrorHandling>
</ErrorHandling>
<DelayInitialCondition>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[

]]></Code>
</DelayInitialCondition>
<Discontinuities>
</Discontinuities>
<Events>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>Event</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
 if ((vy<0)&&(_view.comboBox.getProperty("SelectedOptions")=="free_fall_and_rebounce"||_view.comboBox.getProperty("SelectedOptions")=="free_fall_with_vx=2_and_rebounce")) return yground-(y-sizey/2); // bounced at x=xmax
// else if(v<0)return xbumpertop-(x-carSize/2); // bounced at x=xmin or x+carSize/2
//return 1.0; // time will stop if use return 1.0
return 0; // time continues
]]></ZeroCondition>
<Action><![CDATA[
if (vy<0){ 
_view.audio.play();
//Toolkit.getDefaultToolkit().beep();
vy=-e*vy;
}

// sound effect added despite the energy conservation
//Toolkit.getDefaultToolkit().beep(); // taken from http://www.compadre.org/OSP/items/detail.cfm?ID=8385&Attached=1 
//Ceiling Bounce Model written by Wolfgang Christian 

]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>leftx</Name>
<Active>false</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
//return x-xmin;
return x-_view.plottingPanel.getRealWorldXMin();

]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit left minimum and paused";


]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>rightx</Name>
<Active>false</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
//return x-xmax;
return x-_view.plottingPanel.getRealWorldXMax();

]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit right maximum and paused";


]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>topy</Name>
<Active>false</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
//return y-ymax;
return y-_view.plottingPanel.getRealWorldYMax();

]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit top maximum and paused";


]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>bottomy 2</Name>
<Active>false</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
return y-ys0;
]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "reach launch level and paused";


]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>hittinggroundwhent=0</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
if (t<dt){ // assume it takes some time to reach target ground
  return y-yground2+0.0001;
}
]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit ground and paused";
maxrange = x.toFixed(2);



]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>hittingground</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>POSITIVE_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
if (t>0){ // assume it takes some time to reach target ground
  return y-yground2-0.0001;
}
]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit ground and paused";
maxrange = x.toFixed(2);



]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>maxheight</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
return vy-0;
]]></ZeroCondition>
<Action><![CDATA[
maxheight=y.toFixed(2);
]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>angleword</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
var distance = 5;
return Math.sqrt(x*x+y*y)-distance;

]]></ZeroCondition>
<Action><![CDATA[
counter=counter+1;
anglewordx[counter] = x;
anglewordy[counter] = y;
angleword[counter] = (ninetyminustheta).toFixed(0)+ " °";

]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>bottomy</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
//return y-ymin;
return y-_view.plottingPanel.getRealWorldYMin();

]]></ZeroCondition>
<Action><![CDATA[
_pause();
textt = "hit bottom minimum and paused";


]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>shadows</Name>
<Active>false</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[
//return counter+1-t;
return counter/2+0.5-t;

]]></ZeroCondition>
<Action><![CDATA[
// draw shadow every 1 second
 
//if (Math.ceil(t) > prev &&t>(0)) {
  shadowVis[counter] = true;
  xShadows[counter] = x;
  yShadows[counter] = y;
  tShadows[counter]=t;
  vShadows[counter]=vy;
  vxShadows[counter]=vx;
  
      aShadows[counter]=ay-k*vy;
      axShadows[counter]=-k*vx;
 
 // xMarkVert[counter] = x;
 // yMarkVert[counter] = y - 0.15;
 // xMarkHoriz[counter] = x - 0.15;
//  yMarkHoriz[counter] = y;
  
 //prev = Math.ceil(t);
  counter++;
//}
]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
</Events>
<IndependentVariable>t</IndependentVariable>
<Increment>dt</Increment>
<Rate state="x">vx</Rate>
<Rate state="vx">ax</Rate>
<Rate state="y">vy</Rate>
<Rate state="vy">ay</Rate>
<Method>RungeKutta</Method>
<Tolerance></Tolerance>
<InternalStep></InternalStep>
<MemoryLength></MemoryLength>
<MaximumStep></MaximumStep>
<MaximumNumberOfSteps>10000</MaximumNumberOfSteps>
<AbsoluteTolerance>0.00001</AbsoluteTolerance>
<RelativeTolerance></RelativeTolerance>
<EstimateFirstStep>false</EstimateFirstStep>
<AccelerationIndependentOfVelocity>false</AccelerationIndependentOfVelocity>
<ForceSynchronization>false</ForceSynchronization>
<UseBestInterpolation>false</UseBestInterpolation>
<EventMaximumStep></EventMaximumStep>
<DelayList><![CDATA[]]></DelayList>
<DelayMaximum><![CDATA[]]></DelayMaximum>
<DelayAddDiscont><![CDATA[]]></DelayAddDiscont>
<DirectIncidenceMatrix><![CDATA[]]></DirectIncidenceMatrix>
<Comment><![CDATA[]]></Comment>
</Content>
</Osejs.Model.Evolution.Page>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>velocity</Name>
<Active>false</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
  if ((  vy - vys)===0){
  
  textv = "velocity is unchanged";
  }
else if ((  vy - vys)>0){
  
  textv = "velocity is increasing";
  }
else if ((  vy - vys)<0) {
  
  textv = "velocity is decreasing";
  }
else {
  textv = "undefined";
  }
  
  
   if ((  Math.abs(vy) - Math.abs(vys))===0){
  
  texts = "speed is unchanged";
  }
  
  else if ((  Math.abs(vy) - Math.abs(vys))>0){
  
  texts = "speed is increasing";
  }
 else if ((  Math.abs(vy) - Math.abs(vys))<0){
  
  texts = "speed is decreasing";
  }
 

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>matchdrag</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
vxdrag=vx*0.2;
vydrag=vy*0.2;

//if (x>xmax){
//  xmax=xmax+10;
//  }
//  if (y>ymax){
//  ymax=ymax+10;
 // }
 // sizex = xmax-xmin;

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>FixRel Page 3</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
vymax =Math.max(vy,vymax);
vymin = Math.min(vy,vymin);
if ((xvst===true)){
  ymaxplot = ymax;
  yminplot = ymin;
  
  }
  else if ((xvst===false&&vvst===true)){
  ymaxplot = Math.max(vy,vymax);
  yminplot = Math.min(vy,vymin);
  
  }
  else if ((xvst===false&&vvst===false&&avst===true)){
  ymaxplot = Math.max(ay,0);
  yminplot = Math.min(-15,0);
  
  }
  
  

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>FixRel Page 2</Name>
<Active>false</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if(( _view.comboBox.getProperty("SelectedOptions")=="free_fall_and_rebounce"||_view.comboBox.getProperty("SelectedOptions")=="free_fall_with_vx=2_and_rebounce")&&(yground>(y-sizey/2)+1.e-3)){
y = yground+sizey/2;
  vy=0;
_pause(); // stop only if xbumperbottom=0
}

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>FixRel Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
aym=(vy - vys)/dt; // accel y direction measured
vys = vy; // technique to stored vy
rangex=xmax-xmin;
rangey=ymax-ymin;
//sizex = rangex/20;
//sizey = rangey/20;

//energy
v=Math.sqrt(vx*vx+vy*vy);
ke=0.5*m*v*v;
pe=-m*ay*(y-yo);
te = ke+pe;
//angle
theta = Math.atan2(vy,vx);
thetadeg = theta*180/pi;






    

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>worldview</Name>
<Active>false</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if ((xvst===false)&&(vvst===false)&&(avst===false)){
 graph=false; 
 Width1="100%";
 Width2="0%";
 Width3="0%";
  disabledworld=true;
  }
  else if (((xvst===true)||(vvst===true)||(avst===true))&&(world===true)){
    graph=true;
     Width1="50%";
 Width2="50%";
  Width3="0%";
 disabledworld=false;
    }
    else if (((xvst===true)||(vvst===true)||(avst===true))&&(world===true)&&(graph3===true)){
    graph3=true;
     Width1="50%";
Width2="0%";
Width3="50%";
 disabledworld=false;
    }

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>model</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
xmodel=_view.fField.evaluate({ t : t, x : xmodel }); 
ymodel=_view.fField2.evaluate({ t : t, y : ymodel }); 

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>axes</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if (_model.isPlaying()==true) { //NEED this for conflict with initialize page values

_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());

}

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>energy</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
ke = 0.5*m*v*v;
pe = m*(-ay)*y;
te = ke+pe;

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>text</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
if (ninetyminustheta<0.5&&ninetyminustheta>-0.01){
hint = "horizontal trajectory";
}
else if (ninetyminustheta==90){
hint = "vertical trajectory";
}
else if (ninetyminustheta>=1&&ninetyminustheta<90){
 hint = "oblique trajectory"; 
  }

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>Lib Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
//https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
// does not work for iOS 
/*jslint browser:true */
function toggleFullScreen() {
  if (!document.fullscreenElement &&    // alternative standard method
      !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement ) {  // current working methods
    if (document.documentElement.requestFullscreen) {
      document.documentElement.requestFullscreen();
    } else if (document.documentElement.msRequestFullscreen) {
      document.documentElement.msRequestFullscreen();
    } else if (document.documentElement.mozRequestFullScreen) {
      document.documentElement.mozRequestFullScreen();
    } else if (document.documentElement.webkitRequestFullscreen) {
      document.documentElement.webkitRequestFullscreen();
    }
  } else {
    if (document.exitFullscreen) {
      document.exitFullscreen();
    } else if (document.msExitFullscreen) {
      document.msExitFullscreen();
    } else if (document.mozCancelFullScreen) {
      document.mozCancelFullScreen();
    } else if (document.webkitExitFullscreen) {
      document.webkitExitFullscreen();
    }
  }
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>userreset</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
function userreset () {
  _view.trail.newSegment();

memorycolor=memorycolor+1;
t=0;
x = xs0;
y =ys0;

vx = vxs0;
vy =vys0;

maxheight="?";
maxrange="?";

}

]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>changeOrientation</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
// code to be copied to EJSS source code under Custom and used in drawingPanel3D and plottingPanel2D
// address the problem is height difference is iOS app , epub, and Firefox
// user need to change only k and kepub
// copy %changeOrientation()% into the Height Field of drawingPanel3D and plottingPanel2D

// _view.plottingPanel.getGraphics().setHeight(changeOrientation(0.85));

function changeOrientation(kheight) {
 
var k =0.85 ; // k control height 1 is for full screen, 0.9 shorten etc
var kapple =kheight // control apple app height
var kepub =0.90 ;
// check platform for Apps
try { // allow code to run in Student Learning Space 
  var iOSapp =  (typeof parent.device != 'undefined' && parent.device.platform == "iOS");
  var Androidapp = (typeof parent.device != 'undefined' && parent.device.platform == "Android");
} catch(e) {
  var iOSapp = false;
  var Androidapp = false;
}
// check platform for web browsers
var iOS =/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var iPad =/iPad/.test(navigator.userAgent) && !window.MSStream;
var iPhone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var Android= /Android|android/i.test(navigator.userAgent);

//navigator
var Firefox = navigator.userAgent.indexOf("Firefox") != -1;
 
switch (window.orientation) { // using window.orientation as deciding factor
  case 0:
  case 180:
    this.screenOrientation = 'portrait';
    if (iOSapp){ // does not seems to work
      
      return window.screen.height*kapple;  //0.1 for app and 0.1 for nonfullscreenapp  
    
    }
    else if (_isEPub){ // does not seems to work
      //   return Math.max(window.screen.width,window.screen.height)*0.9;
      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  
      // return window.screen.height;
      //  return window.innerHeight;
      // return document.documentElement.clientHeight;
    }
   
    else {
     return window.innerHeight*kheight;
      //return 100*k+"vh";
    }
    break;
  case 90:
  case -90:
    this.screenOrientation = 'landscape';
 
    if (iOSapp){ // App
      return window.screen.width*kapple;  
      // return window.screen.height;
      //  return window.innerHeight;
      //  return document.documentElement.clientHeight;
    }
    else if (_isEPub){ // does not seems to work
      //   return Math.max(window.screen.width,window.screen.height)*0.9;
      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  
      // return window.screen.height;
      //  return window.innerHeight;
      // return document.documentElement.clientHeight;
    }
   
    else {
      return window.innerHeight*kheight;
      //return 100*k+"vh"; // safari produce error
      }
    break;
  default:
    this.screenOrientation = 'unknown';
    //       return (iPad)?""+(window.screen.width+window.screen.height)*0.4:((iPhone)?""+window.screen.width:_view._format(window.innerHeight*0.9,"0"));
     if (Firefox){
      return window.innerHeight*k;// number as of 20180831 Firefox does not support vh yet so need a separate line to handle
      }
   //   else if (iOS&&(window.orientation==0)||(window.orientation==180)){
   //   return  window.screen.height*k;// number as of 20180831 Firefox does not support vh yet so need a separate line to handle
   //   }
    //  else if (iOS&&(window.orientation==90)||(window.orientation==-90)){
   //   return  window.screen.width*k;// number as of 20180831 Firefox does not support vh yet so need a separate line to handle
   //   }
      else {
      //alert();
      // return 100*k+"%"; // work on fullscreen works in EJSS6.0beta
        //  works in EjsS_5.3_180131
      //return  window.innerHeight*kheight; // work on panel 
      // take note the panel that contains the plottingPanel needs to be 100% in Height to maximize the view
      return 100*k+"vh";
       // 100% does not work on iOS after clicking reset it lengthens
}

}
 
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
</Osejs.Model.Library>
<Osejs.Model.Elements>
</Osejs.Model.Elements>
</Osejs.Model>
<Osejs.HtmlView>
<Osejs.HtmlView.Page>
<Type>HTML_VIEW_EDITOR</Type>
<Name>HtmlView Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<RootProperties>
</RootProperties>
<Tree>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[fullscreen]]></Name>
<Property name="Height"><![CDATA[Height]]></Property>
<Property name="Width"><![CDATA[Width]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[bottomPanel]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
<Property name="Font"><![CDATA[fontb]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[comboBox2]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Options"><![CDATA[["angle of release = 45°","","angle of release = 0°","angle of release = 15°","angle of release = 30°","angle of release = 45°","angle of release = 60°","angle of release = 75°","angle of release = 90°"]]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.comboBox2.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 
//["horizontal trajectory","oblique trajectory","vertical trajectory"]
userreset (); // to help make combo reset to ease usability
//["angle of release = 0°","angle of release = 15°","angle of release = 30°","angle of release = 45°","angle of release = 60°","angle of release = 75°","angle of release = 90°"]

if (  option=="angle of release = 0°"){
 ninetyminustheta=0;  
   }

else if (  option=="angle of release = 15°"){
  
  ninetyminustheta=15;
  
  }
 
else if (  option=="angle of release = 30°"){

 ninetyminustheta=30;
  }
  else if (  option=="angle of release = 45°"){

 ninetyminustheta=45;
  }
else if (  option=="angle of release = 60°"){

 ninetyminustheta=60;
  }
  else if (  option=="angle of release = 75°"){

 ninetyminustheta=75;
  }
  else if (  option=="angle of release = 90°"){

 ninetyminustheta=90;
  }
//y=0;
 //  xs0=0;
 // ys0=0;
 // yground2=0;
  
  
  //ninetyminustheta=Math.max(ninetyminustheta,1);
 // ninetyminustheta=Math.min(ninetyminustheta,89);
  
  
  //sync
  thetadegs= 90-ninetyminustheta;
thetadeg=thetadegs;
theta=thetadeg*pi/180;
thetas=theta;
vxs0=vx=v*Math.sin(theta);
vys0= vy=v*Math.cos(theta);

]]></Property>
<Property name="Width"><![CDATA["20vw"]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[angle3]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Display"><![CDATA["inline-block"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label332]]></Name>
<Parent><![CDATA[angle3]]></Parent>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["angle of launch "]]></Property>
<Property name="Foreground"><![CDATA["White"]]></Property>
<Property name="Text"><![CDATA["angle of release ϑ = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[ninetyminustheta]]></Name>
<Parent><![CDATA[angle3]]></Parent>
<Property name="Format"><![CDATA["00"]]></Property>
<Property name="Value"><![CDATA[ninetyminustheta]]></Property>
<Property name="OnChange"><![CDATA[userreset ();
//thetas is wrt to vertical so need to transform
ninetyminustheta=Math.max(0.001,ninetyminustheta);
ninetyminustheta=Math.min(90,ninetyminustheta);
thetadegs= 90-ninetyminustheta;



thetadeg=thetadegs;
theta=thetadeg*pi/180;
thetas=theta;
vxs0=vx=v*Math.sin(theta);
vys0= vy=v*Math.cos(theta);]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider2322]]></Name>
<Parent><![CDATA[angle3]]></Parent>
<Property name="Maximum"><![CDATA[90]]></Property>
<Property name="Minimum"><![CDATA[0]]></Property>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["angle of launch in degrees"]]></Property>
<Property name="Value"><![CDATA[ninetyminustheta]]></Property>
<Property name="OnChange"><![CDATA[ninetyminustheta=Math.max(0.001,ninetyminustheta);
ninetyminustheta=Math.min(90,ninetyminustheta);
thetadegs= 90-ninetyminustheta;



thetadeg=thetadegs;
theta=thetadeg*pi/180;
thetas=theta;
vxs0=vx=v*Math.sin(theta);
vys0 =vy=v*Math.cos(theta);]]></Property>
<Property name="Step"><![CDATA[5]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field232]]></Name>
<Parent><![CDATA[angle3]]></Parent>
<Property name="Format"><![CDATA["00"]]></Property>
<Property name="Value"><![CDATA[thetadegs]]></Property>
<Property name="OnChange"><![CDATA[//thetas is wrt to vertical so need to transform



thetadegs=Math.max(0,thetadegs);
thetadegs=Math.min(90,thetadegs);
thetadeg=thetadegs;
theta=thetadeg*pi/180;
vxs0=vx=v*Math.sin(theta);
vys0 =vy=v*Math.cos(theta);]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider232]]></Name>
<Parent><![CDATA[angle3]]></Parent>
<Property name="Maximum"><![CDATA[90]]></Property>
<Property name="Minimum"><![CDATA[0]]></Property>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["angle of launch in degrees"]]></Property>
<Property name="Value"><![CDATA[thetadegs]]></Property>
<Property name="OnChange"><![CDATA[//userreset ();
thetadeg=thetadegs;
ninetyminustheta = 90-thetadeg;
theta=thetadeg*pi/180;
thetas=theta; //sync slider
vxs0=vx=v*Math.sin(theta);
vys0 =vy=v*Math.cos(theta);
]]></Property>
<Property name="Step"><![CDATA[10]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[v]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label3222]]></Name>
<Parent><![CDATA[v]]></Parent>
<Property name="Background"><![CDATA["Magenta"]]></Property>
<Property name="Tooltip"><![CDATA["magnitude of velocity "]]></Property>
<Property name="Text"><![CDATA[" |v| = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field2222]]></Name>
<Parent><![CDATA[v]]></Parent>
<Property name="Format"><![CDATA["00.0"]]></Property>
<Property name="Value"><![CDATA[vs]]></Property>
<Property name="OnChange"><![CDATA[userreset ();
v=vs;
vxs0=vx=v*Math.sin(theta);
vys0 =vy=v*Math.cos(theta);]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider2222]]></Name>
<Parent><![CDATA[v]]></Parent>
<Property name="Maximum"><![CDATA[20]]></Property>
<Property name="Minimum"><![CDATA[1]]></Property>
<Property name="Background"><![CDATA["Magenta"]]></Property>
<Property name="Value"><![CDATA[vs]]></Property>
<Property name="OnChange"><![CDATA[userreset ();
v=vs;
vxs0=vx=v*Math.sin(theta);
vys0 =vy=v*Math.cos(theta);]]></Property>
<Property name="Step"><![CDATA[1]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[y]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label32223]]></Name>
<Parent><![CDATA[y]]></Parent>
<Property name="Background"><![CDATA["Orange"]]></Property>
<Property name="Tooltip"><![CDATA["height of projectile "]]></Property>
<Property name="Text"><![CDATA[" y = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field22223]]></Name>
<Parent><![CDATA[y]]></Parent>
<Property name="Format"><![CDATA["00"]]></Property>
<Property name="Value"><![CDATA[ys0]]></Property>
<Property name="OnChange"><![CDATA[userreset ();
ys0=Math.round(ys0);
y=ys0;

]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider22223]]></Name>
<Parent><![CDATA[y]]></Parent>
<Property name="Maximum"><![CDATA[10]]></Property>
<Property name="Minimum"><![CDATA[0]]></Property>
<Property name="Background"><![CDATA["Orange"]]></Property>
<Property name="Value"><![CDATA[ys0]]></Property>
<Property name="OnChange"><![CDATA[userreset ();
y=ys0;
]]></Property>
<Property name="Step"><![CDATA[1]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA["7vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[comboBox]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Options"><![CDATA[["show s","hide position","show v","hide velocity","show a","hide acceleration","show E","hide energies"]]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.comboBox.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 
if ( option=="user defined"){
  
  }
  else if ( option=="uniform_motion"){ // removed
 t= 0;
 x=0;
 y=0;
  vx=0;
  vy=2;
  ay=0;
  }
  else if ( option=="simple_acceleration"){
 t= 0;
x=0;
y=0;
   vx=0;
  vy=0;
  ay=-9.81;
  }
  else if ( option=="simple_deceleration"){
  t= 0;
 x=0;
 y=0;
   vx=0;
  vy=13;
  ay=-9.81;
  }
   else if ( option=="toss out 0°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=0;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
else if ( option=="toss out 30°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=30;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="toss out 15°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=10;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="toss out 45°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=45;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="toss out 60°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=60;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="toss out 75°"){
  t = 0;
  x=xs0;
 y=ys0;
  thetadeg=75;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="toss out 90°"){
  t = 0;
 x=xs0;
 y=ys0;
  thetadeg=90;
  theta = thetadeg*pi/180;
   vx=15*Math.cos(theta);
  vy=15*Math.sin(theta);
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
else if ( option=="toss_up"){
  t = 0;
 x=0;
 y=0;
   vx=0;
  vy=15;
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="free_fall"){
  t = 0;
 x=0;
 y=0;
   vx=0;
  vy=0;
  ay=-9.81;
  }
   else if ( option=="free_fall_and_rebounce"){
 t = 0;
 x=0;
 y=0;
 vx=0;
  vy=0;
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  else if ( option=="free_fall_with_vx=2_and_rebounce"){
 t = 0;
x=0;
y=0;
 vx=2;
  vy=0;
  ay=-9.81;
   xs=x; //store values of x and y
  ys=y;
  vxs0=vx;
  vys0=vy;
  thetas=theta;
  thetas0=theta;
  thetadegs=thetadeg;
  }
  
//  graph=graphs;


    if ( option=="show s"){
 shows=true;
 showtextposition=true;
  }
  else if ( option=="hide position"){
 shows=false;
  showtextposition=false;
  }
   else if ( option=="show v"){
     showv=true;
     }
     else if ( option=="hide velocity"){
     showv=false;
     }
     else if ( option=="show a"){
     showa=true;
     }
     else if ( option=="hide acceleration"){
     showa=false;
     }
      else if ( option=="show E"){
     showe=true;
     }
     else if ( option=="hide energies"){
     showe=false;
     }
  
  
 
]]></Property>
<Property name="Font"><![CDATA[fontb]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.TwoStateButton</Type>
<Name><![CDATA[runPauseButton]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="OffClick"><![CDATA[textt="paused";
_pause();]]></Property>
<Property name="TextOn"><![CDATA["►Play"]]></Property>
<Property name="State"><![CDATA[_isPaused]]></Property>
<Property name="TextOff"><![CDATA["❚❚Pause"]]></Property>
<Property name="Disabled"><![CDATA[_isPaused&&t>0]]></Property>
<Property name="OnClick"><![CDATA[_play();
textt="playing";]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[stepButton]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Text"><![CDATA["❚►Step"]]></Property>
<Property name="Disabled"><![CDATA[_isPaused&&t>0]]></Property>
<Property name="OnClick"><![CDATA[%_step%]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[initialize]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Tooltip"><![CDATA["Store Data"]]></Property>
<Property name="Text"><![CDATA["↻Reset"]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
<Property name="OnClick"><![CDATA[userreset();]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[resetButton]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Tooltip"><![CDATA["Resets the simulation"]]></Property>
<Property name="Text"><![CDATA["↻"]]></Property>
<Property name="OnClick"><![CDATA[_reset();]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Audio</Type>
<Name><![CDATA[audio]]></Name>
<Parent><![CDATA[bottomPanel]]></Parent>
<Property name="Controls"><![CDATA[false]]></Property>
<Property name="AudioUrl"><![CDATA["./projectile/toy_plastic_inflatable_ball_bounce_on_floor.mp3"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[plotsPanel]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.PlottingPanel</Type>
<Name><![CDATA[plottingPanel]]></Name>
<Parent><![CDATA[plotsPanel]]></Parent>
<Property name="Gutters"><![CDATA[[0,0,0,0]]]></Property>
<Property name="YScalePrecision"><![CDATA[0]]></Property>
<Property name="XFixedTick"><![CDATA[0]]></Property>
<Property name="OnDoubleClick"><![CDATA[toggleFullScreen()]]></Property>
<Property name="OnResize"><![CDATA[_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());
]]></Property>
<Property name="YFixedTick"><![CDATA[0]]></Property>
<Property name="OnRelease"><![CDATA[_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());
]]></Property>
<Property name="TRMessage"><![CDATA[%hint%]]></Property>
<Property name="XTickStep"><![CDATA[_isMobile?10:5]]></Property>
<Property name="YTickStep"><![CDATA[_isMobile?10:5]]></Property>
<Property name="XAutoTicks"><![CDATA[false]]></Property>
<Property name="Height"><![CDATA[%changeOrientation()%]]></Property>
<Property name="OnOrientationChange"><![CDATA[_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());
]]></Property>
<Property name="GraphicsMode"><![CDATA["SVG"]]></Property>
<Property name="Width"><![CDATA[Width1]]></Property>
<Property name="TLMessage"><![CDATA[%textt%]]></Property>
<Property name="Background"><![CDATA["url(#mygrandient2)"]]></Property>
<Property name="Enabled"><![CDATA[true]]></Property>
<Property name="Title"><![CDATA["Projectile Motion Model m=1kg" ]]></Property>
<Property name="SquareAspect"><![CDATA[true]]></Property>
<Property name="MaximumY"><![CDATA[ymax]]></Property>
<Property name="OnDrag"><![CDATA[_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());
]]></Property>
<Property name="MaximumX"><![CDATA[xmax]]></Property>
<Property name="EnabledDragging"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="YAutoTicks"><![CDATA[false]]></Property>
<Property name="MinimumX"><![CDATA[xmin]]></Property>
<Property name="MinimumY"><![CDATA[ymin]]></Property>
<Property name="AutoScaleY"><![CDATA[false]]></Property>
<Property name="OnZoom"><![CDATA[_view.plottingPanel.getAxisX().setAbsoluteY(_view.plottingPanel.getGrid().getFixedTickY());
_view.plottingPanel.getAxisY().setAbsoluteX(_view.plottingPanel.getGrid().getFixedTickX());
]]></Property>
<Property name="MarginX"><![CDATA[10]]></Property>
<Property name="AutoScaleX"><![CDATA[false]]></Property>
<Property name="MarginY"><![CDATA[10]]></Property>
<Property name="XScalePrecision"><![CDATA[0]]></Property>
<Property name="BRMessage"><![CDATA["Relative projectile height="+(ys0-yground2).toFixed(1)+ " m"+"\nMaximum height="+maxheight+ " m "+"\nMaximum range = "+maxrange+" m"+"\n  t = "+_view._format(t,"0.00")+ "s"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[group]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[xs0]]></Property>
<Property name="Y"><![CDATA[ys0]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shadow]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="FillColor"><![CDATA["url(#mygrandient1)"]]></Property>
<Property name="SizeX"><![CDATA[15]]></Property>
<Property name="RelativePosition"><![CDATA["NORTH_EAST"]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[yground]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[groundatmanlevelgoupanddownwithman]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="FillColor"><![CDATA["url(#mygrandient1)"]]></Property>
<Property name="SizeX"><![CDATA[-(_view.plottingPanel.getRealWorldXMin())*1.1]]></Property>
<Property name="RelativePosition"><![CDATA["NORTH_EAST"]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[yground]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[man]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="SizeX"><![CDATA[3]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH_EAST"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="ImageUrl"><![CDATA["./projectile/zero.png"]]></Property>
<Property name="Y"><![CDATA[-sizey/2]]></Property>
<Property name="SizeY"><![CDATA[3]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[text2]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="RelativePosition"><![CDATA["EAST"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[1]]></Property>
<Property name="Text"><![CDATA["("+xs0.toFixed(0)+","+ys0.toFixed(0)+")"]]></Property>
<Property name="Visibility"><![CDATA[shows]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[groundtohitRightplatform]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["url(#mygrandient1)"]]></Property>
<Property name="SizeX"><![CDATA[50]]></Property>
<Property name="RelativePosition"><![CDATA["NORTH_WEST"]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[-vxs0*vys0/ay]]></Property>
<Property name="Y"><![CDATA[yground2-sizey/2]]></Property>
<Property name="SizeY"><![CDATA[rangey]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[groundtohitLeft]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["url(#mygrandient1)"]]></Property>
<Property name="SizeX"><![CDATA[50]]></Property>
<Property name="RelativePosition"><![CDATA["NORTH_WEST"]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[-15]]></Property>
<Property name="Y"><![CDATA[-sizey/2]]></Property>
<Property name="SizeY"><![CDATA[rangey]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ShapeSet2D</Type>
<Name><![CDATA[shadowsx]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="ShapeType"><![CDATA["NONE"]]></Property>
<Property name="Attributes"><![CDATA[ { "stroke-dasharray":"8 8 8 8" } ]]></Property>
<Property name="DrawFill"><![CDATA[false]]></Property>
<Property name="NumberOfElements"><![CDATA[numShadows]]></Property>
<Property name="SizeX"><![CDATA[10]]></Property>
<Property name="LineColor"><![CDATA[memorycolory]]></Property>
<Property name="X"><![CDATA[xShadows]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="DrawLines"><![CDATA[true]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="SizeY"><![CDATA[10]]></Property>
<Property name="LineWidth"><![CDATA[1]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ShapeSet2D</Type>
<Name><![CDATA[shadowsy]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="NumberOfElements"><![CDATA[numShadows]]></Property>
<Property name="SizeX"><![CDATA[10]]></Property>
<Property name="ShapeType"><![CDATA["NONE"]]></Property>
<Property name="LineColor"><![CDATA[memorycolory]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[yShadows]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="DrawLines"><![CDATA[true]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="SizeY"><![CDATA[10]]></Property>
<Property name="LineWidth"><![CDATA[1]]></Property>
<Property name="DrawFill"><![CDATA[false]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ShapeSet2D</Type>
<Name><![CDATA[shadows]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="NumberOfElements"><![CDATA[numShadows]]></Property>
<Property name="SizeX"><![CDATA[10]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="LineColor"><![CDATA[memorycolory]]></Property>
<Property name="X"><![CDATA[xShadows]]></Property>
<Property name="Y"><![CDATA[yShadows]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="DrawLines"><![CDATA[true]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="SizeY"><![CDATA[10]]></Property>
<Property name="LineWidth"><![CDATA[2]]></Property>
<Property name="DrawFill"><![CDATA[false]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[vy]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[0]]></Property>
<Property name="LineColor"><![CDATA["Magenta"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Attributes"><![CDATA[{ "stroke-dasharray":"8 8 8 8" } ]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="SizeY"><![CDATA[vy*0.2]]></Property>
<Property name="LineWidth"><![CDATA[1]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[vx]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[vx*0.2]]></Property>
<Property name="LineColor"><![CDATA["Magenta"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Attributes"><![CDATA[{ "stroke-dasharray":"8 8 8 8" } ]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="SizeY"><![CDATA[0]]></Property>
<Property name="LineWidth"><![CDATA[1]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[v2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[vx*0.2]]></Property>
<Property name="LineColor"><![CDATA["Magenta"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="SizeY"><![CDATA[vy*0.2]]></Property>
<Property name="LineWidth"><![CDATA[2]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[a]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="MarkEnd"><![CDATA["TRIANGLE"]]></Property>
<Property name="MarkMiddle"><![CDATA["TRIANGLE"]]></Property>
<Property name="SizeX"><![CDATA[ax*0.2]]></Property>
<Property name="LineColor"><![CDATA["Red"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="Visibility"><![CDATA[showa]]></Property>
<Property name="SizeY"><![CDATA[ay*0.2]]></Property>
<Property name="LineWidth"><![CDATA[2]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[ay2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="RelativePosition"><![CDATA["SOUTH_WEST"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Y"><![CDATA[y+ay*0.2]]></Property>
<Property name="Text"><![CDATA["ay ="+ay.toFixed(2) + " m/s²"]]></Property>
<Property name="Visibility"><![CDATA[showa]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[cannon1]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="Transformation"><![CDATA[thetas]]></Property>
<Property name="FillColor"><![CDATA["Cyan"]]></Property>
<Property name="CornerRadius"><![CDATA[30]]></Property>
<Property name="SizeX"><![CDATA[sizex*2]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH_WEST"]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[xs0]]></Property>
<Property name="Y"><![CDATA[ys0]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="SizeY"><![CDATA[sizex/8]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[cannon_arrow]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="MarkEnd"><![CDATA["TRIANGLE"]]></Property>
<Property name="Transformation"><![CDATA[ninetyminustheta*pi/180]]></Property>
<Property name="SizeX"><![CDATA[sizex*2]]></Property>
<Property name="X"><![CDATA[xs0]]></Property>
<Property name="LineColor"><![CDATA["Magenta"]]></Property>
<Property name="Y"><![CDATA[ys0]]></Property>
<Property name="SizeY"><![CDATA[0]]></Property>
<Property name="LineWidth"><![CDATA[5]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[permanenthunterpos]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[xs0]]></Property>
<Property name="Y"><![CDATA[ys0]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[angle]]></Name>
<Parent><![CDATA[permanenthunterpos]]></Parent>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[v223]]></Name>
<Parent><![CDATA[angle]]></Parent>
<Property name="RelativePosition"><![CDATA["WEST"]]></Property>
<Property name="X"><![CDATA[Math.cos(thetas0/2)]]></Property>
<Property name="Y"><![CDATA[Math.sin(thetas0/2)]]></Property>
<Property name="Text"><![CDATA["launch angle ϑ₀ = "+_view._format(ninetyminustheta,"0")+ "° "]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Polygon2D</Type>
<Name><![CDATA[angle2]]></Name>
<Parent><![CDATA[permanenthunterpos]]></Parent>
<Property name="PointsY"><![CDATA[[0,0,Math.sin(thetas0/8),Math.sin(thetas0/4),Math.sin(thetas0*3/8),Math.sin(thetas0/2),Math.sin(thetas0*5/8),Math.sin(thetas0*3/4),Math.sin(thetas0*7/8),Math.sin(thetas0)]]]></Property>
<Property name="FillColor"><![CDATA["rgba(255,175,175,0.5)"]]></Property>
<Property name="PointsX"><![CDATA[[0,1,Math.cos(thetas0/8),Math.cos(thetas0/4),Math.cos(thetas0*3/8),Math.cos(thetas0/2),Math.cos(thetas0*5/8),Math.cos(thetas0*3/4),Math.cos(thetas0*7/8),Math.cos(thetas0)]]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[positionball]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[group22]]></Name>
<Parent><![CDATA[positionball]]></Parent>
<Property name="X"><![CDATA[vx*0.2]]></Property>
<Property name="Y"><![CDATA[vy*0.2]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[v22]]></Name>
<Parent><![CDATA[group22]]></Parent>
<Property name="RelativePosition"><![CDATA["SOUTH_WEST"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="Text"><![CDATA["v ="+v.toFixed(2) + " m/s"]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[velocitydrag222]]></Name>
<Parent><![CDATA[positionball]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,255,255,0.0)"]]></Property>
<Property name="SizeX"><![CDATA[20]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="LineColor"><![CDATA["Magenta"]]></Property>
<Property name="X"><![CDATA[vxdrag]]></Property>
<Property name="Y"><![CDATA[vydrag]]></Property>
<Property name="Visibility"><![CDATA[_isPaused&&x<0.1]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="OnDrag"><![CDATA[vx= vxdrag*5;
vy= vydrag*5;
vx = Math.round(vx);
vy = Math.round(vy);
v=Math.sqrt(vx*vx+vy*vy);
v = Math.min(v,20); //limit to 20

vs=v;
theta=Math.atan2(vy,vx);
thetas=theta;
thetas0=theta;
thetadeg = theta*180/pi;
thetadegs = thetadeg;
ninetyminustheta= thetadegs; //werid
]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Polygon2D</Type>
<Name><![CDATA[angle22]]></Name>
<Parent><![CDATA[positionball]]></Parent>
<Property name="PointsY"><![CDATA[[0,0,Math.sin(theta/8),Math.sin(theta/4),Math.sin(theta*3/8),Math.sin(theta/2),Math.sin(theta*5/8),Math.sin(theta*3/4),Math.sin(theta*7/8),Math.sin(theta)]]]></Property>
<Property name="FillColor"><![CDATA["rgba(255,200,0,0.5)"]]></Property>
<Property name="PointsX"><![CDATA[[0,1,Math.cos(theta/8),Math.cos(theta/4),Math.cos(theta*3/8),Math.cos(theta/2),Math.cos(theta*5/8),Math.cos(theta*3/4),Math.cos(theta*7/8),Math.cos(theta)]]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[position]]></Name>
<Parent><![CDATA[positionball]]></Parent>
<Property name="RelativePosition"><![CDATA["EAST"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[1]]></Property>
<Property name="Text"><![CDATA["("+x.toFixed(2)+","+y.toFixed(2)+")"]]></Property>
<Property name="Visibility"><![CDATA[(shows||showtextposition)&&t>0]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[vx3]]></Name>
<Parent><![CDATA[positionball]]></Parent>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[vx2]]></Name>
<Parent><![CDATA[vx3]]></Parent>
<Property name="RelativePosition"><![CDATA["SOUTH_WEST"]]></Property>
<Property name="X"><![CDATA[vx*0.2]]></Property>
<Property name="Y"><![CDATA[-1]]></Property>
<Property name="Text"><![CDATA["vx ="+vx.toFixed(2) + " m/s"]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[vy2]]></Name>
<Parent><![CDATA[vx3]]></Parent>
<Property name="RelativePosition"><![CDATA["SOUTH_EAST"]]></Property>
<Property name="X"><![CDATA[-1]]></Property>
<Property name="Y"><![CDATA[vy*0.2]]></Property>
<Property name="Text"><![CDATA["vy ="+vy.toFixed(2) + " m/s"]]></Property>
<Property name="Visibility"><![CDATA[showv]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[adrag2]]></Name>
<Parent><![CDATA[positionball]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,255,255,0.0)"]]></Property>
<Property name="SizeX"><![CDATA[20]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="LineColor"><![CDATA["Red"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[aydrag]]></Property>
<Property name="Visibility"><![CDATA[showa]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_Y"]]></Property>
<Property name="OnDrag"><![CDATA[ay = aydrag*5; // translate drag to actual ay
ay = Math.round(ay);
]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[acceleration]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="MarkEnd"><![CDATA["TRIANGLE"]]></Property>
<Property name="MarkMiddle"><![CDATA["TRIANGLE"]]></Property>
<Property name="SizeX"><![CDATA[0]]></Property>
<Property name="X"><![CDATA[-2]]></Property>
<Property name="LineColor"><![CDATA["Red"]]></Property>
<Property name="Y"><![CDATA[10]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="SizeY"><![CDATA[ay]]></Property>
<Property name="LineWidth"><![CDATA[2]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[ayslider]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[-2]]></Property>
<Property name="Y"><![CDATA[10]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[ay3]]></Name>
<Parent><![CDATA[ayslider]]></Parent>
<Property name="RelativePosition"><![CDATA["NORTH"]]></Property>
<Property name="Y"><![CDATA[ay]]></Property>
<Property name="Text"><![CDATA["ay ="+(ay).toFixed(2) + " m/s²"]]></Property>
<Property name="Visibility"><![CDATA[showa]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[adrag]]></Name>
<Parent><![CDATA[ayslider]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,255,255,0.0)"]]></Property>
<Property name="SizeX"><![CDATA[20]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="LineColor"><![CDATA["Red"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[ay]]></Property>
<Property name="Visibility"><![CDATA[showa]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_Y"]]></Property>
<Property name="OnDrag"><![CDATA[ay = Math.round(ay);]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shape]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[20]]></Property>
<Property name="ShapeType"><![CDATA["ELLIPSE"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="OnDrag"><![CDATA[x = xs= Math.floor(x);
y = ys =Math.floor(y);

if (x>=0) {
  x=xs=0;
  }
  if (y<=0){
    y=ys=0;
    }
  
]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[image]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[sizex]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="ImageUrl"><![CDATA["./projectile/240px-Soccer_ball.svg.png"]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="SizeY"><![CDATA[sizex]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_Y"]]></Property>
<Property name="OnDrag"><![CDATA[//x = xs0= Math.floor(_info.point[0]);
y = ys0 =Math.floor(_info.point[1]);

//x = xs0= Math.floor(x);
//y = ys0 =Math.floor(y);

if (x>=0) {
  x=xs0=0;
  }
  if (y<=0){
    y=ys0=0;
    }]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Trail2D</Type>
<Name><![CDATA[trail]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="Connected"><![CDATA[t>0]]></Property>
<Property name="LineColor"><![CDATA[%memorycolor%]]></Property>
<Property name="Attributes"><![CDATA[{ "stroke-dasharray":"8 8 8 8" } ]]></Property>
<Property name="InputX"><![CDATA[x]]></Property>
<Property name="InputY"><![CDATA[y]]></Property>
<Property name="LineWidth"><![CDATA[3]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Trace</Type>
<Name><![CDATA[trace2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="Active"><![CDATA[true]]></Property>
<Property name="Connected"><![CDATA[false]]></Property>
<Property name="Skip"><![CDATA[(1/dt)]]></Property>
<Property name="InputX"><![CDATA[0]]></Property>
<Property name="InputY"><![CDATA[y]]></Property>
<Property name="NoRepeat"><![CDATA[true]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[yground]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[rangex]]></Property>
<Property name="RelativePosition"><![CDATA["NORTH"]]></Property>
<Property name="ShapeType"><![CDATA["ROUND_RECTANGLE"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[yground]]></Property>
<Property name="Visibility"><![CDATA[(_view.comboBox.getProperty("SelectedOptions")=="free_fall_and_rebounce")||(selected[0]==="free_fall_with_vx=2_and_rebounce")]]></Property>
<Property name="SizeY"><![CDATA[sizey]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[model2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["Green"]]></Property>
<Property name="SizeX"><![CDATA[30]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="X"><![CDATA[xmodel]]></Property>
<Property name="Y"><![CDATA[ymodel]]></Property>
<Property name="Visibility"><![CDATA[showmodel]]></Property>
<Property name="SizeY"><![CDATA[30]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="OnDrag"><![CDATA[%_initialize%]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[energy]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[_view.plottingPanel.getRealWorldXMax()*0.9]]></Property>
<Property name="Y"><![CDATA[_view.plottingPanel.getRealWorldYMax()*0.9]]></Property>
<Property name="Visibility"><![CDATA[showe]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[text]]></Name>
<Parent><![CDATA[energy]]></Parent>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="Text"><![CDATA["KE="+ke.toFixed(2)+ " J"+"\nPE="+pe.toFixed(2)+ " J"+"\nTE="+te.toFixed(2)+ " J"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[test]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[20]]></Property>
<Property name="ShapeType"><![CDATA["RECTANGLE"]]></Property>
<Property name="X"><![CDATA[-vxs0*vys0/ay]]></Property>
<Property name="Y"><![CDATA[-0.5*vys0*vys0/ay-sizex/2]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.TextSet2D</Type>
<Name><![CDATA[angleword]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="NumberOfElements"><![CDATA[n]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH"]]></Property>
<Property name="X"><![CDATA[anglewordx]]></Property>
<Property name="Y"><![CDATA[anglewordy]]></Property>
<Property name="Text"><![CDATA[%angleword%]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[bottomPanel2]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
<Property name="Visibility"><![CDATA[!_isMobile]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label33]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["angle of launch "]]></Property>
<Property name="Foreground"><![CDATA["White"]]></Property>
<Property name="Text"><![CDATA[" ϑ = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.CheckBox</Type>
<Name><![CDATA[xvst2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Checked"><![CDATA[xvst]]></Property>
<Property name="OnCheckOff"><![CDATA[xvst=false;]]></Property>
<Property name="Background"><![CDATA[memorycolory]]></Property>
<Property name="OnCheckOn"><![CDATA[xvst=true;]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider23]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Maximum"><![CDATA[180]]></Property>
<Property name="Minimum"><![CDATA[-180]]></Property>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["angle of launch in degrees"]]></Property>
<Property name="Value"><![CDATA[thetadeg]]></Property>
<Property name="OnChange"><![CDATA[theta=thetadeg*pi/180;
thetas=theta; //sync slider
vx=v*Math.cos(theta);
vy=v*Math.sin(theta);
]]></Property>
<Property name="Step"><![CDATA[10]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA[(_isEPub)?"0":""]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field23]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Format"><![CDATA["00.0"]]></Property>
<Property name="Value"><![CDATA[thetadeg]]></Property>
<Property name="OnChange"><![CDATA[theta=thetadeg*pi/180;
vx=v*Math.sin(theta);
vy=v*Math.cos(theta);]]></Property>
<Property name="Width"><![CDATA[30]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label223]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Blue"]]></Property>
<Property name="Tooltip"><![CDATA["degrees"]]></Property>
<Property name="Foreground"><![CDATA["White"]]></Property>
<Property name="Text"><![CDATA[" ° "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label322]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Magenta"]]></Property>
<Property name="Tooltip"><![CDATA["magnitude of velocity "]]></Property>
<Property name="Text"><![CDATA[" |v| = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.CheckBox</Type>
<Name><![CDATA[vvst2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="OnCheckOff"><![CDATA[vvst=false;]]></Property>
<Property name="Checked"><![CDATA[vvst]]></Property>
<Property name="Background"><![CDATA[memorycolorv]]></Property>
<Property name="OnCheckOn"><![CDATA[vvst=true;]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Maximum"><![CDATA[5]]></Property>
<Property name="Minimum"><![CDATA[0]]></Property>
<Property name="Background"><![CDATA["Magenta"]]></Property>
<Property name="Value"><![CDATA[v]]></Property>
<Property name="OnChange"><![CDATA[vx=v*Math.cos(theta);
vy=v*Math.sin(theta);]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA[(_isEPub)?"0":""]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Format"><![CDATA["00.0"]]></Property>
<Property name="Value"><![CDATA[v]]></Property>
<Property name="OnChange"><![CDATA[vx=v*Math.cos(theta);
vy=v*Math.sin(theta);]]></Property>
<Property name="Width"><![CDATA[30]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label2222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Magenta"]]></Property>
<Property name="Tooltip"><![CDATA["metre per second"]]></Property>
<Property name="Text"><![CDATA[" m/s "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label32222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Red"]]></Property>
<Property name="Tooltip"><![CDATA["acceleration"]]></Property>
<Property name="Text"><![CDATA[" ay = "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.CheckBox</Type>
<Name><![CDATA[avst2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Checked"><![CDATA[avst]]></Property>
<Property name="OnCheckOff"><![CDATA[avst=false;]]></Property>
<Property name="Background"><![CDATA[memorycolora]]></Property>
<Property name="OnCheckOn"><![CDATA[avst=true;]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Slider</Type>
<Name><![CDATA[slider22222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Maximum"><![CDATA[10]]></Property>
<Property name="Minimum"><![CDATA[-10]]></Property>
<Property name="Background"><![CDATA["Red"]]></Property>
<Property name="Value"><![CDATA[ay]]></Property>
<Property name="Disabled"><![CDATA[_isPlaying]]></Property>
<Property name="Width"><![CDATA[(_isEPub)?"0":""]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ParsedField</Type>
<Name><![CDATA[field22222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Format"><![CDATA["00.0"]]></Property>
<Property name="Value"><![CDATA[ay]]></Property>
<Property name="Width"><![CDATA[30]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[label222222]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Red"]]></Property>
<Property name="Tooltip"><![CDATA["metre per second per second"]]></Property>
<Property name="Text"><![CDATA[" m/s^2 "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.CheckBox</Type>
<Name><![CDATA[model32]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="OnCheckOff"><![CDATA[showmodel=false;
]]></Property>
<Property name="Checked"><![CDATA[showmodel]]></Property>
<Property name="Background"><![CDATA["Cyan"]]></Property>
<Property name="Tooltip"><![CDATA["show model"]]></Property>
<Property name="OnCheckOn"><![CDATA[showmodel=true;

]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[model43]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Cyan"]]></Property>
<Property name="Tooltip"><![CDATA["key in expression like 1*t, t^2+t+0, etc"]]></Property>
<Property name="Text"><![CDATA["your model, X ="]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0","t","2*t","-t","-2*t","0.5*1*t^2","5*t + 0.5*-t^2","0.5*-t^2","-4*t + 0.5*t^2","show me"]]]></Property>
<Property name="Background"><![CDATA["Cyan"]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[showmodel=true;
functionY=selectedmodel+"";
xmodel=_view.fField.evaluate({ t : t, x : xmodel }); 
if (selectedmodel[0]==="show me"){
functionY= _view._format(xs,"0.00")+"+"+_view._format(vxs,"0.00")+"*t ";  
  }
graph3=true;
     Width1="50%";
 Width2="0%";
 Width3="50%";
 disabledworld=false;
disabled3=false;
]]></Property>
<Property name="SelectedOptions"><![CDATA[%selectedmodel%]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Function</Type>
<Name><![CDATA[fField]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Tooltip"><![CDATA["model"]]></Property>
<Property name="Value"><![CDATA[functionY]]></Property>
<Property name="OnChange"><![CDATA[%_update%]]></Property>
<Property name="Width"><![CDATA[200]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[model422]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA["Green"]]></Property>
<Property name="Tooltip"><![CDATA["key in expression like 1*t, t^2+t+0, etc"]]></Property>
<Property name="Text"><![CDATA["your model, Y ="]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models22]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0","t","2*t","-t","-2*t","0.5*1*t^2","5*t + 0.5*-t^2","0.5*-t^2","-4*t + 0.5*t^2","show me"]]]></Property>
<Property name="Background"><![CDATA["Green"]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[showmodel=true;
functionY2=selectedmodely+"";
ymodel=_view.fField2.evaluate({ t : t, y : ymodel }); 
if (selectedmodely[0]==="show me"){
functionY2= _view._format(ys,"0.00")+"+"+_view._format(vys,"0.00")+"*t + 0.5*" +_view._format(ay,"0.00")+"*t^2";  
  }
graph=true;
     Width1="50%";
 Width2="50%";
  Width3="0%";
 disabledworld=false;
disabled=false;
]]></Property>
<Property name="SelectedOptions"><![CDATA[%selectedmodely%]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Function</Type>
<Name><![CDATA[fField2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Tooltip"><![CDATA["model"]]></Property>
<Property name="Value"><![CDATA[functionY2]]></Property>
<Property name="OnChange"><![CDATA[%_update%]]></Property>
<Property name="Width"><![CDATA[200]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[html]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
<Property name="Html"><![CDATA[<h2>Projectile Motion</h2>
<p>Projectile motion refers to the motion of a projected object (e.g., a shot put, a javelin, a human body during pole-vaulting) acted on by forces of gravity.</p>
<p>For simplicity, air resistance is considered negligible in the following cases.</p>  
<p>In sports, once the projected object is released or thrown in the air, control of the object is no longer possible. Therefore, it is important to consider the following factors that affect the flight path of the projectile prior to its release:</p>
<h3>b. Angle of release</h3>
<p>Angle of release refers to the angle at which the projectile is thrown with respect to the positive x axis or horizontal level to the right. The direction of projection with respect to the horizontal determines the shape of flight. A higher projection angle will result in a higher maximum height achieved by the projectile. When the relative projection height is zero, for the projectile to achieve a greater maximum distance, the projection angle should be close to 45 degrees.</p>

<table border ="1">
  <tr>
    <th>Angle of Release</th>
    <th>maximum height</th> 
    <th>maximum distance</th> 
    <th>flight time</th>
  </tr>
  <tr>
    <td>0 </td>
    <td>0 m</td>
    <td>0 m</td>
    <td>0 s</td>
  </tr>
  <tr>
    <td>15</td>
    <td>0.68 m</td>
    <td>10.19 m</td>
    <td>0.75 s</td>
  </tr>
  <tr>
    <td>30</td>
    <td>2.55 m</td>
    <td>17.66 m</td>
    <td>1.44 s</td>
  </tr>
  
  <tr>
    <td>45</td>
    <td>5.10 m</td>
    <td>20.39 m</td>
    <td>2.04 s</td>
  </tr>
  
  <tr>
    <td>60</td>
    <td>7.65 m</td>
    <td>17.66 m</td>
    <td>2.50 s</td>
  </tr>
  <tr>
    <td>75</td>
    <td>9.51 m</td>
    <td>10.19 m</td>
    <td>2.78 s</td>
  </tr>
  <tr>
    <td>90</td>
    <td>10.19 m</td>
    <td>0 m</td>
    <td>2.88 s</td>
  </tr>
</table>

<p>More details can be explored on the simulation above</p>
]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.HtmlArea</Type>
<Name><![CDATA[htmlArea]]></Name>
<Parent><![CDATA[html]]></Parent>
<Property name="Html"><![CDATA[
<img src="./projectile/Screenshot 2020-02-18 at 3.46.53 PM.png" alt="Screenshot 2020-02-18 at 3.46.53 PM.png">
<p>Graphs shows the different angle of projection, the maximum height and distance can be seen, similar to the table above.</p>]]></Property>
<Property name="Height"><![CDATA[600]]></Property>
<Property name="Width"><![CDATA["100%"]]></Property>
</HtmlView.Element>
</Tree>
</Content>
</Osejs.HtmlView.Page>
</Osejs.HtmlView>
</Osejs>
