Click or drag to resize

MCVector3ExtensionsChangeX Method (Vector2, Single)

Changes the X value of the target vector.

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.Utilities
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
[PureAttribute]
public static Vector2 ChangeX(
	this Vector2 vector,
	float x
)

Parameters

vector
Type: Vector2
The target vector.
x
Type: SystemSingle
New X value.

Return Value

Type: Vector2
Vector with specified X coordinate.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Vector2. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also