c,algorithm,math,formula,mathematical-lattices
Writing plane as an equation Instead of “slopes” I'd rather speak about normals of these planes. So the way I understand your question, you have xy plane, slope 0 ⇒ normal (0, 1, 0) xy plane, slope ∞ ⇒ normal (1, 0, 0) xy plane, slope 1 ⇒ normal (1,...
python,set,mathematical-lattices
The website 'Trails in a Langscape' contains an implementation of a universal set. You might want to use that implementation, or extract contents that you need for your implementation. Basically what they do is implement operator-functions (such as __radd__, __add__, etc...)....
Plotting the atoms/spheres can be done quite easily once you have their coordinates on your lattice, that is you need to find (as mentioned in the Wikipedia article) the potential minima. I assume you can have that part figured out. If not I misunderstood your question sorry! For the demo...