angle Questions
4
Solved
Given two circle segments of the same circle: A=[a1, a2] and B=[b1, b2], with:
a1, a2, b1, b2 values in degree between -inf and +inf
a1 <= a2 ; b1 <= b2
a2-a1<=360; b2-b1<=360
How c...
Homey asked 2/8, 2012 at 10:18
4
I want to know the angle of view from the camera, just like in this question but using android.hardware.camera2. How can I reproduce the next code using the new camera2 library.
Camera.Parameters ...
Domitian asked 1/7, 2015 at 22:33
5
Solved
I want to reverse a sin/cos operation to get back an angle, but I can't figure out what I should be doing.
I have used sin and cos on an angle in radians to get the x/y vector as such:
double ang...
Malaria asked 29/12, 2012 at 5:57
8
Solved
Many algorithms (e.g. Graham scan) require points or vectors to be sorted by their angle (perhaps as seen from some other point, i.e. using difference vectors). This order is inherently cyclic, and...
Kerby asked 14/5, 2013 at 11:30
3
Solved
Is there any way in which, in javascript, I can call a function with an x and y co-ord and a direction (angle in degrees) and it will return a set of new co-ords that has been 'moved' by 10px in th...
Nosepiece asked 15/11, 2014 at 21:20
2
I have an object (XYZ-coordinate system where Z is up) that rotates from t0 to t1 with the corresponding rotation matrices:
import numpy as np
from scipy.spatial.transform import Rotation as R
r_0 ...
2
Solved
I have trouble understanding what's wrong with my code.
Point A = new Point((int)CENTER_X, (int)CENTER_Y);
Point B = new Point((int)me.getX(), (int)me.getY());
Point C = new Point((int)CENTER_X, ...
3
Solved
I have a set of points with x and y coordinates that can be seen in the figure below. The coordinates of the 9 points were stored in a list as follows:
L = [[5,2], [4,1], [3.5,1], [1,2], [2,1], [3...
Bluh asked 25/1, 2017 at 15:41
3
I would like to know how to get the angle on the picture when the origin is not O(0,0,0), but (a, b, c) where a, b, and c are variables.
B is a point that makes 90 degrees with A(d, e, f) and the ...
3
Solved
I have U and V wind component data and I would like to calculate wind direction from these values in R.
I would like to end up with wind direction data on a scale of 0-360 degrees, with 0° or 360° ...
3
Following code will set gradient on textview (not background, but text itself). But I need to change angle of this gradient, how to do it?
Shader textShader = new LinearGradient(0, 0, 0, textView....
3
Solved
I am working on a spatial analysis problem and part of this workflow is to calculate the angle between connected line segments.
Each line segment is composed of only two points, and each point has...
Replica asked 1/2, 2015 at 8:44
10
Solved
I was given this interview question recently:
Given a 12-hour analog clock, compute in degree the smaller angle between the hour and minute hands. Be as precise as you can.
I'm wondering what'...
Repetend asked 1/5, 2010 at 5:7
5
Solved
I'm trying to find out the angle of the triangle in the following, I know it should be 90 degrees, however I don't know how to actually calculate it in the following:
Here's what I've tried:
an...
3
Solved
I am searching for quite a while already now for a function that plots the angle between two arrows / line segments. e.g.:
(source: matrix44.net)
Can this be done easily or do I have to find the f...
1
Solved
When calculating the angle between two vectors, I have traditionally used acos, but this requires the two vectors to be normalised. atan2 can be used to accomplish the same (specifically atan2(b.y_...
Aurelioaurelius asked 5/7, 2019 at 11:51
1
Solved
Arrow rotating to face cursor needs to only do so while inside an angle made by two given directions
I have a 2d arrow rotating to always face the a target (the target in this case is the cursor), the pivot is my player character. I need to restrict this arrow to only follow the target if it is in...
Naif asked 1/7, 2019 at 19:56
2
Solved
I have two matrices consisting of 3d vectors (numpy 1D arrays) and I need to calculate the angle between the vectors, row-wise, and return the results in a 1d array. I know how to calculate the ang...
6
Solved
I want to Rotate Image according to a specific angle in android ,some thing like a compass...
I have this code...it works on drawPath()
but i want to replace the path and the Drawing thing with im...
Wilen asked 3/1, 2012 at 12:57
3
Solved
Hello all you math whizzes out there!
I am struggling with a math problem I am hoping you can help me with. I have calculated an angle of direction using radians. Within OpenGL ES I move my guy by...
Shall asked 15/2, 2010 at 2:31
3
Solved
I'm trying to create a 4D environment, similar to Miegakure's.
I'm having trouble understanding how to represent rotations. The creator of Miegakure wrote this small article explaining he made a c...
5
Solved
I want to get a simple solution to calculate the angle of a line (like a pointer of a clock).
I have 2 points:
cX, cY - the center of the line.
eX, eY - the end of the line.
The result is angle ...
Wallin asked 8/3, 2012 at 7:16
3
Solved
I'm using a Reach RS+ device to capture GPS position data as well as IMU data (roll, pitch and yaw); see the "Point Collection" image on the manufacturer's website.
I'm trying to determine the GPS ...
Shagbark asked 17/9, 2018 at 14:54
4
Solved
Im making a game in XNA.
I have enemies and player.
The enemies should turn gradually towards the player. They should work out whether they need to turn clockwise or anticlockwise, whichever is sho...
4
Solved
I'm using Python for kernel density estimations and gaussian mixture models to rank likelihood of samples of multidimensional data.
Every piece of data is an angle, and I'm not sure how to handle t...
Maisey asked 4/12, 2013 at 17:56
© 2022 - 2024 — McMap. All rights reserved.