Lines Matching refs:function
26 function createVector(x,y,z) {
30 function sqrLengthVector(self) {
34 function lengthVector(self) {
38 function addVector(self, v) {
45 function subVector(self, v) {
52 function scaleVector(self, scale) {
59 function normaliseVector(self) {
67 function add(v1, v2) {
71 function sub(v1, v2) {
75 function scalev(v1, v2) {
79 function dot(v1, v2) {
83 function scale(v, scale) {
87 function cross(v1, v2) {
94 function normalise(v) {
99 function transformMatrix(self, v) {
107 function invertMatrix(self) {
125 function Triangle(p1, p2, p3) {
160 Triangle.prototype.intersect = function(orig, dir, near, far) {
181 function Scene(a_triangles) {
189 Scene.prototype.intersect = function(origin, dir, near, far) {
244 Scene.prototype.blocked = function(O, D, far) {
261 function Camera(origin, lookat, up) {
283 Camera.prototype.generateRayPair = function(y) {
292 function renderRows(camera, scene, pixels, width, height, starty, stopy) {
305 Camera.prototype.render = function(scene, pixels, width, height) {
313 function raytraceScene()
357 var floorShader = function(tri, pos, view) {
405 function arrayToCanvasCommands(pixels)
426 canvas.setFillColor = function(r, g, b, a) {\n\