Created
November 6, 2012 22:12
-
-
Save neildanson/4027958 to your computer and use it in GitHub Desktop.
Declaring types
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 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