Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] View of /trunk/sml3d/geometry/gtypes.sml
ViewVC logotype

View of /trunk/sml3d/geometry/gtypes.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 759 - (download) (annotate)
Wed Feb 10 22:22:40 2010 UTC (8 years, 8 months ago) by jhr
File size: 467 byte(s)
  Starting to put together the Geometry library
(* gtypes.sml
 *
 * COPYRIGHT (c) 2010 John Reppy (http://cs.uchicago.edu/~jhr)
 * All rights reserved.
 *)

structure GTypes =
  struct

    type flt = Float.float
    type vec3 = Vec3f.vec3

    datatype ray = Ray of {orig : vec3, dir : vec3}

    datatype sphere = Sphere of {c : vec3, r : flt}

    datatype plane = Plane of {n : vec3, d : flt}

    datatype axis_aligned_box = AABB of {}

    datatype oriented_box = OBB of {}

    datatype triangle = ??

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0