🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

circle-enclose

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circle-enclose

smallest circle problem

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

circle-enclose

Smallest circle problem. This code was extracted from d3-hierarchy (licensed under BSD-3 by Mike Bostock).

usage

From npm:

var enclose = require('circle-enclose');

var circle = enclose([
  {x: -5, y: 0, r: 5},
  {x: 0, y: 0, r: 2},
  {x: 5, y: 0, r: 5}
])

assert(circle.r === 10);
assert(circle.x === 0);
assert(circle.y === 0);

license

BSD-3-Clause

Keywords

smallest-circle

FAQs

Package last updated on 09 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts