On 23 July 2013 13:34, en...@yandex.ru wrote:
Hello!
This is my first post, nice to meet you all!
I`m biology student from Russia, trying to learn python to perform some
simple simulations.
Here`s my first problem.
I`m trying to perform some simple 2d vector rotations in pygame, in order
On 7/24/2013 5:17 PM, Joshua Landau wrote:
import math as m
GAH!
Why on earth would you do such a thing?
for the same reason people do 'import tkinter as tk': to minimize typing
and maximize clarity. In this case,
from math import sin, cos, radians
also works well
--
Terry Jan
On Tue, 23 Jul 2013 15:11:43 +0200, Peter Otten wrote:
The conversion to int introduces a rounding error that accumulates over
time.
Most floating point calculations introduce a rounding error. If the
calculations are iterated, the error will accumulate.
In general, you want to avoid
Hello!
This is my first post, nice to meet you all!
I`m biology student from Russia, trying to learn python to perform some
simple simulations.
Here`s my first problem.
I`m trying to perform some simple 2d vector rotations in pygame, in order
to learn the basics of linear algebra and 2d
haven't used pygame that much, but it sounds like you drew Z. You have
[0,0],[0,100],[100,0],[100,
100]
0,0 is the top left, if I recall 0, 100 would be the lower left, then you
move to100, 0 which would go diagonal to the top right, and then 100,100 to
the lower right, this is assuming 0,0 is the
en...@yandex.ru wrote:
This is my first post, nice to meet you all!
Welcome!
I`m biology student from Russia, trying to learn python to perform some
simple simulations.
Here`s my first problem.
I`m trying to perform some simple 2d vector rotations in pygame, in order
to learn the