Click or drag to resize

MCVector3ExtensionsChangeX Method (Vector3, 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 Vector3 ChangeX(
	this Vector3 vector,
	float x
)

Parameters

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

Return Value

Type: Vector3
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 Vector3. 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