title: ccp & cpv - function difference & full form of cocoa
body: <p>I have following code in my Application.</p>
  
  <p>I am new to game development in iPhone using COCOS.</p>
  
  <pre><code>Sprite *bg=[Sprite spriteWithFile:@"menu.png"];
      [bg setPosition:ccp(240,160)];
      [self addChild:bg z:0];
      [self addChild:[GameLayer node] z:1];
  }
  return self;
  </code></pre>
  
  <p>}</p>
  
  <pre><code>@end
  @implementation GameLayer
  -(id)init{
      if(self=[super init]){
          Label *test=[Label labelWithString:@"Hello World" fontName:@"Helvetica" fontSize:24];
          test.position=cpv(160, 240);
          test.visible=YES;
          [self addChild:test];
      }
      return self;
  }
  </code></pre>
  
  <p>What is the function of ccp &amp; cpv?
  ( I think it is for setting the layer's position, But I am not sure. So I am Asking)</p>
  
  <p>Sagar</p>