Merge pull request #97650 from mauk81/test

add tests for util matrix
Add onMove veto/adjust semantics to polygon.onMove

Summary:
allows the onMove function for movable polygons to veto or adjust
the move similarly to onMove for movable points

Also adds an option to not make a polygon constrained to the graph
boundaries while moving.

A cursory grep through our code suggests that we rarely use
polygon.onMove and where we do, we don't rely on the move having
already occurred. In this change, the move will no longer have
occurred by the time onMove is called, to behave similarly to
the onMove semantics of movable points.

Test Plan: tested in perseus transformations tool

Reviewers: alex

Reviewed By: alex

CC: alpert

Differential Revision: http://phabricator.khanacademy.org/D4795
Replace jQuery isType functions with _.isType functions

Test Plan: none

Auditors: alex
Corrected 'movablePoint' in comment to 'movablePolygon

Test Plan: none; comment only change

Auditors: alex
Big points are trendy these days

These looked particularly small when I happened across them; bump up the size a bit.

Auditors: eater
Misc style fixes

Auditors: eater
Update title tags
Move data-ensures to vars div

PSA: Having a data-ensure around vars without id tags (like in `<div class="solution"><var>HEIGHT_B</var></div>`) is a no-go since they don't get reevaluated the second time around.

Test Plan:
solving_similar_triangles_2.html?debug&problem=height-b&seed=63 accepts 75/7, as it should.

Auditors: eater
KhanUtil.kvector

Test Plan: none

Auditors: alex
Add KhanUtil.kmatrix, tests for kmatrix/kvector

Test Plan: see tests/k*.html

Auditors: alex
Actually handle errors loading an exercise file

$.get() doesn't call the success() function if the get doesn't succede. Maybe it did once upon a time? Anyway, handle failures to get the exercise html file correctly. Also, in that situation the user will probably want to report a problem. Thing is, `exercise` is undefined so reporting a problem would fail. This now checks for that too.

Test plan: Delete webapp/khan-exercises/addition_1.html; Try to do an addition_1 task. Note the Khan.error-logged message. Attempt to submit an issue. The issue is successfully submitted (with the helpful "undefined" answer timeline).

Auditors: alpert
Adding more concise math/geometry utils based on vector math.

Test Plan:
WIP

Auditors: jack
Switch from KhanUtil.matrix* to kmatrix

Test Plan: visit some exercises that use matrices

Reviewers: alex

Reviewed By: alex

Differential Revision: http://phabricator.khanacademy.org/D4861
Add [] parameter option to kvector polar coordinate methods

Test Plan: none

Auditors: alex
Removing 2 graphie-geometry functions (midpoint of line, reflect point).

Test Plan:
Grepped for those functions, changed them in two exercises,
then tested those exercises.

Reviewers: jack

Reviewed By: jack

Differential Revision: http://phabricator.khanacademy.org/D4867
Truncate issue report body to < ~65535 characters

GitHub complains about more than that

Test plan: fingers crossed...

Auditors: alpert
Optional hook into alternate issue reporting flow

Auditors: eater
Update sandcastle URL
Comment changes

Meaningless changes; need to invalidate a cache...
Another test change