Skip to content

Instantly share code, notes, and snippets.

@beckettsimmons
beckettsimmons / point.ml
Last active August 29, 2015 14:17 — forked from Drup/point.ml
type vector = { x : float ; y : float }
let add_pair a b =
{ x = a.x +. b.y ; y = a.x +. b.y }
module Point = struct
class t ~pos ~vel = object (self)
val pos = pos
val vel = vel