Vector4 C# Struct (Core/Vector4.cs)

godot · modules/mono/glue/GodotSharp/GodotSharp/Core/Vector4.cs · csharp · MIT
dev-tools, lang:csharp, fw:godot, tag:vector, tag:math, tag:geometry

C# struct representing a 4-component numeric vector with math operations for Godot's C# scripting API. Reuse for 4D coordinate or value calculations in Godot projects.

// Source: https://github.com/godotengine/godot | License: MIT | Copyright 2014-present Godot Engine contributors (see AUTHORS.md)
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.Runtime.InteropServices;

#nullable enable

namespace Godot
{
    /// <summary>
    /// 4-element structure that can be used to represent positions in 4D space or any other pair of numeric values.
    /// </summary>
    [Serializable]
    [StructLayout(LayoutKind.Sequential)]
    public struct Vector4 : IEquatable<Vector4>
    {
        /// <summary>
        /// Enumerated index values for the axes.
        /// Returned by <see cref="MaxAxisIndex"/> and <see cref="MinAxisIndex"/>.
        /// </summary>
 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key