This commit is contained in:
沈瑗杰 2021-03-20 10:52:40 +08:00
parent 2de359c279
commit dd87c38eaa
2 changed files with 25 additions and 2 deletions

View File

@ -4,6 +4,7 @@ mail: 3695888@qq.com
'''
import re
import math
import json5
import decimal
import logging
@ -50,10 +51,23 @@ def log_level(level):
else:
raise ValueError('Need a like level thing not anything else')
# linear_algebra
'''
def C_R_P(position, degrees): # stand for calculation
"""
very thanks for lenny from pyglet delvoper
this part of code is write by him
"""
radians = degrees * (math.pi / 180)
cos = math.cos(radians)
sin = math.sin(radians)
rotated_pos = (position[0] * cos - position[1] * sin, position[0] * sin + position[1] * cos)
return rotated_pos
"""
Physics calculation
'''
"""
def is_decimal(A: any) -> bool:

View File

@ -0,0 +1,9 @@
import turtle
import random
t = turtle
t.speed = 0
t.goto(10,10)
t.goto(20,100)
input()