* Where \( N \) is the number of adjacent vertices to node \( i \) and \( \bar{x}_i \) is the new position for node \( x_i \). */ public PVector laplacianSmoothing() { ... ``` The math in this comment will be formatted as: >\\[\bar{x}_{i}= \frac{1}{N} \sum\_{j=1}^{N}x\_j\\] >Where \\( N \\) is the number of adjacent vertices to node \\( i \\) and \\( \bar{x}_i \\) is the new position for node \\( x_i \\). On a side note, the LaTeX for the equation above was lifted directly from the Wikipedia page on Laplacian Smoothing. I found it in the `alt` attribute of the `img` tag (the equations are stored as PNGs). A nice little time-saver! Next step: getting this to work with [TeXDoclet][]... [MathJax]: http://www.mathjax.org [escape]: http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html [TeXDoclet]: http://doclet.github.com