Skip to content

Commit

Permalink
Merge pull request #24 from google/no_vector_math
Browse files Browse the repository at this point in the history
No vector math
  • Loading branch information
dmah42 committed Jun 4, 2013
2 parents 387282c + b8dfc4d commit 4d4c194
Show file tree
Hide file tree
Showing 200 changed files with 114,118 additions and 166,713 deletions.
15 changes: 10 additions & 5 deletions build.xml
Expand Up @@ -14,8 +14,8 @@

<property name="dart.sdk.dir" value="${env.DART_SDK}" />
<property name="dartdoc.dart" value="${dart.sdk.dir}/bin/dartdoc" />
<property name="dart_analyzer" value="${dart.sdk.dir}/bin/dart_analyzer" />
<property name="dart_analyzer.args" value="--enable_type_checks" />
<property name="dart_analyzer" value="${dart.sdk.dir}/bin/dartanalyzer" />
<property name="dart_analyzer.args" value="" />
<property name="pub.dart" value="${dart.sdk.dir}/bin/pub" />

<!-- Set envvar DB2D_WITH_CHECKS to compile with checks. -->
Expand Down Expand Up @@ -48,10 +48,15 @@
<macrodef name="dart_analyze">
<attribute name="file" />
<sequential>
<echo>Analyzing @{file}</echo>
<exec executable="${dart_analyzer}" failonerror="true">
<exec executable="${dart_analyzer}" failonerror="false" resultproperty="result">
<arg line="${dart_analyzer.args} @{file}" />
</exec>
<fail>
<condition>
<!-- only fail if errors are found -->
<equals arg1="2" arg2="${result}"/>
</condition>
</fail>
</sequential>
</macrodef>

Expand Down Expand Up @@ -132,7 +137,7 @@
</exec>
</target>

<target name="generate-JS">
<target name="generate-JS" description="Run dart2js on all demos.">
<for param="file" trim="true" parallel="true" threadCount="${threadCount}">
<path refid="demos" />
<sequential>
Expand Down
2 changes: 1 addition & 1 deletion docs/0/apidoc.json
@@ -1 +1 @@
{"name":"dart:","dependencies":[],"revision":"0","libraries":[{"refId":"box2d"},{"refId":"box2d","name":"package:box2d/box2d.dart"},{"refId":"box2d","name":"file:///home/dominich/git/dartbox2d/packages/box2d/box2d.dart"},{"refId":"box2d_browser"},{"refId":"matcher","name":"file:///home/dominich/git/dartbox2d/packages/unittest/matcher.dart"},{"refId":"matcher","name":"package:unittest/matcher.dart"},{"refId":"metadata"},{"refId":"mock","name":"package:unittest/mock.dart"},{"refId":"unittest","name":"package:unittest/unittest.dart"},{"refId":"vector_math","name":"package:vector_math/vector_math.dart"},{"refId":"vector_math","name":"file:///home/dominich/git/dartbox2d/packages/vector_math/vector_math.dart"}],"description":"Dart System Libraries"}
{"name":"dart:","dependencies":[],"revision":"0","libraries":[{"refId":"box2d"},{"refId":"box2d","name":"package:box2d/box2d.dart"},{"refId":"box2d","name":"file:///home/dominich/git/dartbox2d/packages/box2d/box2d.dart"},{"refId":"box2d_browser"},{"refId":"metadata"}],"description":"Dart System Libraries"}
2 changes: 1 addition & 1 deletion docs/0/box2d.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/0/box2d_browser.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/0/matcher.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/0/metadata.json
@@ -1 +1 @@
{"dependencies":[{"uri":"file:///home/dominich/sdk/dart-sdk/lib/core/core.dart","name":"dart:core","id":"dart.core","children":[{"comment":"\nEverything in Dart is an [Object].\n","uri":"file:///home/dominich/sdk/dart-sdk/lib/core/object.dart","name":"Object","id":"Object","children":[{"returnType":{"refId":"dart.core/bool","name":"bool"},"isOperator":true,"comment":"\nThe equality operator.\n\nThe default behavior for all [Object]s is to return true if and\nonly if [:this:] and [other] are the same object.\n\nIf a subclass overrides the equality operator it should override\nthe [hashCode] method as well to maintain consistency.\n","name":"==","id":"==1()","children":[{"name":"other","id":"other","kind":"param"}],"line":"29","kind":"method"},{"returnType":{"refId":"dart.core/String","name":"String"},"comment":"\nReturns a string representation of this object.\n","name":"toString","id":"toString0()","line":"48","kind":"method"},{"comment":"\n[noSuchMethod] is invoked when users invoke a non-existant method\non an object. The name of the method and the arguments of the\ninvocation are passed to [noSuchMethod] in an [Invocation].\nIf [noSuchMethod] returns a value, that value becomes the result of\nthe original invocation.\n\nThe default behavior of [noSuchMethod] is to throw a\n[noSuchMethodError].\n","name":"noSuchMethod","id":"noSuchMethod1()","children":[{"ref":{"refId":"dart.core/Invocation","name":"Invocation"},"name":"invocation","id":"invocation","kind":"param"}],"line":"60","kind":"method"},{"ref":{"refId":"dart.core/int","name":"int"},"comment":"\nGet a hash code for this object.\n\nAll objects have hash codes. Hash codes are guaranteed to be the\nsame for objects that are equal when compared using the equality\noperator [:==:]. Other than that there are no guarantees about\nthe hash codes. They will not be consistent between runs and\nthere are no distribution guarantees.\n\nIf a subclass overrides [hashCode] it should override the\nequality operator as well to maintain consistency.\n","name":"hashCode","id":"hashCode","line":"43","kind":"property"},{"ref":{"refId":"dart.core/Type","name":"Type"},"comment":"\nA representation of the runtime type of the object.\n","name":"runtimeType","id":"runtimeType","line":"65","kind":"property"},{"comment":"\nCreates a new [Object] instance.\n\n[Object] instances have no meaningful state, and are only useful\nthrough their identity. An [Object] instance is equal to itself\nonly.\n","name":"Object","id":"Object0()","line":"18","kind":"constructor"}],"line":"10","kind":"class"}],"line":"5","kind":"library"}],"uri":"file:///home/dominich/sdk/dart-sdk/lib/html/html_common/metadata.dart","id":"metadata","children":[{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"Metadata that specifies that that member is editable through generated\nfiles.","name":"DocsEditable","id":"DocsEditable","line":"59","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nMetadata that specifies the DOM name associated with the element.\n\nThis is used for API generation.\n\n[name] should be formatted as `interface.member`.\n","name":"DomName","id":"DomName","children":[{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"name":"name","id":"name","line":"52","kind":"variable"},{"name":"DomName","id":"DomName1()","children":[{"initializedField":{"refId":"metadata/DomName/name","name":"name"},"ref":{"refId":"dart.core/String","name":"String"},"name":"name","id":"name","kind":"param"}],"line":"53","kind":"constructor"}],"line":"51","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAn annotation used to mark an API as being experimental.\n\nAn API is considered to be experimental if it is still going through the\nprocess of stabilizing and is subject to change or removal.\n\nSee also:\n\n* [W3C recommendation](http://en.wikipedia.org/wiki/W3C_recommendation)\n","name":"Experimental","id":"Experimental","line":"41","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAn annotation used to mark a feature as only being supported by a subset\nof the browsers that Dart supports by default.\n\nIf an API is not annotated with [SupportedBrowser] then it is assumed to\nwork on all browsers Dart supports.\n","name":"SupportedBrowser","id":"SupportedBrowser","children":[{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"CHROME","id":"CHROME","line":"15","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"FIREFOX","id":"FIREFOX","line":"16","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"IE","id":"IE","line":"17","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"OPERA","id":"OPERA","line":"18","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"SAFARI","id":"SAFARI","line":"19","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"comment":"The name of the browser.","name":"browserName","id":"browserName","line":"22","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"comment":"The minimum version of the browser that supports the feature, or null\nif supported on all versions.","name":"minimumVersion","id":"minimumVersion","line":"25","kind":"variable"},{"name":"SupportedBrowser","id":"SupportedBrowser2()","children":[{"initializedField":{"refId":"metadata/SupportedBrowser/browserName","name":"browserName"},"ref":{"refId":"dart.core/String","name":"String"},"name":"browserName","id":"browserName","kind":"param"},{"initializedField":{"refId":"metadata/SupportedBrowser/minimumVersion","name":"minimumVersion"},"ref":{"refId":"dart.core/String","name":"String"},"isOptional":true,"name":"minimumVersion","id":"minimumVersion","kind":"param"}],"line":"27","kind":"constructor"}],"line":"14","kind":"class"}],"line":"5","kind":"library"}
{"dependencies":[{"uri":"dart-sdk/lib/core/core.dart","name":"dart:core","id":"dart.core","children":[{"comment":"\nEverything in Dart is an [Object].\n","uri":"dart-sdk/lib/core/object.dart","name":"Object","id":"Object","children":[{"returnType":{"refId":"dart.core/bool","name":"bool"},"isOperator":true,"comment":"\nThe equality operator.\n\nThe default behavior for all [Object]s is to return true if and\nonly if [:this:] and [other] are the same object.\n\nIf a subclass overrides the equality operator it should override\nthe [hashCode] method as well to maintain consistency.\n","name":"==","id":"==1()","children":[{"name":"other","id":"other","kind":"param"}],"line":"29","kind":"method"},{"returnType":{"refId":"dart.core/String","name":"String"},"comment":"\nReturns a string representation of this object.\n","name":"toString","id":"toString0()","line":"48","kind":"method"},{"comment":"\n[noSuchMethod] is invoked when users invoke a non-existant method\non an object. The name of the method and the arguments of the\ninvocation are passed to [noSuchMethod] in an [Invocation].\nIf [noSuchMethod] returns a value, that value becomes the result of\nthe original invocation.\n\nThe default behavior of [noSuchMethod] is to throw a\n[noSuchMethodError].\n","name":"noSuchMethod","id":"noSuchMethod1()","children":[{"ref":{"refId":"dart.core/Invocation","name":"Invocation"},"name":"invocation","id":"invocation","kind":"param"}],"line":"60","kind":"method"},{"ref":{"refId":"dart.core/int","name":"int"},"comment":"\nGet a hash code for this object.\n\nAll objects have hash codes. Hash codes are guaranteed to be the\nsame for objects that are equal when compared using the equality\noperator [:==:]. Other than that there are no guarantees about\nthe hash codes. They will not be consistent between runs and\nthere are no distribution guarantees.\n\nIf a subclass overrides [hashCode] it should override the\nequality operator as well to maintain consistency.\n","name":"hashCode","id":"hashCode","line":"43","kind":"property"},{"ref":{"refId":"dart.core/Type","name":"Type"},"comment":"\nA representation of the runtime type of the object.\n","name":"runtimeType","id":"runtimeType","line":"65","kind":"property"},{"comment":"\nCreates a new [Object] instance.\n\n[Object] instances have no meaningful state, and are only useful\nthrough their identity. An [Object] instance is equal to itself\nonly.\n","name":"Object","id":"Object0()","line":"18","kind":"constructor"}],"line":"10","kind":"class"}],"line":"5","kind":"library"}],"uri":"dart-sdk/lib/html/html_common/metadata.dart","id":"metadata","children":[{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAnnotation that indicates that an API is not expected to change but has\nnot undergone enough testing to be considered stable.\n","name":"Unstable","id":"Unstable","line":"68","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nMetadata that specifies that that member is editable through generated\nfiles.\n","name":"DocsEditable","id":"DocsEditable","line":"61","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAnnotation that specifies that a member is editable through generate files.\n\nThis is used for API generation.\n\n[name] should be formatted as `interface.member`.\n","name":"DomName","id":"DomName","children":[{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"name":"name","id":"name","line":"52","kind":"variable"},{"name":"DomName","id":"DomName1()","children":[{"initializedField":{"refId":"metadata/DomName/name","name":"name"},"ref":{"refId":"dart.core/String","name":"String"},"name":"name","id":"name","kind":"param"}],"line":"53","kind":"constructor"}],"line":"51","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAn annotation used to mark an API as being experimental.\n\nAn API is considered to be experimental if it is still going through the\nprocess of stabilizing and is subject to change or removal.\n\nSee also:\n\n* [W3C recommendation](http://en.wikipedia.org/wiki/W3C_recommendation)\n","name":"Experimental","id":"Experimental","line":"41","kind":"class"},{"superclass":{"refId":"dart.core/Object","name":"Object"},"comment":"\nAn annotation used to mark a feature as only being supported by a subset\nof the browsers that Dart supports by default.\n\nIf an API is not annotated with [SupportedBrowser] then it is assumed to\nwork on all browsers Dart supports.\n","name":"SupportedBrowser","id":"SupportedBrowser","children":[{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"CHROME","id":"CHROME","line":"15","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"FIREFOX","id":"FIREFOX","line":"16","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"IE","id":"IE","line":"17","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"OPERA","id":"OPERA","line":"18","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isStatic":true,"name":"SAFARI","id":"SAFARI","line":"19","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"comment":"The name of the browser.","name":"browserName","id":"browserName","line":"22","kind":"variable"},{"ref":{"refId":"dart.core/String","name":"String"},"isFinal":true,"comment":"The minimum version of the browser that supports the feature, or null\nif supported on all versions.","name":"minimumVersion","id":"minimumVersion","line":"25","kind":"variable"},{"name":"SupportedBrowser","id":"SupportedBrowser2()","children":[{"initializedField":{"refId":"metadata/SupportedBrowser/browserName","name":"browserName"},"ref":{"refId":"dart.core/String","name":"String"},"name":"browserName","id":"browserName","kind":"param"},{"initializedField":{"refId":"metadata/SupportedBrowser/minimumVersion","name":"minimumVersion"},"ref":{"refId":"dart.core/String","name":"String"},"isOptional":true,"name":"minimumVersion","id":"minimumVersion","kind":"param"}],"line":"27","kind":"constructor"}],"line":"14","kind":"class"}],"line":"5","kind":"library"}
1 change: 0 additions & 1 deletion docs/0/mock.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/0/unittest.json

This file was deleted.

1 change: 0 additions & 1 deletion docs/0/vector_math.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/apidoc.json
@@ -1 +1 @@
{"name":"dart:","dependencies":[],"location":"0","revision":"0","libraries":[{"refId":"box2d"},{"refId":"box2d","name":"package:box2d/box2d.dart"},{"refId":"box2d","name":"file:///home/dominich/git/dartbox2d/packages/box2d/box2d.dart"},{"refId":"box2d_browser"},{"refId":"matcher","name":"file:///home/dominich/git/dartbox2d/packages/unittest/matcher.dart"},{"refId":"matcher","name":"package:unittest/matcher.dart"},{"refId":"metadata"},{"refId":"mock","name":"package:unittest/mock.dart"},{"refId":"unittest","name":"package:unittest/unittest.dart"},{"refId":"vector_math","name":"package:vector_math/vector_math.dart"},{"refId":"vector_math","name":"file:///home/dominich/git/dartbox2d/packages/vector_math/vector_math.dart"}],"description":"Dart System Libraries"}
{"name":"dart:","dependencies":[],"location":"0","revision":"0","libraries":[{"refId":"box2d"},{"refId":"box2d","name":"package:box2d/box2d.dart"},{"refId":"box2d","name":"file:///home/dominich/git/dartbox2d/packages/box2d/box2d.dart"},{"refId":"box2d_browser"},{"refId":"metadata"}],"description":"Dart System Libraries"}
28 changes: 24 additions & 4 deletions docs/box2d.html
Expand Up @@ -27,10 +27,6 @@
</div>
<div class="content">
<h2><strong>box2d</strong> library</h2>
<h3>Exports</h3>
<ul>
<ul><a href="vector_math.html">vector_math</a></ul>
</ul>
<div>
<h3>Abstract Classes</h3>
<div class="type">
Expand Down Expand Up @@ -372,6 +368,18 @@ <h4>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Matrix22.html"><strong>Matrix22</strong></a>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Matrix33.html"><strong>Matrix33</strong></a>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Pair.html"><strong>Pair</strong></a>
Expand Down Expand Up @@ -528,6 +536,18 @@ <h4>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Vector.html"><strong>Vector</strong></a>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Vector3.html"><strong>Vector3</strong></a>
</h4>
</div>

<div class="type">
<h4>
<a href="box2d/Velocity.html"><strong>Velocity</strong></a>
Expand Down

0 comments on commit 4d4c194

Please sign in to comment.