PointF Structure |
Namespace: Eto.Drawing
The PointF type exposes the following members.
| Name | Description | |
|---|---|---|
| PointF(Point) |
Initializes a new instance of a PointF class with values of the Pointpoint | |
| PointF(SizeF) | ||
| PointF(Single, Single) |
Initializes a new instance of a Point class with specified x and y values
|
| Name | Description | |
|---|---|---|
| Angle |
Gets the angle of the point as a vector from origin 0,0.
| |
| IsZero |
Gets a value indicating that both the X and Y co-ordinates of this point are zero
| |
| Length |
Gets the length of the point as a vector from origin 0,0
| |
| LengthSquared |
Gets the squared length of the point as a vector from origin 0,0.
| |
| Normal |
Gets the point as a normal vector (perpendicular) to the current point from the origin
| |
| UnitVector |
Gets the current point as a unit vector (a point with a Length of 1.0 from origin 0,0)
| |
| X |
Gets or sets the X co-ordinate of this point
| |
| Y |
Gets or sets the Y co-ordinate of this point
|
| Name | Description | |
|---|---|---|
| Abs |
Returns the absolute X and Y components of the specified point | |
| AngleTo |
Gets the angle of the width/height as a vector from the specified destination.
| |
| Distance(PointF) |
Gets the distance between this point and the specified point | |
| Distance(PointF, PointF) |
Gets the distance between two points using pythagoras theorem
| |
| DotProduct(PointF) |
Gets the dot product of this instance and the specified point | |
| DotProduct(PointF, PointF) |
Gets the dot product between two points
| |
| Equals(Object) |
Returns a value indicating that the specified obj is equal to this point
(Overrides ValueTypeEquals(Object).) | |
| Equals(PointF) |
Returns a value indicating that the specified other point is equal to this point
| |
| GetHashCode |
Gets the hash code of this point
(Overrides ValueTypeGetHashCode.) | |
| LengthTo |
Gets the length between this point and the destination point.
| |
| Max |
Returns the maximum X and Y components of two points
| |
| Min |
Returns the minimum X and Y components of two points
| |
| Offset(PointF) |
Offsets the X and Y co-ordinates of this point by the values from the specified offset | |
| Offset(Single, Single) |
Offsets the X and Y co-ordinates of this point by the specified x and y values
| |
| Offset(PointF, PointF) |
Offsets the X and Y co-ordinates of the point by the values from the specified offset | |
| Offset(PointF, Single, Single) |
Offsets the X and Y co-ordinates of the point by the specified x and y values
| |
| Restrict(RectangleF) |
Restricts the X and Y co-ordinates within the specified rectangle | |
| Restrict(Point, Rectangle) |
Restricts the X and Y co-ordinates of the specified point within the rectangle | |
| Rotate(Single) |
Treats the point as a vector and rotates it around the origin (0,0) by the specified angle.
| |
| Rotate(PointF, Single) |
Treats the point as a vector and rotates it around the origin (0,0) by the specified angle.
| |
| ToString |
Converts this point to a string
(Overrides ValueTypeToString.) | |
| UnitVectorAtAngle |
Creates a unit vector PointF (a point with a Length of 1.0 from origin 0,0) with the specified angle, in degrees
|
| Name | Description | |
|---|---|---|
| Addition(PointF, PointF) |
Operator to return the addition of two points as a PointF | |
| Addition(PointF, SizeF) |
Operator to add a size to a point
| |
| Addition(PointF, Single) |
Operator to add a value to both the X and Y co-ordinates of a point
| |
| Division(PointF, SizeF) |
Divides the specified point with a size | |
| Division(PointF, Single) |
Divides the X and Y co-ordinates of the specified point with a given value | |
| Equality |
Determines equality between two points
| |
| (SizeF to PointF) |
Explicit conversion from a size to a PointF with a X and Y of the Width and Height values of the size, respectively
| |
| (Point to PointF) |
Implicit conversion from a Point to a PointF | |
| Inequality |
Determines the inequality between two points
| |
| Multiply(Single, PointF) |
Multiplies the X and Y co-ordinates of the specified point with a given factor | |
| Multiply(PointF, PointF) | Multiplies the X and Y co-ordinates of the two specified point values | |
| Multiply(PointF, SizeF) |
Multiplies the specified point with a size | |
| Multiply(PointF, Single) |
Multiplies the X and Y co-ordinates of the specified point with a given factor | |
| Subtraction(PointF, PointF) |
Operator to return the difference between two points as a PointF | |
| Subtraction(PointF, SizeF) |
Operator to subtract a size from a point
| |
| Subtraction(PointF, Single) |
Operator to subtract a value from both the X and Y co-ordinates of a point
| |
| UnaryNegation |
Returns a new PointF with negative x and y values of the specified point |