Magma.Maths 1.0.1

Install-Package Magma.Maths -Version 1.0.1
dotnet add package Magma.Maths --version 1.0.1
<PackageReference Include="Magma.Maths" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Magma.Maths --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Magma.Maths, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Magma.Maths as a Cake Addin
#addin nuget:?package=Magma.Maths&version=1.0.1

// Install Magma.Maths as a Cake Tool
#tool nuget:?package=Magma.Maths&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Magma.Maths

This is a maths library that is meant to be used in conjunction with the Magma.OpenGL and Magma.Vulkan assemblies.

Example Code:

using System;
using Magma.Maths;

namespace Sandbox
{
    class Program
    {
        static void Main(string[] args)
        {
            Matrix4f transform = Matrix4f.Translation(new Vector3f(1.0f, 1.0f, 1.0f))
                                        .Rotate(45.0f.ToRadians(), new Vector3f(1.0f, 0.0f, 0.0f))
                                        .Scale(new Vector3f(1.0f, 1.5f, 1.0f));

            float det = transform.Determinant();

            Vector3f vec = new Vector3f(100.0f, 2.0f, -93.4f);
            vec.Normalize();

            Console.WriteLine(transform.ToString());
            Console.WriteLine(det);
            Console.WriteLine(vec.ToString());
        }
    }
}

Output:

[1.000, 0.000, 0.000, 0.000]
[0.000, 1.061, 1.061, 0.000]
[0.000, -0.707, 0.707, 0.000]
[1.000, 1.000, 1.000, 1.000]

1.4999999
[0.731, 0.015, -0.683]
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 152 5/12/2021