|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Vec3 in tracer |
---|
Fields in tracer declared as Vec3 | |
---|---|
(package private) Vec3 |
Triangle.a
|
(package private) Vec3 |
Triangle.b
|
(package private) Vec3 |
Triangle.c
|
Vec3 |
Material.color
|
Vec3 |
Light.color
|
Vec3 |
Ray.direction
|
Vec3 |
Light.location
|
Vec3 |
IntersectionInfo.location
|
(package private) Vec3 |
Plane.normal
|
Vec3 |
IntersectionInfo.normal
|
(package private) Vec3 |
Sphere.origin
|
Vec3 |
Ray.origin
|
Vec3 |
Camera.origin
|
Vec3 |
Material.perlin
|
Vec3[] |
Material.perlinArray
|
(package private) Vec3 |
Plane.uDirection
|
(package private) Vec3 |
Plane.vDirection
|
Methods in tracer that return Vec3 | |
---|---|
Vec3 |
Vec3.add(Vec3 that)
Vector addition. |
Vec3 |
Vec3.cross(Vec3 b)
Vector cross-product. |
Vec3 |
Ray.localLight(IntersectionInfo info,
Light light,
Vec3 color)
Calculates the local light term, given an IntersectionInfo and a Light. |
Vec3 |
Vec3.minus(Vec3 that)
Vector subtraction. |
static Vec3 |
Vec3.perlinVec()
|
static Vec3 |
Vec3.random(float length)
Returns a Vec3 of specified length with a random direction. |
protected Vec3 |
Sampler2D.rawReadVec(float x,
float y)
later zelf geschreven om de array om te vormen naar een vector |
Vec3 |
BilinearSampler.sample(float u,
float v)
|
Vec3 |
NearestSampler.sample(float u,
float v)
|
Vec3 |
DebugSampler.sample(float u,
float v)
|
abstract Vec3 |
Sampler2D.sample(float u,
float v)
|
Vec3 |
Ray.textureMap(IntersectionInfo info)
|
Vec3 |
Vec3.times(float f)
Multiplication by a scalar. |
Vec3 |
Vec3.times(Vec3 that)
Component-wise multiply |
Vec3 |
Ray.trace(Traceable currentObject,
int maxReflectionsLeft)
Does the actual `raytracing'. |
Vec3 |
Tracer.tracePixel(int x,
int y)
Given (x,y) coordinates of the pixel to be traced, constructs the primary ray, raytraces it (by calling Ray.trace) and returns the result (the color for the pixel). |
Methods in tracer with parameters of type Vec3 | |
---|---|
Vec3 |
Vec3.add(Vec3 that)
Vector addition. |
Vec3 |
Vec3.cross(Vec3 b)
Vector cross-product. |
float |
Vec3.dot(Vec3 that)
Vector dot-product. |
boolean |
Vec3.equals(Vec3 that)
|
Vec3 |
Ray.localLight(IntersectionInfo info,
Light light,
Vec3 color)
Calculates the local light term, given an IntersectionInfo and a Light. |
Vec3 |
Vec3.minus(Vec3 that)
Vector subtraction. |
Vec3 |
Vec3.times(Vec3 that)
Component-wise multiply |
Constructors in tracer with parameters of type Vec3 | |
---|---|
IntersectionInfo(Vec3 location,
Vec3 normal,
float distance,
Traceable object,
float u,
float v)
Constructor indicating there was an intersection. |
|
Plane(Vec3 n,
float o)
|
|
Ray(Vec3 o,
Vec3 d)
|
|
Sphere(Vec3 o,
float r)
|
|
Triangle(Vec3 p1,
Vec3 p2,
Vec3 p3)
|
|
Vec3(Vec3 that)
Copy constructor |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |