Skip to content

Instantly share code, notes, and snippets.

View tgjones's full-sized avatar

Tim Jones tgjones

View GitHub Profile
anonymous
anonymous / concerning.rb
Created December 18, 2012 18:00
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:
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
// Author: Agustin Gianni ([email protected]).
// 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;