Questions tagged [degrees]

A unit of measurement for angles, which are two lines or rays diverging from a common point. Questions here regard angles measurements, arguments for trigonometric functions, geometry, etc.

264 questions
0
votes
1 answer

How to count down after reaching max

I'm working with degrees and I need a separate value to stay within a specific range. The degrees I'm working with are from 0 to 180 and I need the separate variable to interpret it as: - 0.0f degrees = 0.0f - 90.0f degrees = 1.0f - 180.0f degrees =…
user868935
0
votes
1 answer

Generate a directed random graph using Erdős–Rényi model from a real directed graph

I'm trying to understand how to correctly generate a directed random graph based on Erdős–Rényi model. I have looked at erdos_renyi_graph function on network x. I have set as n parameter the number of nodes of my real network (5317) then for p i…
UgoL
  • 839
  • 2
  • 13
  • 37
0
votes
1 answer

How can i add some text in uilabel in degree?

i have some text and i want to add this text to UILabel in style like this: (x+y)³ but instead ³ some text. How can i do this in swift, help me please?
Skie
  • 91
  • 1
  • 2
  • 13
0
votes
2 answers

Degrees minutes seconds to radians formula not working

Here is the code: double r = Double.parseDouble(radius.getText().toString()); double del = Double.parseDouble(delta.getText().toString()); double dm = ((int)((del - ((int)del)) * 100)); double rads…
0
votes
1 answer

Showing Angle Measurement of an image

I have an image on my view. I am rotating the image like this: image4.setRotation(image4.getRotation() - 1); The next thing I need, is to show the angle measurement of the rotation of the image... So the label will show "45 degrees" or whatever…
0
votes
1 answer

How to get the angle of an image ? (IOS)

Ok, so I rotated an image by 25 degrees like this : MyImage.layer.affineTransform = CGAffineTransformMakeRotation(25); Now I want to rotate the image again by 25 more degrees (50 degrees in total) So my question is, How do I rotate X more degrees…
user5547757
0
votes
3 answers

How to change angle mode in processing.js?

Khan Academy processing.js uses degrees as default for angle values, but you can modify it by: angleMode("radians"); Processing.js uses radians as default, but the documentation refers to an angle mode (here as a parameter of rotate…
Michael
  • 6,823
  • 11
  • 54
  • 84
0
votes
1 answer

How to find (x,y) coordinate from an angle

i need help. I want to find the coordinate from the green point in this image, as you know that the red points is the first position and it rotate for 75,17 degree. The length of the both line is same. Please help me to resolve this math. I need…
Black Side
  • 17
  • 1
0
votes
3 answers

Read and write files with accents

I have an input file in XML format and it is well formed, with accents well written. The file is created with a PHP script that works fine. But when i read the XML File and write it in another XML using a Java program, it puts strange characters…
mrcoar
  • 146
  • 3
  • 17
0
votes
0 answers

Updating position proportionally based on angle

I'm strugling with this problem for some time and I couldn't find a similar topic, so... An object (circle with a dot) rotates at a certain speed with a dot placed at 90 degrees (at the top) When the dot reaches circle's 0 degrees the position…
Kakalopulos
  • 1
  • 1
  • 1
0
votes
2 answers

Change where 0 degrees rotation is?

I have a canvas with some objects on it, and I can rotate them based on some number entered where 0 is upward on the screen, 90 is to the right, 180 downward, and 270 to the left. Is there anyway to change where the 0 degrees is? Right now I'm…
pfinferno
  • 1,779
  • 3
  • 34
  • 62
0
votes
2 answers

How to make this calculation and variables correct in this script code?

I feel like I'm progressing a little, I still have difficulties figuring out what to do when I'm stuck with Javascript. It's very hard but I need to get this coding done urgently.. so any help is greatly appreciated. It's really simple, I want to…
azaela
  • 57
  • 1
  • 2
  • 9
0
votes
1 answer

Draw Radians/Degrees in Circle in R

I am having difficulty of producing X,Y coordinates of a circle and then drawing line segments to it. Basically what I want to do is draw 360 lines from the center of a circle to the outside of the circle in perfect spacing. This is how I am…
BaseballR
  • 147
  • 2
  • 12
0
votes
1 answer

Rotating movieclip and changing to a particular frame (S.O.S)

i would apreciate if someone help me with some coding. i have this code that i previously get to rotate a movieclip with the mouse, and get to another frame, for a college work (we only did the tweens, just learned the basic coding) but i cant get…
0
votes
1 answer

Calculate the interior angle of a triangle

i'm trying to create a simple navigator, with an arrow that indicate the direction from the location where i'm to the location saved in the map, like a compass with north. i've two location (long and lat), start point and final point. The arrow must…
Antonio Viscomi
  • 227
  • 2
  • 5
  • 15