当前位置:网站首页>temp7777
temp7777
2022-08-04 22:32:00 【lijil168】
import numpy as np
def move_point(p0,u,d):
return p0+u*d
p0=np.mat([[1,0,0]]).T
u=np.mat([[1,0,0],[0,1,0],[0,0,1]]).T
d=10
p1=move_point(p0,u,d)
print(p1)
p0=np.mat([[35,-280.893,1.33236],[35,280.893,1.33236],[874.75,-309.9,120.35],[874.75,309.9,120.35]]).T
p0_temp=p0[:,0]
u=np.mat([[0,90,90],[90,30,120],[90,60,30]]).T
u=np.cos(u*np.pi/180)
norm_u=np.linalg.norm(u,ord=None,axis=0) #按列求模,对单位矢量模=1
d=100
p1=move_point(p0_temp,u,d)
print(u,norm_u)
print(‘p1:\n’,p1)
边栏推荐
- 得不到你的心,就用“分布式锁”锁住你的人
- 【Social Marketing】WhatsApp Business API: Everything You Need to Know
- 力扣19-删除链表的倒数第 N 个结点——链表
- Both synchronized and ReentrantLock are smooth, because they are reentrant locks, and a thread will not deadlock if it takes the lock multiple times. We need reentrant locks
- PHP(3)
- 第二讲 软件生命周期
- 祝福一路顺风
- Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错
- the warmest home
- 【项目实战】仿照Room实现简单管理系统
猜你喜欢
随机推荐
Rt-thread [二] 系统初始化流程
DREAMWEAVER8 part of the problem solution
Deep Learning RNN Architecture Analysis
Qt面试题整理
Cocoa Application-基础
Using ngrok to optimize web pages on raspberry pi (2)
【3D建模制作技巧分享】ZBrush如何设置笔刷快捷键
【TCP/IP 四 IP 网际协议】
Oracle使用expdp和impdp导出导入数据
各行各业都受到重创,游戏行业却如火如荼,如何加入游戏模型师职业
JVM memory configuration parameter GC log
PHP(3)
Redis understanding
2022精选最新金融银行面试真题——附带答案
Latex快速插入作者ORCID
Redisson
Lecture 2 Software Life Cycle
One trick to cure pycharm DEBUG error UnicodeDecodeError: 'utf-8' codec can't decode
Hardware factors such as CPU, memory, and graphics card also affect the performance of your deep learning model
Autowired autowiring