Published
Edited
Sep 23, 2021
1 fork
1 star
Insert cell
Insert cell
Insert cell
Insert cell
{
const svg = d3.select(DOM.svg(base, base));
const plot = svg.append("g")
.attr("transform", `translate(${[margin.left, margin.top]})`)
drawAxes(plot, xScale, yScale);
const quadPoints = [
[1,0], [0,1], [-1,0], [0,-1]
];
//const M = glMatrix.mat2.scale([],glMatrix.mat2.create(),vals);
plotModelAndNormal(plot,quadPoints, normal, M);

return svg.node()
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
N = m4.transpose(m4.inverse(M))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more