Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geometry concepts #11

Open
kevinbarabash opened this issue Feb 21, 2017 · 2 comments
Open

Add geometry concepts #11

kevinbarabash opened this issue Feb 21, 2017 · 2 comments

Comments

@kevinbarabash
Copy link
Member

Objects:

  • point
  • line, line segment, ray
  • polygon, quadrilaterals (square, parallelogram, etc.)
  • conics (circle, ellipse, hyperbola, parabola)

Properties:

  • parallel
  • perpendicular
  • angles (supplementary, complementary, opposite, adjacent, etc.)
  • length
  • area
@evykassirer
Copy link

geometry!! wow exciting

how do you think this would be stored in a tree?

@kevinbarabash
Copy link
Member Author

I was thinking we'd have nodes for different primitives, e.g.

{
   type: "Relationship",
   rel: "perpendicular",
   args: [
       {
          type: "Line"
          points: [{type: "identifier", name: "A"}, {type: "identifier", name: "B"}],
       },
       {
          type: "Ray"
          points: [{type: "identifier", name: "C"}, {type: "identifier", name: "D"}],
       },
   ],
}

The tree could then be rendered to a TeX string for typesetting or maybe an image showing a graphical representation of the line and ray.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants