Skip to content

Instantly share code, notes, and snippets.

@neildanson
Created November 6, 2012 22:12
Show Gist options
  • Save neildanson/4027958 to your computer and use it in GitHub Desktop.
Save neildanson/4027958 to your computer and use it in GitHub Desktop.
Declaring types
class Ray
{
private readonly Vector3D position;
private readonly Vector3D direction;
public Ray(Vector3D position, Vector3D direction)
{
this.position = position;
this.direction = direction;
}
public Vector3D Position { get { return position; } }
public Vector3D Direction { get { return direction; } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment