This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
passing_20substructures_20to_20procedures [2018/04/17 19:11] tbest3112 Added syntax highlighting |
passing_20substructures_20to_20procedures [2021/12/04 10:08] (current) richardrussell Modified to be compatible with 64-bit platforms |
||
---|---|---|---|
Line 36: | Line 36: | ||
DEF FN_distance(s{},p{}) | DEF FN_distance(s{},p{}) | ||
- | !(^p{}+4) += !(^s{}+4) | + | PTR(p{}) = PTR(s{}) + PTR(p{}) |
= SQR(p.x^2 + p.y^2 + p.z^2) | = SQR(p.x^2 + p.y^2 + p.z^2) | ||
</code> | </code> |