Skip to content

GregTheDev/LibErfa.Interop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibErfa.Interop

.NET wrapper for the liberfa library.

Includes v2.0.1 of liberfa and supports Windows, Linux and MacOS (Intel only for now).

API Reference

Limited functionality is available initially. If you need a function that is not currently available you can log an issue and it will be added as quickly as possible.

For a full list of available functions see here.

Installation

Install the LibErfa.Interop pacakge from NuGet.

.NET CLI

dotnet add package LibErfa.Interop

Package Manager Console

Install-Package LibErfa.Interop

Usage

Include the LibErfa.Interop namespace in your using statements.

All methods are exposed as static methods on the Erfa class.

using LibErfa.Interop;

namespace SampleApp
{
    internal class Program
    {
        static void Main(string[] args)
        {
            double[] p = new double[3];
            double theta = 0;
            double phi = 0;

            p[0] = 100.0;
            p[1] = -50.0;
            p[2] = 25.0;

            Erfa.c2s(p, ref theta, ref phi);

            Console.WriteLine(result);
        }
    }
}

About

.NET wrapper around the liberfa library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages