Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 17th, 2016
46
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
class vec2:
x = 0
y = 0
def __init__(self, x, y):
self.x = x
self.y = y
def get(self):
return (self.x, self.y)
def add(self, other):
self.x += other.x
self.y += other.y
Add Comment
Please,
Sign In
to add comment
Public Pastes
goaccess.py
Python | 3 min ago | 0.48 KB
Jump
Java | 53 min ago | 4.64 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 56 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 59 min ago | 0.38 KB
Aura (Updated)
HTML | 60 min ago | 6.39 KB
com.ettaln_0.0.1-2024-05-17-10-36
Bash | 1 hour ago | 20.47 KB
What You Know (Updated)
HTML | 1 hour ago | 3.98 KB
scProj
SuperCollider | 1 hour ago | 4.45 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!