How to validate/check drawing made by CCRenderTexture are correct or not ??

hi, in my demo project the user is made to draw some custom drawings like a circle or a square , iam useing CCRenderTexture to draw and collecting the points to a vector , now how can i validate these points to generate a result so that this is the desired object or not ??

I think you should do some math to validate it.