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
// Author: Agustin Gianni (agustingianni@gmail.com). | |
// License: BSD variant "if you steal my shit i'll cut you". | |
#include <iostream> | |
#include <random> | |
#include <limits> | |
#include <cassert> | |
#include <cstdio> | |
using namespace std; |
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
public struct Pose | |
{ | |
public static Pose Identity = new Pose { Scale = Vector3.One, Quaternion = Quaternion.Identity, Translation = Vector3.Zero }; | |
public Quaternion Quaternion; | |
public Vector3 Translation; | |
public Vector3 Scale; | |
#region Operations and Conversions |
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
class Module | |
# We often find ourselves with a medium-sized chunk of behavior that we'd | |
# like to extract, but only mix in to a single class. | |
# | |
# We typically choose to leave the implementation directly in the class, | |
# perhaps with a comment, because the mental and visual overhead of defining | |
# a module, making it a Concern, and including it is just too great. | |
# | |
# | |
# Using comments as lightweight modularity: |