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)
DistanceTo
#| other (Point2f) | Other point for distance measurement. |
| other (Point2f) | Other point for distance measurement. |
Divide
#(Provided for languages that do not support operator overloading. You can use the / operator otherwise)
Equals
#| obj (object) | The specified object. |
| point (Point2f) | The specified point. |
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)
| point (Point2f) | A point. |
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)
| obj (object) |
ToString
#| format (string) | The format to use. -or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation. |
| formatProvider (IFormatProvider) | The provider to use to format the value. -or- A null reference (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. | |