CGPoint
A structure that contains a point in a two-dimensional coordinate system.
Static Method Summary
Static Public Methods | ||
public static |
pointWithDictionaryRepresentation(dict: Map): void Creates a point from a canonical dictionary representation. |
Constructor Summary
Public Constructor | ||
public |
constructor(x: number, y: number) Creates a point with coordinates specified as integer values. |
Member Summary
Public Members | ||
public get |
customMirror: Mirror Mirrors are used by playgrounds and the debugger. |
|
public get |
customPlaygroundQuickLook: PlaygroundQuickLook |
|
public get |
|
|
public get |
|
|
public |
x: * |
|
public |
y: * |
Method Summary
Public Methods | ||
public |
|
|
public |
Returns the point resulting from an affine transformation of an existing point. |
|
public |
|
|
public |
|
|
public |
Returns whether two points are equal. |
|
public |
|
|
public |
floatArray(): number[] |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
zero(): * |
Static Public Methods
public static pointWithDictionaryRepresentation(dict: Map): void source
Creates a point from a canonical dictionary representation.
Params:
Name | Type | Attribute | Description |
dict | Map | A dictionary containing x and y values for the point to create, in the format used by the dictionaryRepresentation property. |
Return:
void |
Public Constructors
Public Members
public get customPlaygroundQuickLook: PlaygroundQuickLook source
public x: * source
public y: * source
Public Methods
public applying(t: CGAffineTransform): CGPoint source
Returns the point resulting from an affine transformation of an existing point.
Params:
Name | Type | Attribute | Description |
t | CGAffineTransform | The affine transform to apply. |
public equalTo(point2: CGPoint): boolean source
Returns whether two points are equal.
Params:
Name | Type | Attribute | Description |
point2 | CGPoint |