- A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
- lengths are in any unit (ex: pixels)
- code snippets are in JavaScript
angleRad = angleDeg * Math.PI / 180;
import macros | |
macro eval(s: string): expr = | |
result = parseStmt($s) | |
eval("echo 5") |
(function($) { | |
// My micro jQuery templating engine | |
// Usage: | |
// | |
// <section data-html="content"></section> | |
// | |
// Will load <content.html> into <section> | |
$(document).ready(function() { |