float y { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The y property represents the Y component of a Vector4 structure. This component is a single-precision floating-point value that is part of the four-dimensional vector, which is commonly used in graphics and physics calculations.

Usage

To access or modify the Y component of a Vector4 instance, use the y property. This property is read-write, allowing you to both retrieve the current value and assign a new value to it.

Example

// Example of using the y property
Vector4 vector = new Vector4();
vector.y = 5.0f; // Set the Y component
float yValue = vector.y; // Get the Y component

// Output the Y component
// Note: Use a logging system instead of Console.WriteLine in s&box
Log.Info($"The Y component is: {yValue}");