<div dir="ltr">Man I feel silly. but then I am fighting a chest cold. I guess this happens easier when you don't have completion or highlighting that I am used to in an IDE. </div><div class="gmail_extra"><br clear="all">
<div><div dir="ltr"><div style="font-family:arial;font-size:small"><b>Robert Simmons Jr. MSc. - Lead Java Architect @ EA</b></div><div style="font-family:arial;font-size:small"><i>Author of: Hardcore Java (2003) and Maintainable Java (2012)</i></div>
<div><i style="font-family:arial;font-size:small">LinkedIn: </i><font face="arial"><i><a href="http://www.linkedin.com/pub/robert-simmons/40/852/a39" target="_blank">http://www.linkedin.com/pub/robert-simmons/40/852/a39</a></i></font></div>
</div></div>
<br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 1:27 AM, Vlad Dumitrescu <span dir="ltr"><<a href="mailto:vladdu55@gmail.com" target="_blank">vladdu55@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div class="im"><br>
On Fri, Feb 7, 2014 at 8:25 AM, kraythe . <<a href="mailto:kraythe@gmail.com">kraythe@gmail.com</a>> wrote:<br>
> coordinateGreaterThan(V, {X, Y, Z}) when X > V; Y > V; Z > V -> true;<br>
> coordinateGreaterThan(_, _) -> false.<br>
><br>
> %% Culls the list of vectors X to only those that are in the sphere devined<br>
> by vector C as a center and R as a radius.<br>
> cull(C, R, Vectors) when is_number(R), is_tuple(C) -> cull(C, R, Vectors,<br>
> []).<br>
> cull(C, R, Culled, []) -> Culled;<br>
> cull(C, R, Culled, [Head|Tail]) -><br>
> D = subtract(C, Head),<br>
> case coordinateIsGreaterThan(R, Head) of<br>
> true -> cull(C, R, Culled, Tail);<br>
><br>
</div><div class="im">> 1) Why is it saying my coordinateIsGreaterThan/2 method is undefined when I<br>
> can see it here and then to say it is unused in the next line? That seems<br>
> contradictory?<br>
<br>
</div>Look carefully and see that you define "coordinateGreaterThan" and<br>
call "coordinateIsGreaterThan".<br>
<br>
regards,<br>
Vlad<br>
</blockquote></div><br></div>