This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Beweis Logarithmusregel | |
## Logarithmisch Differenzieren | |
**zz:** $ log_a(x) = \frac 1{x * ln(a)} $ | |
### teil 1: | |
##### sonderfall $ a = e $ → $ log_a = ln $ | |
**zz:** $ ln(x) = \frac1x$ | |
$$ e^{ln(x)} = x \ \ | \frac d{dx}$$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Arkustangenz ableiten | |
$ f(x) = tan(x) $ und $ \bar f = arctan(x)$ | |
$$ f(\bar f(x)) = x$$ | |
$$ \frac{\delta f(\bar f(x))}{\delta x} = \frac{\delta x}{\delta x} $$ | |
$$ \frac{\delta tan(arctan(x))}{\delta x} = \frac{\delta x}{\delta x} $$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
watching this video: https://unity3d.com/learn/tutorials/modules/advanced/scripting/procedural-cave-generation-pt1 | |
made me scream because of this much copy-and-paste the nested-loop thing | |
so here are a few workarounds: | |
*/ | |
int width = 3, height = 2; | |
int[,] fields = new int[height, width]; // (m x n)-matrix | |
// --------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class HealthBarRenderer : MonoBehaviour { | |
/// <summary> | |
/// This attributes should be read from a unit's Health-Component | |
/// </summary> | |
[Header("Health Attributes")] | |
public int Health; | |
public int PhysicalShield; | |
public int MagicalShield; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections.Generic; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class MultiTransformClipboard { | |
const string ComponentName = "Transform"; | |
static MultiTransformClipboard() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// This class uses the decorator pattern and the Idisposable interface to allow a cleaner usage of raycast/spherecasts | |
/// or other physic quarrys, which should not hit the gameobject | |
/// </summary> | |
class PhysicsDisposable : IDisposable { | |
private static Stack<PhysicsDisposable> Pool = new Stack<PhysicsDisposable>(4); | |
private List<Collider> colliders = new List<Collider>(2); | |
private List<int> originalLayer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SomeCameraTest : MonoBehaviour { | |
private Bounds outer_bounds; | |
private Bounds inner_bounds; | |
private bool bounds_reached = false; | |
[SerializeField] private Transform target; | |
[SerializeField] private Camera cam; | |
[SerializeField] private float camSpeed = 8f; // set to player speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Assets.Soraphis.MiniScripts { | |
public class AdditionalTextAttribute : PropertyAttribute { | |
public readonly string Text; | |
public AdditionalTextAttribute(string text) { | |
Text = text; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
namespace Assets.Soraphis.Lib { | |
public static class RectExtensions { | |
/// <summary> | |
/// Splits a Rect in vertical ordered, even, pieces and returns the piece at the given index | |
/// </summary> | |
public static Rect SplitRectV(this Rect rect, int many, int start, int length = 1) { | |
var height = rect.height/many; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minecraft Mod: "Solar Flux" | |
Modpack: Project Ozone Lite | |
Calculating Cost Efficiency | |
3 x Chaotic Solar Panel -> 1572864.0 RF/t 100.00% | |
4 x Draconic Solar Panel -> 524288.0 RF/t 33.33% | |
8 x Solar Panel 8 -> 262144.0 RF/t 16.67% |
OlderNewer