2using System.Collections.Generic;
4using System.Reflection;
40 public static float Remap(
this float _value,
float _from1,
float _to1,
float _from2,
float _to2)
42 return (_value - _from1) / (_to1 - _from1) * (_to2 - _from2) + _from2;
55 public static Vector3
Abs(
this Vector3 _value)
77 Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
78 IEnumerable<Type> types =
new List<Type>();
81 foreach (Assembly assembly
in assemblies)
82 types = types.Union(assembly.GetTypes().Where(t =>
84 && _baseType.IsAssignableFrom(t)
91 return types.ToArray();
Various utilities used throughout the project.
static float Remap(this float _value, float _from1, float _to1, float _from2, float _to2)
Remaps a float between [_from1 - _from2] to [_to1 - _to2] Preserves the float's position in the range...
static Vector3 Abs(this Vector3 _value)
Gets the absolute value of all components of a vector at once.
static Type[] FindDerivedTypes(Type _baseType)
Gets all types derived from a given one. Does not include:Interfaces Generic classes Abstract classes
Base interfaces and classes for components, e.g: track accessors, output accessors.
Components to be placed on scene objects, e.g: Outputs, Broadcasters, Observers.
Editor scripts for classes and attributes, notably excluding MultiselectAttribute.
Tracks to be used on a radio- includes base classes.