2010年5月20日木曜日

2Dグラフィクス関数


Creating a Dictionary Representation From a Geometric Primitive


Creating a Geometric Primitive From a Dictionary Representation


Creating a Geometric Primitive From Values

  • CGPointMake
  • CGRectMake(x, y, width, height)
  •  指定した座標と寸法の値を代入したCGRect構造体を返す。値の型はCGFloat。x,yはMacと異なり左上の座標となる。
  • CGSizeMake

Modifying Rectangles


Comparing Values


Checking for Membership


Getting Min, Mid, and Max Values


Getting Height and Width


Checking Rectangle Characteristics

0 件のコメント:

コメントを投稿