Tags » Graphics

#1,148 - Sample Code to Convert from Polar to Cartesian Coordinates

Below is some simple code (not productized) that can convert from two-dimensional polar to cartesian coordinates.

    public class PolarPoint
    {
        // Angle expressed in degrees
        public PolarPoint(double radius, double angleDeg)
        {
            if (radius < 0.0)
                throw new ArgumentException("Radius must be non-negative");
            if ((angleDeg < 0) || (radius >= 360.0))
                throw new ArgumentException("Angle must be in range [0,360)");

            Radius = radius;
            AngleDeg = angleDeg;
        }

        // Polar coordinates
        public double Radius { get; set; }
        public double AngleDeg { get; set; }

        // Cartesian coordinates
        public double X
        {
            get { return Radius * Math.Cos(AngleDeg * Math.PI / 180.0); }
        }

        public double Y
        {
            get { return Radius * Math.Sin(AngleDeg * Math.PI / 180.0); }
        }

        public override string ToString()
        {
            return string.Format("({0},{1})", X, Y);
        }
    }
… 32 more words
WPF

Permanent Manifestation Window Graphics Solutions


Permanent manifestation window graphics can be used to mark large uninterrupted areas of transparent glazing in or to comply with the Current UK Building Regulations and the Disability Discrimination Act. 6 more words

CNNI's updated chyrons

On August 11th, CNN/US debuted their new lower thirds. At midnight, CNNI unveiled their own lower third update — the same as CNN’s, except their “CNN” icon is red instead of white, and the live bug is the opposite color as well. 57 more words

CNN

So this blog thing...

I like to write. But only when inspired. So when I need inspiration I go to my list of things that help get the creative juices flowing. 93 more words

Art

Writer Quotes of the Week

Check out the featured image here, it’s a free Facebook cover for you to enjoy (CLICK TO DOWNLOAD) with a writer’s quote from Ray Bradbury that I found this week.   472 more words

Graphics

Eurmax PRO Pop up Canopy Craft Display Gazebo Custom Graphics Printed Tent Trade Show Booth with Roller Bag Bonus 4 Weight Bags

Eurmax PRO Pop up Canopy Craft Display Gazebo Custom Graphics Printed Tent Trade Show Booth with Roller Bag Bonus 4 Weight Bags

Eurmax PRO Pop up Canopy Craft Display Gazebo Custom Graphics Printed Tent Trade Show Booth with Roller Bag Bonus 4 Weight Bags… 315 more words