Commit Graph

5 Commits

Author SHA1 Message Date
Sebastien Binet
c9092a1e6a spatial/r2,all: harmonize r2.Vec API with r3.Vec API
Migration to the new API can be achieved with this rsc.io/rf script:

```
rf ex {
	import "gonum.org/v1/gonum/spatial/r2";
	var p,q r2.Vec;
	var f float64;

	p.Add(q) -> r2.Add(p, q);
	p.Sub(q) -> r2.Sub(p, q);
	p.Scale(f) -> r2.Scale(f, p);
	p.Dot(q) -> r2.Dot(p, q);
	p.Cross(q) -> r2.Cross(p, q);
	p.Rotate(f, q) -> r2.Rotate(p, f, q);
}
```

Updates gonum/gonum#1553.
2021-01-29 12:39:42 +01:00
Dan Kortschak
c1fdadf7ea graph/layout: new package for calculating graph layouts 2019-07-20 20:12:57 +09:30
Dan Kortschak
6006dfb55c spatial/barneshut: catch finitely too far points 2019-06-29 07:17:10 +09:30
Dan Kortschak
e34e6b933b spatial/{barneshut,vptree}: refuse points at infinity 2019-06-25 07:32:46 +09:30
Dan Kortschak
4a2eb0188c spatial/barneshut: add Barnes-Hut force approximation package and R2/R3 helpers 2019-05-03 06:57:12 +09:30