public final class CGPoint extends Object
Constructor and Description |
---|
CGPoint(double x,
double y)
Constructs a CGPoint with specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
CGPoint |
applyAffineTransform(CGAffineTransform t)
Applies the specified affine transformation to this point.
|
boolean |
equals(Object o) |
double |
getX() |
double |
getY() |
int |
hashCode() |
void |
setX(double x) |
void |
setY(double y) |
String |
toString() |
static CGPoint |
zero()
Constructs and returns a default CGRect object located at (0,0) with 0
weight and 0 height.
|
public CGPoint(double x, double y)
x
- The x value of the CGPoint.y
- The y value of the CGPoint.public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public static CGPoint zero()
public CGPoint applyAffineTransform(CGAffineTransform t)
t
- The affine transformation that is applied to the point.CGAffineTransform
Copyright © 2020. All rights reserved.