Brandon Fosdick
Brandon Fosdick
It's currently possible to check that a Hash contains a given key and that the key's value matches a desired value. However, checking for the presence of a key without...
What's the Qo-ish way to affect something similar to backreferences? For example, match a Hash where the value of the `:foo` key matches the value of the `:bar` key. ```ruby...
http://en.wikipedia.org/wiki/List_of_geometric_shapes https://en.wikipedia.org/wiki/Circular_sector Particularly the list of two-dimensional shapes. The "Elsewhere" subsection can probably be ignored. - ~~Annulus~~
Everything that has an area should have an area method
There's no reason for Polygon#closed? to fall through to Polyline#closed?. Polygons are always closed, so don't bother checking it. But, overriding the method seems to break all of the tests...
Implement north, south, east, and west methods in addition to the existing up, down, left and right methods
Mentioned in section 5 of this paper: http://ralph.cs.cf.ac.uk/papers/Geometry/boxing.pdf
As long as the dimensions agree, add them together and return a new Size
Generating the vertices requires knowing the angle of the first vertex, which would be equal to the rotation property. It currently assumes that the first vertex is on the X-axis,...
That infinite flat thing that divides a space into two half-spaces. It can be specified with an origin and a surface normal vector, or a surface normal vector and a...