Skip to content

Instantly share code, notes, and snippets.

View pezy's full-sized avatar
💭
I may be slow to respond.

pezy pezy

💭
I may be slow to respond.
  • Beijing, China
View GitHub Profile
// given 3 points on plane (x1,y1,z1), (x2,y2,z2), (x3,y3,z3)
// get distance to (x,y,z)
double plane_exp_point_dist_3d ( double x1, double y1, double z1, double x2,
double y2, double z2, double x3, double y3, double z3, double x, double y, double z )
{
double a;
double b;
double c;
double d;
double dist;
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/textmate");e.getSession().setMode("ace/mode/c_cpp");</script>
@pezy
pezy / standards
Last active August 29, 2015 14:06 — forked from wintercn/standards
[
{
name:"HTML5",
uri:"http://www.w3.org/TR/html5/single-page.html",
category:"markup"
},
{
name:"HTML 5.1",
uri:"http://www.w3.org/TR/html51/single-page.html",
category:"markup"