FPoint Class

Single-precision 2D point.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2613.4238
C#
public class FPoint : FVector2
Inheritance
Object    FVector2    FPoint

Remarks

This class exists to take advantage of first-class object behavior during operation. It is similar in usage to the System.Windows.PointF, but is accessible by reference wherever it is used. As a result, once the item is assigned in a helper function, its members continue to carry exactly the same information as the root instance until they are changed.

Constructors

FPoint Create a new Instance of the FPoint Item.
FPoint(FPoint) Create a new Instance of the FPoint Item.
FPoint(FVector2) Create a new Instance of the FPoint Item.
FPoint(Single, Single) Create a new Instance of the FPoint Item.

Properties

ReadOnly Get/Set a value indicating whether this item is read-only.
(Inherited from FVector2)
X Get/Set the X value of the coordinate.
(Inherited from FVector2)
Y Get/Set the Y value of the coordinate.
(Inherited from FVector2)

Methods

Clone Return a memberwise clone of the provided point.
ClosestPoint Return the closest point to the check-point.
Delta Return the coordinate difference between two points.
Equals Return a value indicating whether this item's members are equal to the members of the caller's item.
(Overrides FVector2Equals(Object))
Finalize
(Inherited from Object)
GetHashCode Return the unique hash code for this instance.
(Overrides FVector2GetHashCode)
GetType
(Inherited from Object)
Invert Invert the values of the caller's coordinate.
MemberwiseClone
(Inherited from Object)
MiddlePoint Return the middle coordinate between two points.
Offset Return a new instance the caller's point, translated by the specified offset.
OnCoordinateChanged Raise the CoordinateChanged event whenever coordinates have changed.
(Inherited from FVector2)
Parse Parse a coordinate string and return its FPoint representation.
Rotate(FPoint, Single) Rotate the caller's point around the origin.
Rotate(Single, Single, Single) Rotate the caller's point around the origin.
Scale Scale the caller's point by a uniform factor.
ToString Return the string representation of this item.
(Inherited from FVector2)
TransferValues Transfer member values to the specified target.

Events

CoordinateChanged Fired when a coordinate has changed.
(Inherited from FVector2)

Operators

Addition(FPoint, FPoint) Return the result of the values of two points added together.
Multiply(FPoint, Single) Return the result of a point multiplied by a scalar.
Multiply(Single, FPoint) Return the result of a point multiplied by a scalar.
Subtraction(FPoint, FPoint) Return the result of one point subtracted from another.

Fields

mReadOnly Private member for ReadOnly.
(Inherited from FVector2)
mX Private member for X.
(Inherited from FVector2)
mY Private member for Y.
(Inherited from FVector2)

See Also