Click or drag to resize

MCVector3ExtensionsChangeY Method (Vector2, Single)

Changes the Y value of the target vector.

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.Utilities
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
public static Vector2 ChangeY(
	this Vector2 vector,
	float y


Type: Vector2
The target vector.
Type: SystemSingle
New Y value.

Return Value

Type: Vector2
Vector with specified Y 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