Point2f
ReferencesConstructors
Coordinates will be internally converted to floating point numbers. This might cause precision loss.
Properties
Indexers
Methods
Add
#(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
Add
#(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
0: if this is identical to other
-1: if this.X < other.X
-1: if this.X == other.X and this.Y < other.Y
+1: otherwise.
DistanceTo
#Divide
#(Provided for languages that do not support operator overloading. You can use the / operator otherwise)
Equals
#GetHashCode
#Multiply
#(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Multiply
#(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
Negate
#(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
Subtract
#(Provided for languages that do not support operator overloading. You can use the - operator otherwise)
Subtract
#(Provided for languages that do not support operator overloading. You can use the - operator otherwise)
ToString
#Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Vector2f | + | Point2f | Point2f | Sums up a point and a vector, and returns a new point. |
| Point2f | + | Point2f | Vector2f | Sums two Point2fs. |
| Point2f | / | float | Point2f | Divides a Point2f by a scalar. |
| Point2f | == | Point2f | bool | Determines whether two Point2f have equal values. |
| Point2f | > | Point2f | bool | Determines whether the first specified Point2f comes after (has superior sorting value than) the second point. Coordinates evaluation priority is first X, then Y. |
| Point2f | >= | Point2f | bool | Determines whether the first specified Point2f comes after (has superior sorting value than) the second point, or it is equal to it. Coordinates evaluation priority is first X, then Y. |
| Point2f | != | Point2f | bool | Determines whether two Point2f have different values. |
| Point2f | < | Point2f | bool | Determines whether the first specified Point2f comes before (has inferior sorting value than) the second point. Coordinates evaluation priority is first X, then Y. |
| Point2f | <= | Point2f | bool | Determines whether the first specified Point2f comes before (has inferior sorting value than) the second point, or it is equal to it. Coordinates evaluation priority is first X, then Y. |
| float | * | Point2f | Point2f | Multiplies a Point2f by a scalar. |
| Point2f | * | float | Point2f | Multiplies a Point2f by a scalar. |
| Point2f | - | Vector2f | Point2f | Subtracts a vector from a point. |
| Point2f | - | Point2f | Vector2f | Subtracts two Point2fs. |
| - | Point2f | Point2f | Computes the additive inverse of all coordinates in the point, and returns the new point. | |