I have strings representing an angle, of the format ddd°mm'ss''. I want to get to the three constituents: degrees, minutes and seconds. I first chopped off the seconds like this: `angleString = “ddd°mm'ss''”;` `string str = angleString.Substring(0, angleString.Length - 2);` Then I tried to do this, to get to the degrees,minutes and seconds: `string[] items = str.Split(new char[] { '°', '''});` But it gave an error on the ' character, saying: "empty char literal". I solved by using this: `string[] items = str.Split(new char[] { '°', char.Parse("'") });` I find this rather clumsy. It would be great if anyone over …

Member Avatar
Member Avatar
+0 forum 3

This example calculates timed x, y points of a projectile motion that can be used for plotting or other calculations.

Member Avatar
Member Avatar
+3 forum 3

Hi, I m developing an application using kinect.The IDE I use is Visual studio 2012 and kinect SDK 1.8.I m developing using vc++ I want to overlay an image on the person tracked when the person turns 180 degress to kinect. ie the person is not facing the kinect. how do i track the rotation angle of the person as he/she turns away from kinect. Regards, Sandhya

Member Avatar
+0 forum 0

Hello, I was given a question a few few days back to write a program that lets a user enter a value for an angle and quadrant in which the angle lies is printed using switch statement. I was able to make this program using if-else very easily but making it with switch statement is a problem.. I tried using [CODE]switch (angle) { case (angle>=0 && angle<=90): printf("1st quadrant"); break; . . . . }[/CODE] and so on....(where angle is the variable in which the value of angle is stored ) it gives me the error "Case constant required in …

Member Avatar
Member Avatar
+0 forum 7

hello guys.. can you help me on how to make 45 angle shoot or 45 angle movement of bullet in vb.net

Member Avatar
Member Avatar
+0 forum 1

[CODE] class character1{ public static void main (String args[]){ float a,b; a=Integer.parseInt (args[0]); b=(float)Math.acos(a*(180/3.14)); System.out.println (b); } }[/CODE] the above program isn't working when entering angle other than 1 , why ?

Member Avatar
Member Avatar
+0 forum 7

For my intro to programming class i have to design a game where a ball is shot at an angle and hits squares that are worth points. I have two questions 1.How do you get the ball to move. I was given this code but I don't know if I am using it correctly: [CODE]for t in range(10000): pinball.move(dx, dy) sleep(0.05) [/CODE] 2.The black ball is worth 10 points, the green 3 and the blue 5. How do you get python to keep track of the score? Here is the link to the original assignment: [url]https://eee.uci.edu/10y/18020/hw5.pdf[/url] Any suggestions are appreciated. …

Member Avatar
Member Avatar
+0 forum 1

If you have to convert an angle from degrees to radians and way back, here are some utility functions in C#, along with a program to test them. I made use of the "out" keyword here, which allows a function to return more than one value. An alternative would be to return a struct containing all the values. Any language out there which can do this?

Member Avatar
+0 forum 0

The End.