The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Function to calculate value of
TrigonometricRatio
s.
- Change
sum()
(a function) intosum
(a computed property) and update their implementation.
- Provide conversion to binary numbers via arrays of 1s and 0s.
- Sums of windows in collections.
- Calculation of power sets of collection elements.
- Protocols for Graph, Edge and Node. Implementations for edges and nodes, and an adjacency matrix based graph.
Line2D
andLineSegment2D
structs with functions for calculating intersection, perpendicular bisectors and midpoints, as well as solving for y given an x value.
- Median calculations.
- Conversion strings describing binary numbers to their integer value.
- Compute the power set of a collection.
- Base case for exponentiation, where N^0=1. Fix its precedence and visibility.
- Update some Gemfile depdencies.
- Update iOS
deployment_target
version to 12.0.
- Update
PippinLibrary
dependency version.
- Update
PippinLibrary
dependency.
- Update to Swift 5.
- Support for macOS starting with 10.12.
- Histograms only key by the upper bound of each bucket, whereas previously it used the full string description (e.g.
10
versus1..<10
).
- Functions that given collections of integer or floating point values calculate mean, variance, standard deviation and histogram, a z-score for each value, and a convenience function to return the histogram of a data set's z-scores as a normalized distribution.
- Add function to
LocationGraphNode
to assign a "color" to each leaf node (in the form of anInt
value) such that the resulting triangulation is 4-colored: no two triangles adjacent on a common edge have the same color. - New unit tests for delaunay triangulation.
- Various debugging improvements for Delaunay triangulation, like how edges and triangles created due to edge flips are named, and test Swift generation for Triangles.
- Removed function to sort a
Set<Vertex>
into counterclockwise order. - Converted IUO properties to nonoptional properties appropriately set before on init.
Edge.a
/.b
,Triangle.a
/.b
/.c
andVertex.x
/.y
. - Renamed a function to correctly capitalize a word:
assignNewtriangleNeighbors
becomesassignNewTriangleNeighbors
. LocationGraphNode.getTriangles()
is no longer optional. It will just return an empty set if no leaf nodes are found.
Edge
,Triangle
andVertex
may now optionally have a name specified, or have one generated automatically on init. Helps read logs.- Show recursion depth in logs from recursive functions.
- Bunches of comments and diagrams documenting innards of
DelaunayTriangulator
. - Add a function to
Triangle
to output Swift code to reconstruct it, for e.g. unit tests. - Add functions for
Set<Triangle>
to returnSet<Vertex>
and aString
description of a sorted list of brief descriptions of all containedTriangle
s. - Typealiases for
Degree
andRadian
. enum
s:TrigonometricRatio
definingcos
,sin
etc and some helper functions.Quadrant
defining the four parts of the Cartesian plane and some query functions.
struct
s:PolarCoordinate2D
.CartesianCoordinate2D
.Angle
(with anAngleOrientation
enum
that needs to be reconciled withPlanarOrientation
).
- A function to compute distance between two
CGPoints
.
- In
DelaunayTriangulator
:- After an edge flip, not all of the necessary edges of the new pair of neighboring triangles received propagated legality testing. For two
Triangle
s adjacent on a commonEdge
, the remaining fourEdges
between them are now used to propagate edge legalization. - During edge legality testing, an
Edge
and anotherVertex
are used to construct aTriangle
whose circumscribed circle is queried to contain anotherVertex
(call itx
here). Previously, the endpoints of theEdge
were treated specially for ghost points, and if none were there, execution proceeded directly to the incircle test. Ifx
is a ghost point, the calculation is nonsensical. Inserted a new check to see ifx
is a ghost point before proceeding to the actual incircle test.
- After an edge flip, not all of the necessary edges of the new pair of neighboring triangles received propagated legality testing. For two
- Querying
LocationGraphNode
for all leafTriangle
instances would leave all its nodes'visited
property set totrue
, so subsequent queries would return the empty set. Reset all nodes'visited
property tofalse
before returning the results of the query ingetTriangles()
. - Comparisons of
Triangle
now consider equality between sets of itsVertex
instances, instead of sets of itsEdge
s.