PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
5 sec ago
oeuvresdemboilea02boil
6 sec ago
Untitled
6 sec ago
Untitled
18 sec ago
Ngu Custom Command :troll:
21 sec ago
Untitled
Java | 21 sec ago
Best
21 sec ago
Untitled
29 sec ago
Untitled
By: a guest on
May 16th, 2012
| syntax:
None
| size: 0.26 KB | hits: 8 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
CGPoint destination = ccp((int)(([self position].x + ((dt.x > 0 && dt.x < sizeBlock) ? 0 : dt.x) * 2) / sizeBlock) * sizeBlock,
(int)(([self position].y + ((dt.y > 0 && dt.y < sizeBlock) ? 0 : dt.y) * 2) / sizeBlock) * sizeBlock);
create a
new version
of this paste
RAW Paste Data
CGPoint destination = ccp((int)(([self position].x + ((dt.x > 0 && dt.x < sizeBlock) ? 0 : dt.x) * 2) / sizeBlock) * sizeBlock, (int)(([self position].y + ((dt.y > 0 && dt.y < sizeBlock) ? 0 : dt.y) * 2) / sizeBlock) * sizeBlock);