[Haskell-cafe] Find a point inside (x,y,z) -> Bool

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Thu Oct 29 09:23:11 UTC 2015

On Thu, Oct 29, 2015 at 10:01:49AM +0100, martin wrote:
> I hope this is not a too silly question. It goes like this:
> Suppose I have a shape defined as
> (x,y,z) -> Bool
> how can I find a Point inside this shape? Obviously I could iterate through all possible x,y and z, but this appears
> very expensive.

There is no better way in general, so if you want to find points inside a
shape you should use a different encoding of shapes.


More information about the Haskell-Cafe mailing list