Get all Vector2 Points Within Radius

Posted by CheapDevotion on Stack Overflow See other posts from Stack Overflow or by CheapDevotion
Published on 2010-06-11T05:08:58Z Indexed on 2010/06/11 5:12 UTC
Read the original article Hit count: 159

Filed under:
|
|

I am looking for a formula that will give me all of the Vector2 Points within a certain radius given the center.

Essentially what I am trying to do is change the color of each pixel in a 256 x 256 texture that is within a certain radius from a specific pixel (Using the Unity3d Game Engine). Programming Language doesn't really matter, as I can probably convert it to something I can use.

© Stack Overflow or respective owner

Related posts about unity

Related posts about circle