由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请有图形编程经验的大牛给看看
相关主题
求助:多边形与锥体的相交问题 (转载)军版悬案求助:万能的军版求问个数学问题
这该是什么统计术语?CNN 能对输入的image做patch normalization么?
exe file compild by C++ cannot be run by another computerGCC 居然允许变量长度的向量
请教一个microarray问题关于正交向量(orthogonal vectors)的算法
cvs configuration如何在binary 矩阵中检索汉明码重?
Software Configuration Management (转载)问个矩阵问题
哪里能看一下fedora glibc 的 make configuration (转载)matlab 画图
laptop 可以连到学校的wireless, 但是不能连到家里的,什么原因啊?[合集] Flash vs. Javascript
相关话题的讨论汇总
话题: p2话题: l2话题: p1话题: l1话题: 3d
进入Programming版参与讨论
1 (共1页)
b****r
发帖数: 1272
1
As shown in figure: In 3D, Given 2 links attached end to end with lengths
L1 and L2 respectively, a point P1 that the first link starts at, and a
point P2 that you want the end of the 2nd link to be at, write a function
that finds the configurations of the links that put the 2nd link’s end at
point P2.
我的理解是这个function是(P1,P2,L1,L2),但是输出(link的configuration
)应该怎么表达呢? 是不是应分三种情况讨论:
1.if distance(P1,P2) > L1+L2 : 无解(不可能把线段L2放到P2点)
2.if distance(P1,P2) == L1+L2 : 有唯一解 (两个线段在一直线上,交点就是P1,P2
中点)这个情况funct
t****t
发帖数: 6806
2
题目里没要求找出所有解, 你随便给一个解就好了.
通解是一个圆, 你给圆的方程应该也是可以的.

P2
数表达向量?

【在 b****r 的大作中提到】
: As shown in figure: In 3D, Given 2 links attached end to end with lengths
: L1 and L2 respectively, a point P1 that the first link starts at, and a
: point P2 that you want the end of the 2nd link to be at, write a function
: that finds the configurations of the links that put the 2nd link’s end at
: point P2.
: 我的理解是这个function是(P1,P2,L1,L2),但是输出(link的configuration
: )应该怎么表达呢? 是不是应分三种情况讨论:
: 1.if distance(P1,P2) > L1+L2 : 无解(不可能把线段L2放到P2点)
: 2.if distance(P1,P2) == L1+L2 : 有唯一解 (两个线段在一直线上,交点就是P1,P2
: 中点)这个情况funct

b****r
发帖数: 1272
3
先谢了!
1. 请问这个交点怎么找好呢?假设先求P3(x3,y3,z3)的任意一个解,我们知道它满足:
(x1-x3)^2+(y1-y3)^2+(z1-z3)^2 = L1*L1
(x2-x3)^2+(y2-y3)^2+(z2-z3)^2 = L2*L2
两个方程,三个未知数?是否要把一个方向给一个值(比如假设z3=0),然后求x3,y3?
2. 有了x3,y3,z3,可以求出两个向量表示L1和L2,如:
link1 = 2i + 4j - 3k
link2 = 3i + 2j - 1k
我的函数是不是就应该返回这6个系数就可以了?
3. 圆的情况,需要用三角函数求出半径吧?
谢谢!先前没做过这种题,真没什么头绪

【在 t****t 的大作中提到】
: 题目里没要求找出所有解, 你随便给一个解就好了.
: 通解是一个圆, 你给圆的方程应该也是可以的.
:
: P2
: 数表达向量?

t****t
发帖数: 6806
4
立体几何自己算算就好了, 我比较懒, 不帮你算了.

满足:
y3?

【在 b****r 的大作中提到】
: 先谢了!
: 1. 请问这个交点怎么找好呢?假设先求P3(x3,y3,z3)的任意一个解,我们知道它满足:
: (x1-x3)^2+(y1-y3)^2+(z1-z3)^2 = L1*L1
: (x2-x3)^2+(y2-y3)^2+(z2-z3)^2 = L2*L2
: 两个方程,三个未知数?是否要把一个方向给一个值(比如假设z3=0),然后求x3,y3?
: 2. 有了x3,y3,z3,可以求出两个向量表示L1和L2,如:
: link1 = 2i + 4j - 3k
: link2 = 3i + 2j - 1k
: 我的函数是不是就应该返回这6个系数就可以了?
: 3. 圆的情况,需要用三角函数求出半径吧?

b****r
发帖数: 1272
5
谢了! 感觉要求一组解也要坐标系旋转/移动什么的 还挺麻烦的

【在 t****t 的大作中提到】
: 立体几何自己算算就好了, 我比较懒, 不帮你算了.
:
: 满足:
: y3?

O*******d
发帖数: 20343
6
The solution, if exists, is a circle in 3D space with radius ranging from 0
to min(L1, L2). A circle in 3D space can have a center (x,y,z), a radius
and an orientation normal vector. The orientation vector is the line (P1,
P2) normalized, the center must be on the line (P1, P2). You need to do
some simple 2D trigonometry calculation to figure out the radius and
position of the center.
1 (共1页)
进入Programming版参与讨论
相关主题
[合集] Flash vs. Javascriptcvs configuration
[合集] 怎样判断一条线段和一个园是否相交?Software Configuration Management (转载)
STL/vector引用成员变量。哪里能看一下fedora glibc 的 make configuration (转载)
有什么软件包可以解这种优化问题?laptop 可以连到学校的wireless, 但是不能连到家里的,什么原因啊?
求助:多边形与锥体的相交问题 (转载)军版悬案求助:万能的军版求问个数学问题
这该是什么统计术语?CNN 能对输入的image做patch normalization么?
exe file compild by C++ cannot be run by another computerGCC 居然允许变量长度的向量
请教一个microarray问题关于正交向量(orthogonal vectors)的算法
相关话题的讨论汇总
话题: p2话题: l2话题: p1话题: l1话题: 3d