float y { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The y property represents the Y component of a Vector4 structure. It is a single-precision floating-point value that can be accessed and modified to represent the Y coordinate in a 4-dimensional vector space.

Usage

To access or modify the Y component of a Vector4 instance, use the y property. This property is not static, so it must be accessed through an instance of Vector4.

Example

// Example of accessing and modifying the y component of a Vector4

// Create a new Vector4 instance
Vector4 vector = new Vector4();

// Set the y component
vector.y = 5.0f;

// Access the y component
float yValue = vector.y;

// Output the y component
// Note: Use a logging system or UI element to display the value
// Example: Log.Info($"Y Component: {yValue}");