This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
prpl:distance [2016/12/21 11:47] – Oblivion | prpl:distance [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
=== Examples === | === Examples === | ||
- | < | + | < |
- | float x1 = GetFloatFromStack(); | + | CurrentCoords 0 0 Distance -> |
- | float y2 = GetFloatFromStack(); | + | < |
- | float x2 = GetFloatFromStack(); | + | |
- | float di = Mathf.Sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); | + | |
- | stack.Push(new Data(di)); | + | |
- | + | ||
- | | + | |
- | < | + | |
- | </ | + | |
+ | Self GetUnitPixelCoords < | ||
+ | </ |