#!/usr/bin/env node

let lib = require('../index'),
    Point2D = lib.Point2D,
    Intersection = lib.Intersection;

let circle = {
    cx: new Point2D(0, 0),
    r: 50,
};

let rectangle = {
    p1: new Point2D(0, 0),
    p2: new Point2D(60, 30)
};

let result = Intersection.intersectCircleRectangle(
    circle.cx, circle.r,
    rectangle.p1, rectangle.p2
);

console.log(result);

#!/usr/bin/env node

let lib = require('../index'),
    Point2D = lib.Point2D,
    Intersection = lib.Intersection;

let circle = {
    center: new Point2D(0, 0),
    radius: 50,
};

let rectangle = {
    topLeft: new Point2D(0, 0),
    bottomRight: new Point2D(60, 30)
};

let result = Intersection.intersectCircleRectangle(
    circle.center, circle.radius,
    rectangle.topLeft, rectangle.bottomRight
);

console.log(result);

Fix property names in example
Fix property names in example

Some of them were incorrect and others were not very descriptive. This updates the example to match what we have in the README file.
