@@ -1,3 +1,7 @@
+/**
+ * @author mr.doob / http://mrdoob.com/
+ */
+
var Cube = function (width, height, depth) {
THREE.Geometry.call(this);
+ * @author kile / http://kile.stravaganza.org/
var Cylinder = function (numSegs, topRad, botRad, height, topOffset, botOffset) {
var Plane = function (width, height) {
@@ -1 +1,5 @@
var THREE = THREE || {}
THREE.Camera = function (x, y, z) {
this.position = new THREE.Vector3(x, y, z);
THREE.Color = function (hex) {
var _r, _g, _b, _a, _hex;
THREE.Face3 = function (a, b, c, uv, normal, color) {
this.a = a;
THREE.Face4 = function (a, b, c, d, uv, normal, color) {
THREE.Geometry = function () {
this.vertices = [];
@@ -1,3 +1,8 @@
+ * @author supereggbert / http://www.paulbrunt.co.uk/
THREE.Matrix3 = function () {
this.n11 = 1; this.n12 = 0; this.n13 = 0;
THREE.Matrix4 = function () {
var x, y, z;
THREE.Vector2 = function (x, y) {
this.x = x || 0;
THREE.Vector3 = function (x, y, z) {
THREE.Vector4 = function (x, y, z, w) {
THREE.Vertex = function (position, normal) {
this.position = position || new THREE.Vector3();
THREE.ColorFillMaterial = function (hex, opacity) {
this.color = new THREE.Color( (opacity ? (opacity * 0xff) << 24 : 0xff000000) | hex );
THREE.ColorStrokeMaterial = function (hex, opacity, lineWidth) {
this.lineWidth = lineWidth || 1;
THREE.FaceColorFillMaterial = function () {
this.toString = function () {
THREE.FaceColorStrokeMaterial = function (lineWidth) {
THREE.Line = function (geometry, material) {
THREE.Object3D.call(this, material);
THREE.Mesh = function (geometry, material) {
THREE.Object3D = function (material) {
this.position = new THREE.Vector3(0, 0, 0);
THREE.Particle = function (material) {
THREE.CanvasRenderer = function () {
THREE.Renderer.call(this);
/* TODO: Refactoring */
var GLRenderer = Renderer.extend
THREE.Renderer = function() {
var face3Pool = [],
THREE.SVGRenderer = function () {
THREE.RenderableFace3 = function () {
this.v1 = new THREE.Vector2();
THREE.RenderableFace4 = function () {
THREE.RenderableParticle = function () {
this.x;
THREE.Scene = function () {
this.objects = [];