Title: Theory / Important / CS / Programming / Objective-C / Library / CG / Geometry
Tags: automatedNewLineAfterCommaSpace
On every note of this deck, unless a note says otherwise:
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc

Typ: CGSize
Meaning: A structure that contains width and height values.
Page: https://developer.apple.com/documentation/coregraphics/cgsize?language=objc
Language: Objective-C

Variable: size.width
Meaning: A width float value
Page: https://developer.apple.com/documentation/coregraphics/cgsize?language=objc
Language: Objective-C
Variables: CGSize size

Variable: size.height
Meaning: A heigh float value
Page: https://developer.apple.com/documentation/coregraphics/cgsize?language=objc
Language: Objective-C
Variables: CGSize size

Question: What is the unit of measure of CGGeometry
Answer: There are none. it's up to the user to interpret in a unit
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Chapter: Objective-C
Context: iOS UI

Name: A standardized-rectangle
Definition: A rectangle with non-negative measures
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Chapter: Objective-C
Context: iOS UI

Typ: CGGeometry
Meaning: Various structures and associated functions for 2D geometric primitives.
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Language: Objective-C
Context: iOS UI

Typ: CGPoint
Meaning: A structure that contains a point in a two-dimensional coordinate system.
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Language: Objective-C
Context: iOS UI

Variable: point.(x|y)
Meaning: The x|y coordinate of point
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Context: iOS UI
Language: Objective-C
Variables: CGPoint point

Variable: rect.origin
Meaning: Point of origin of the rectangle
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Context: iOS UI
Language: Objective-C
Variables: CGRect rect

Variable: rect.size
Meaning: CGSize of rect
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Context: iOS UI
Language: Objective-C
Variables: CGRect rect

Typ: CGRect
Meaning: A structure that contains the location and dimensions of a rectangle.
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Language: Objective-C
Context: iOS UI
Variables: CGRect rect

Instruction: CGRectIsNull(rect)
Language: Objective-C
Context: iOS UI
Returns: whether the rectangle is equal to the null rectangle.
Variables: CGRect rect

Instruction: CGRectIsInfinite(rect)
Language: Objective-C
Context: iOS UI
Returns: whether a rectangle is infinite.
Variables: CGRect rect

Instruction: CGRectIsEmpty(rect)
Language: Objective-C
Context: iOS UI
Returns: whether a rectangle has zero width or height, or is a null rectangle.
Variables: CGRect rect

Instruction: CGRectContainsRect(
  rect1,
  rect2
)
Language: Objective-C
Context: iOS UI
Returns: Whether rect1 contains rect2
Variables: CGRect rect

Instruction: CGRectContainsPoint(
  rect,
  point
)
Language: Objective-C
Context: iOS UI
Returns: Whether rect contains point
Variables: CGRect rect

Instruction: CGRectIntersectsRect(
  rect1,
  rect2
)
Language: Objective-C
Context: iOS UI
Returns: Whether rect1 and rect2 intersects
Variables: CGRect rect

Instruction: CG(Size|Rect|Point)CreateDictionaryRepresentation(size|rect|point)
Language: Objective-C
Context: iOS UI
Returns: a dictionary representation of the specified size|rect|point

Typ: CGVector
Meaning: A structure that contains a two-dimensional vector \((x,y)\).
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Language: Objective-C
Context: iOS UI

Variable: vector.d(x|y)
Meaning: the (x|y) component of the vector
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Context: iOS UI
Language: Objective-C
Typ: CGVector
Variables: CGVector vector

Typ: CGRectEdge
Meaning: Coordinates that establish the edges of a rectangle.
Page: https://developer.apple.com/documentation/coregraphics/cggeometry?language=objc
Language: Objective-C
Context: iOS UI

Constant: CGRect(Min|Max)(X|Y)Edge
Meaning: The (min|max)imum value for the (x|y)-coordinate of the rectangle. On macOs and iOS the edge of the rectangle
Language: Objective-C
Context: iOS UI
Extra: Coordinates that establish the edges of a rectangle.
Typ: CGRectEdge

Constant: CGRectNull
Meaning: The null rectangle
Language: Objective-C
Context: iOS UI

Constant: CGPointZero
Meaning: A point constant with location (0,0)
Language: Objective-C
Context: iOS UI

Constant: CGRectZero
Meaning: A rectangle constant with location (0,0), and width and height of 0.
Language: Objective-C
Context: iOS UI

Constant: CGSizeZero
Meaning: A size constant with width and height of 0.
Language: Objective-C
Context: iOS UI

Constant: CGRectInfinite
Meaning: A rectangle that has infinite extent.
Language: Objective-C
Context: iOS UI

Instruction: CG(Size|Rect|Point)MakeWithDictionaryRepresentation(
  dict,
  *size|rect|point
)
Effect: Fills in a size|rect|point using the contents of the specified dictionary.
Language: Objective-C
Context: iOS UI

Instruction: CG(Size|vector|Point)Make(
  x,
  y
)
Language: Objective-C
Context: iOS UI
Returns: a size|vector|point with specified coordinate

Instruction: CGRectMake(
  x,
  y,
  width,
  height
)
Language: Objective-C
Context: iOS UI
Returns: A rectangle with specified coordinates and size

Instruction: CGRectDivide(
  rect,
  *slice,
  *remainder,
  amount,
  edge
)
Effect: Put into slice the subrectangle of rect of size amount containing edge. Put into remainder the remainder
Language: Objective-C
Context: iOS UI

Instruction: CGRectInset(
  rect,
  dx,
  dy
)
Language: Objective-C
Context: iOS UI
Returns: A rectangle with same center, and size increased by (  dx,dy)

Instruction: CGRectIntegral(rect)
Language: Objective-C
Context: iOS UI
Returns: the smallest rectangle that results from converting the source rectangle values to integers.

Instruction: CGRectIntersection(
  rect1,
  rect2
)
Language: Objective-C
Context: iOS UI
Returns: Intersection of rect1 and rect2, or null rectangle if its empty

Instruction: CGRectOffset(
  rect,
  dx,
  dy
)
Language: Objective-C
Context: iOS UI
Returns: rect, with origin that is offset by (  dx, dy)

Instruction: CGRectStandardize(rect)
Language: Objective-C
Context: iOS UI
Returns: rect standardized

Instruction: CGRectUnion(
  rect1,
  rect2
)
Language: Objective-C
Context: iOS UI
Returns: the smallest rectangle that contains rect1 and rect2