FVector2 Class

Single floating point 2D Vector.

Definition

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

Constructors

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

Properties

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

Methods

Clear Clear the values on the specified vector.
Clone Return a memberwise clone of the provided vector.
ClosestPoint(FVector2, ListFArea) Return the closest point to the check-point.
ClosestPoint(FVector2, ListFVector2) Return the closest point to the check-point.
Delta Return the coordinate difference between two vectors.
Dot Return the dot product of two vectors.
Equals Return a value indicating whether this item's members are equal to the members of the caller's item.
(Overrides ObjectEquals(Object))
Finalize
(Inherited from Object)
GetArray Return an array of values representing the member axes of the provided item.
GetCenter Return the center point of the collection of points.
GetHashCode Return the unique hash code for this instance.
(Overrides ObjectGetHashCode)
GetType
(Inherited from Object)
Invert Invert the values of the caller's coordinate.
IsDifferent Return a value indicating whether two vectors are different.
IsEmpty Return a value indicating whether the specified vector is empty.
Length Return the length of the vector.
Magnitude Return the absolute magnitude of the provided vector.
MagnitudeSquared Return the magnitude of the vector squared.
MemberwiseClone
(Inherited from Object)
MiddlePoint Return the middle coordinate between two vectors.
Negate Negate the values of the caller's coordinate.
Normalize Normalize the values of the provided vector to unit value.
Offset Return a new instance the caller's vector, translated by the specified offset.
OnCoordinateChanged Raise the CoordinateChanged event whenever coordinates have changed.
Parse Parse a coordinate string and return its FVector2 representation.
Rotate(FVector2, 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 vector by a uniform factor.
Set Set the values of the vector in an abbreviated call.
SetArray Set the specified vector's values from the contents of the provided array.
ToString Return the string representation of this item.
(Overrides ObjectToString)
TransferValues Transfer the member values of one instance to another.
Translate Translate the values of the caller's vector by the provided offset.
Zero Zero the values of the specified vector.

Events

CoordinateChanged Fired when a coordinate has changed.

Operators

Addition(FVector2, FVector2) Return the result of the values of two vectors added together.
Division(FVector2, Single) Return the result of a point divided by a scalar.
Division(Single, FVector2) Return the result of a scalar divided by a point.
Equality(FVector2, FVector2) Return a value indicating whether values of two points are equal.
Inequality(FVector2, FVector2) Return a value indicating whether values of two vectors are not equal.
Multiply(FVector2, Single) Return the result of a point multiplied by a scalar.
Multiply(Single, FVector2) Return the result of a point multiplied by a scalar.
Subtraction(FVector2, FVector2) Return the result of one vector subtracted from another.

Fields

mReadOnly Private member for ReadOnly.
mX Private member for X.
mY Private member for Y.

See Also