Python sin and cosine giving incorrect values
问题 I have code that draws a line from 2 points; One on the middle bottom of the screen, and the other to the mouse pointer. I am trying to constrain the point by not exceeding a length parameter that I set. Heres the code: import pygame import Resources as r import math as m pygame.init() class Segment(): def __init__(self, _screen, _id, _start_pos, _length): self.screen = _screen self.id = _id self.start_pos = _start_pos self.length = _length def update(self): if self.id == 1: mouse_pos =