MCPcopy Create free account
hub / github.com/dabing1022/Blog / line_circle_p

Method line_circle_p

Processing/game2dai/maths/Geometry2D.java:101–144  ·  view source on GitHub ↗

Calculate the points of intersection between a line and a circle. An array is returned that contains the intersection points in x, y order. If the array is of length: 0 then there is no intersection 2 there is just one intersection (the line is a tangent to the circle) 4 there ar

(double x0, double y0, double x1, double y1, double cx, double cy, double r)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

sqrtMethod · 0.80

Tested by

no test coverage detected