From WikiChip
Editing mirc/identifiers/$intersect
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{mirc title|$intersect Identifier}}'''$intersect''' returns the point at which two lines/rays intersect. | {{mirc title|$intersect Identifier}}'''$intersect''' returns the point at which two lines/rays intersect. | ||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
− | < | + | <pre>$intersect(x1,y1,x2,y2,x3,y3,x4,y4,method)</pre> |
== Parameters == | == Parameters == | ||
Line 19: | Line 17: | ||
"Ray" means the line defined by two points can expand infinitely in the two directions to try to cross the other line/ray whereas "line" means it doesn't expand. | "Ray" means the line defined by two points can expand infinitely in the two directions to try to cross the other line/ray whereas "line" means it doesn't expand. | ||
− | |||
− | |||
== Properties == | == Properties == | ||
Line 28: | Line 24: | ||
<source lang="mIRC"> | <source lang="mIRC"> | ||
alias test_inter { | alias test_inter { | ||
− | + | window -c @ti | |
− | + | window -pfdoCB @ti -1 -1 400 200 | |
− | + | var %x 50,%y 50,%x1 64,%y1 64 | |
− | + | var %x2 100,%y2 25,%x3 75,%y3 75 | |
− | + | drawline -r @ti 0 1 %x %y %x1 %y1 | |
− | + | drawline -r @ti 0 1 %x2 %y2 %x3 %y3 | |
− | + | titlebar @ti > $intersect(%x,%y,%x1,%y1,%x2,%y2,%x3,%y3) - $intersect(%x,%y,%x1,%y1,%x2,%y2,%x3,%y3,lr) - $intersect(%x,%y,%x1,%y1,%x2,%y2,%x3,%y3,rl) - $intersect(%x,%y,%x1,%y1,%x2,%y2,%x3,%y3,rr) | |
} | } | ||
</source> | </source> | ||
+ | |||
== Compatibility == | == Compatibility == |