简体   繁体   English

点x cor按给定方向计算

[英]Point x cor calculate in given direction

Given my position as (x, y) . 鉴于我的职位为(x,y) I wish to calculate the xcor (the x coordinate) for a point whose ycor (the y coordinate)I know. 我希望为我知道其ycor(y坐标)的点计算xcor(x坐标)。 The direction is theta (an angle with the vertical). 方向是theta (与垂直方向成角度)。

xcor = x0 + t * Sin(Theta)
ycor = y0 + t * Cos(Theta)

find t from 2nd equation and use it in 1st equation 从第二个方程中找到t并在第一个方程中使用

(note Cos/Sin exchange, because you mentioned theta as an angle with the vertical (请注意Cos / Sin交换,因为您提到theta是与垂直方向成一个角度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 给定起点,每个旋转轴和方向的角度,计算终点 - Given start point, angles in each rotational axis and a direction, calculate end point 在曲线中,如何计算给定 X 的点的 Y position? - In a curve, how do I calculate the Y position of a point for a given X? 在给定X和Y单个值的情况下,如何计算网格上两个矢量之间的矢量方向 - How to calculate vector direction between two vectors on a grid given a single value for X and Y 如何计算给定方向的最小平移向量? - How to calculate the Minimum Translation Vector in a given direction? 给定一个点和一个距离来计算地图上的一个点 - Calculate a point on a map given one point and a distance 计算给定方位角,长度和起点的点 - calculate point given bearing, length and starting point 给定 2 个点和 2 个方向,我怎么知道它们是否相交? - given 2 point and 2 direction how do I know if they intersect? 给定由法线和点定义的平面时,找到下坡方向矢量 - Finding the downhill direction vector when given a plane defined by a normal and a point 以笛卡尔坐标移动点到给定方向的距离 - Move point in cartesian coordinate through distance in the given direction 给定一个 X 坐标,如何计算一个点的 Y 坐标,使其位于贝塞尔曲线上 - Given an X co-ordinate, how do I calculate the Y co-ordinate for a point so that it rests on a Bezier Curve
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM