SKPointI Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
public struct SKPointI
public struct SKPointI : IEquatable<SkiaSharp.SKPointI>
- Inheritance
-
SKPointI
- Implements
SKPointI(Int32, Int32) |
Initializes a point from two floating point values. |
SKPointI(SKSizeI) |
Initializes a new instance of the SKPointI class from a SKSizeI. |
Is |
Gets a value indicating whether this SKPointI is empty. |
Length |
Gets the Euclidean distance from the origin (0, 0). |
Length |
Gets the Euclidean distance squared from the origin (0, 0). |
X |
Gets or sets the x-coordinate of this SKPointI. |
Y |
Gets or sets the y-coordinate of this SKPointI |
Add(SKPointI, SKPointI) |
Translates a given SKPointI by the specified point. |
Add(SKPointI, SKSizeI) | |
Ceiling(SKPoint) |
Converts the specified SKPoint to a SKPointI by rounding the values of the SKPoint to the next higher integer values. |
Distance(SKPointI, SKPointI) |
Calculate the Euclidean distance between two points. |
Distance |
Calculate the Euclidean distance squared between two points. |
Equals(Object) |
Specifies whether this SKPointI contains the same coordinates as the specified Object. |
Equals(SKPointI) |
Specifies whether this SKPointI contains the same coordinates as the specified SKPointI. |
Get |
Calculates the hashcode for this point. |
Normalize(SKPointI) |
Returns a point with the same direction as the specified point, but with a length of one. |
Offset(Int32, Int32) |
Translates this SKPointI by the specified amount. |
Offset(SKPointI) | |
Reflect(SKPointI, SKPointI) |
Returns the reflection of a point off a surface that has the specified normal. |
Round(SKPoint) |
Converts the specified SKPoint to a SKPointI object by rounding the SKPoint values to the nearest integer. |
Subtract(SKPointI, SKPointI) |
Returns the result of subtracting specified point from the specified SKPointI. |
Subtract(SKPointI, SKSizeI) |
Returns the result of subtracting specified SKSizeI from the specified SKPointI. |
To |
Converts this SKPointI to a human readable string. |
Truncate(SKPoint) |
Converts the specified SKPoint to a SKPointI by truncating the values of the SKPoint. |
Addition(SKPointI, SKPointI) |
Translates a SKPointI by a given offset. |
Addition(SKPointI, SKSizeI) | |
Equality(SKPointI, SKPointI) |
Determines whether the coordinates of the specified points are equal. |
Explicit(SKPointI to SKSizeI) | |
Implicit(SKPointI to SKPoint) | |
Inequality(SKPointI, SKPointI) |
Determines whether the coordinates of the specified points are not equal. |
Subtraction(SKPointI, SKPointI) |
Translates a SKPointI by the negative of a given point. |
Subtraction(SKPointI, SKSizeI) |
Product | Versions |
---|---|
SkiaSharp | 1.60.x, 1.68.x, 2.80.x, 2.88.x |
SkiaSharp feedback
SkiaSharp is an open source project. Select a link to provide feedback: