Recent content by Peter-
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
Hi PeroK I finally got the time to work on this again and have solved it. So, what I did was basically to use rotation matrices RxRyRz on my 3d curve. Here is a simplified version not using tensors which is easier for you to read. # rotation around X-axis: curveRotatedY = (...- Peter-
- Post #21
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
Ok, just for me to follow your thinking here... What is (sinϕcosθ,sinϕsinθ,cosϕ)? Are ϕ, θ are the angles for the point (x0,y0,z0)?- Peter-
- Post #19
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
I'm typing this in now (https://en.wikipedia.org/wiki/Rotation_matrix) - and just have to think about how I calculate my yaw, pitch and roll... Then I can rotate in my curve in the local coordinates system and project the curve onto the 3d line and global coordinate system Any ideas on how...- Peter-
- Post #16
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
I think your idea is a good strategy, but I think I'll be able to figure it out. So far, I got the branch on the line - now I just need to apply the rotations. Kind Regards, Peter- Peter-
- Post #15
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
Ok, let us imagine that we have a plane which is formed by the 3 points: (x0, y0, z0) (x1, y1, z1) (x1, y1, z1+k), where k is a number > 0. This plane now goes through all the points of the 3D line and is vertical. Now, I want to project my curve onto that plane such that my x-axis from the...- Peter-
- Post #13
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
This is for a software and what I need are the rotation or project matrices. The curve is defined as a collection of points (its will eventually become too complex to describe with a simple formula as every curvature between each point will be a probabilistic varying). The line is also clearly...- Peter-
- Post #11
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
I realize that it is not easy to explain this problem, and have tried to sketch it below. Basically, I want to project my curve/branch (which is a list of 100 x-z coordinates) onto an existing line which is defined by the two point illustrated in the figure. To make it simple, let us assume that...- Peter-
- Post #9
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
The plane will live on a line that already exists in 3D space - so the curve that I’m making is actually a branch that will spring off the existing 3D line that exists. So I’ll use the branching point and the point after it to define a vector in 3D which is parallel to the existing 3D line and...- Peter-
- Post #7
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
It’s in a plane which exists in 3D space - which is why I should be able to rotate it- Peter-
- Post #5
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
It's not easy to explain the problem... Basically what I want to make the curve below in 3d instead of 2d: Which is basically created like this (which is a recurrent function): x_coordinate = (coordinate_current + math.cos(math.radians(angle_current))* length /...- Peter-
- Post #3
- Forum: Classical Physics
-
Undergrad Calculating an increasing angle in Spherical Coordinates for a curve
I'm making a program that generates lines in 3D space. One feature that I need is to have an incrementally increasing angle on a line (a bending line / curve). The problem is simple if the line exists in the xy-plane, then it would be a case of stepping say 1m, increase the azimuthal angle φ...- Peter-
- Thread
- Angle Coordinates Curve Increasing Spherical Spherical coordinates
- Replies: 21
- Forum: Classical Physics