Vector2F Structure |
Namespace: NeoAxis
public struct Vector2F
The Vector2F type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector2F(Vector2F) |
Constructs a vector with another given vector.
| |
| Vector2F(Single, Single) |
Constructs a vector with the given individual elements.
|
| Name | Description | |
|---|---|---|
| Abs |
Returns a vector whose elements are the absolute values of each of the specified vector's components.
| |
| Acos |
Calculates the arc-cosine of each component of the specified vector.
| |
| Add |
Adds two vectors.
| |
| AllNonZero |
Determines whether all components of a given vector are unequal to the zero.
| |
| AnyNonZero |
Determines whether any component of a given vector is unequal to the zero.
| |
| Asin |
Calculates the arc-sine of each component of the specified vector.
| |
| Atan |
Calculates the arc-tangent of each component of the specified vector.
| |
| Atan2 |
Returns the vector which contains the angles in radians whose tangents are the quotient of the corresponding components in the first specified vector y and the second specified vector x.
| |
| Clamp |
Restricts the current instance of Vector2F to be within a specified range and returns the clamped value.
| |
| Cos |
Calculates the cosine of each component of the specified vector.
| |
| Cosh |
Calculates the hyperbolic cosine of each component of the specified vector.
| |
| Cross(Vector2F) |
Calculates the cross product of two vectors.
| |
| Cross(Vector2F, Vector2F) |
Calculates the cross product of two vectors.
| |
| Cross(Vector2F, Vector2F) |
Calculates the cross product of two vectors.
| |
| Cross(Vector2F, Vector2F, Vector2F) |
Calculates the cross product of two vectors.
| |
| Distance(Vector2F, Vector2F) |
Calculates the distance between two vectors.
| |
| Distance(Vector2F, Vector2F) |
Calculates the distance between two vectors.
| |
| Divide(Single, Vector2F, Vector2F) |
Divides a scalar by a vector.
| |
| Divide(Vector2F, Vector2F, Vector2F) |
Divides the first vector by the second vector.
| |
| Divide(Vector2F, Single, Vector2F) |
Divides a vector by a given scalar.
| |
| Dot(Vector2F) |
Calculates the dot product of two vectors.
| |
| Dot(Vector2F) |
Calculates the dot product of two vectors.
| |
| Dot(Vector2F, Vector2F) |
Calculates the dot product of two vectors.
| |
| Dot(Vector2F, Vector2F) |
Calculates the dot product of two vectors.
| |
| Equals(Object) |
Determines whether the specified object is equal to the current instance of Vector2F.
(Overrides ValueTypeEquals(Object).) | |
| Equals(Vector2F, Single) |
Determines whether the specified vector is equal to the current instance of Vector2F with a given precision.
| |
| Equals(Vector2F, Single) |
Determines whether the specified vector is equal to the current instance of Vector2F with a given precision.
| |
| Exp |
Returns the vector which contains e raised to the power of n, where n is the corresponding component in the specified vector.
| |
| GetClamp |
Restricts the current instance of Vector2F to be within a specified range and returns the clamped value.
| |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetNormalize |
Converts the current instance of Vector2F into a unit vector and returns the normalized vector.
| |
| GetSaturate |
Clamps the components of the current instance of Vector2F between 0 and 1 and returns the saturated value.
| |
| GetTruncate |
Rounds a given vector towards zero for each component in it and returns the truncated vector.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Length |
Calculates the length of the current instance of Vector2F.
| |
| LengthSquared |
Calculates the squared length of the current instance of Vector2F.
| |
| Lerp(Vector2F, Vector2F, Single) |
Performs a linear interpolation between two vectors based on the given weighting.
| |
| Lerp(Vector2F, Vector2F, Single, Vector2F) |
Performs a linear interpolation between two vectors based on the given weighting.
| |
| Log |
Calculates the natural logarithm of each component of the specified vector.
| |
| Log10 |
Calculates the base 10 logarithm of each component of the specified vector.
| |
| Max |
Returns a vector containing the largest components of the specified vectors.
| |
| MaxComponent |
Returns the value of the largest component of the current instance of Vector2F.
| |
| Min |
Returns a vector containing the smallest components of the specified vectors.
| |
| MinComponent |
Returns the value of the smallest component of the current instance of Vector2F.
| |
| Multiply(Single, Vector2F, Vector2F) |
Multiplies a vector by a given scalar.
| |
| Multiply(Vector2F, Vector2F, Vector2F) |
Multiplies two vectors together.
| |
| Multiply(Vector2F, Single, Vector2F) |
Multiplies a vector by a given scalar.
| |
| Negate |
Reverses the direction of a given vector.
| |
| Normalize |
Converts the current instance of Vector2F into a unit vector.
| |
| Normalize(Vector2F) |
Converts a vector into a unit vector.
| |
| Normalize(Vector2F, Vector2F) |
Converts a vector into a unit vector.
| |
| Parse |
Converts a string representation of a vector into the equivalent Vector2F structure.
| |
| Pow |
Returns the vector which contains the components of the first specified vector raised to power of the numbers which are equal to the corresponding components of the second specified vector.
| |
| Saturate |
Clamps the components of the current instance of Vector2F between 0 and 1.
| |
| Select |
Chooses one of two vectors depending on the pick1 value.
| |
| Sin |
Calculates the sine of each component of the specified vector.
| |
| Sinh |
Calculates the hyperbolic sine of each component of the specified vector.
| |
| Sqrt |
Calculates the square root of each component of the specified vector.
| |
| Subtract |
Subtracts two vectors.
| |
| Tan |
Calculates the tangent of each component of the specified vector.
| |
| Tanh |
Calculates the hyperbolic tangent of each component of the specified vector.
| |
| ToString |
Returns a String that represents the current instance of Vector2F.
(Overrides ValueTypeToString.) | |
| ToString(Int32) |
Returns a String that represents the current instance of Vector2F with a given precision.
| |
| ToVector2 |
Converts the current instance of Vector2F into the equivalent Vector2 structure.
| |
| ToVector2H |
Converts the current instance of Vector2F into the equivalent Vector2H structure.
| |
| ToVector2I |
Converts the current instance of Vector2F into the equivalent Vector2I structure.
| |
| Truncate |
Rounds the current instance of Vector2F towards zero for each component in a vector.
|
| Name | Description | |
|---|---|---|
| Addition |
Adds two vectors.
| |
| Division(Single, Vector2F) |
Divides a scalar by a vector.
| |
| Division(Vector2F, Vector2F) |
Divides the first vector by the second vector.
| |
| Division(Vector2F, Single) |
Divides a vector by a given scalar.
| |
| Equality |
Determines whether two given vectors are equal.
| |
| (Vector2F to Vector2) |
Implicit conversion from Vector2F type to Vector2 type for given value.
| |
| Inequality |
Determines whether two given vectors are unequal.
| |
| Multiply(Single, Vector2F) |
Multiplies a vector by a given scalar.
| |
| Multiply(Vector2F, Vector2F) |
Multiplies two vectors together.
| |
| Multiply(Vector2F, Single) |
Multiplies a vector by a given scalar.
| |
| Subtraction |
Subtracts two vectors.
| |
| UnaryNegation |
Reverses the direction of a given vector.
|
| Name | Description | |
|---|---|---|
| One |
Returns the vector (1,1).
| |
| X |
The X component of the vector.
| |
| XAxis |
Returns the vector (1,0,0).
| |
| Y |
The Y component of the vector.
| |
| YAxis |
Returns the vector (0,1,0).
| |
| Zero |
Returns the vector (0,0).
|
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |