Skip to content

Instantly share code, notes, and snippets.

@timsgardner
Last active August 29, 2015 14:14
Show Gist options
  • Save timsgardner/69ae1d83ecf7d07cc6ea to your computer and use it in GitHub Desktop.
Save timsgardner/69ae1d83ecf7d07cc6ea to your computer and use it in GitHub Desktop.
axis angle
using clojure.lang;
using System;
using UnityEngine;
namespace urbanOutfitters.moholy
{
[Serializable] // really?
public class axis_angle : AFunction
{
//
// Static Fields
//
protected internal static object const__3;
protected internal static object const__4;
protected internal static object const__2;
protected internal static Var const__0;
protected internal static object const__1;
//
// Constructors
//
static axis_angle ()
{
axis_angle.const__0 = RT.var ("clojure.core", "float");
axis_angle.const__1 = (object)0L;
axis_angle.const__2 = (object)0L;
axis_angle.const__3 = (object)0L;
axis_angle.const__4 = (object)0L;
}
//
// Methods
//
public override bool HasArity (int num)
{
return num == 1;
}
public override object invoke (object obj)
{
float num = RT.floatCast (0L);
Vector3 obj2 = new Vector3 (RT.floatCast ((object)axis_angle.const__2), RT.floatCast ((object)axis_angle.const__3), RT.floatCast ((object)axis_angle.const__4));
((Quaternion)obj).ToAngleAxis (out num, out obj2);
return RT.vector (new object[]
{
num,
obj2
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment