Uses of Class org.sunflow.math.Vector3

Uses in package org.sunflow.core.light

Methods with parameter type org.sunflow.math.Vector3

void
DirectionalSpotlight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
ImageBasedLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
PointLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
SphereLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
SunSkyLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.

Uses in package org.sunflow.core.photonmap

Methods with parameter type org.sunflow.math.Vector3

Color
Color
Lookup the global diffuse radiance at the specified surface point.
void
CausticPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
void
GlobalPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.
void
GridPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.

Uses in package org.sunflow.core.primitive

Methods with parameter type org.sunflow.math.Vector3

void
CornellBox.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)

Uses in package org.sunflow.math

Constructors with parameter type org.sunflow.math.Vector3

Methods with parameter type org.sunflow.math.Vector3

Point3
Point3.add(Point3 p, Vector3 v, Point3 dest)
Vector3
Vector3.add(Vector3 v1, Vector3 v2, Vector3 dest)
Vector3
Vector3
Vector3.decode(short n, Vector3 dest)
Vector3
Vector3.div(float d, Vector3 dest)
float
OrthoNormalBasis
OrthoNormalBasis
Vector3
Vector3.mul(float s, Vector3 dest)
Vector3
Vector3
Point3.normal(Point3 p0, Point3 p1, Point3 p2, Vector3 dest)
Vector3
float
PerlinScalar.pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
Vector3
PerlinVector.pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
float
Vector3
Vector3
float
PerlinScalar.spnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
Vector3
PerlinVector.spnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
float
Vector3
Vector3
Point3.sub(Point3 p1, Point3 p2, Vector3 dest)
Vector3
Vector3.sub(Vector3 v1, Vector3 v2, Vector3 dest)
Vector3
Vector3
Vector3
Computes (this^T)*v and returns the result as a new Vector3 object.
Vector3
Computes this*v and returns the result as a new Vector3 object.
Vector3
Vector3
float
float
float

Methods with return type org.sunflow.math.Vector3

Vector3
Vector3.add(Vector3 v1, Vector3 v2, Vector3 dest)
Vector3
Vector3
Vector3.decode(short n)
Vector3
Vector3.decode(short n, Vector3 dest)
Vector3
Vector3.div(float d)
Vector3
Vector3.div(float d, Vector3 dest)
Vector3
Gets the extents vector for the box.
Vector3
Vector3.mul(float s)
Vector3
Vector3.mul(float s, Vector3 dest)
Vector3
Vector3
Vector3
Vector3
PerlinVector.noise(float x, float y)
Vector3
PerlinVector.noise(float x, float y, float z)
Vector3
PerlinVector.noise(float x, float y, float z, float t)
Vector3
Vector3
Vector3
PerlinVector.noise(Point3 p, float t)
Vector3
Vector3
Point3.normal(Point3 p0, Point3 p1, Point3 p2, Vector3 dest)
Vector3
Vector3
Vector3
PerlinVector.pnoise(float x, float period)
Vector3
PerlinVector.pnoise(float x, float y, float w, float h)
Vector3
PerlinVector.pnoise(float x, float y, float z, float w, float h, float d)
Vector3
PerlinVector.pnoise(float x, float y, float z, float t, float w, float h, float d, float p)
Vector3
PerlinVector.pnoise(Point2 p, float periodx, float periody)
Vector3
PerlinVector.pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
Vector3
Vector3
Vector3.set(float x, float y, float z)
Vector3
Vector3
Vector3
PerlinVector.snoise(float x, float y)
Vector3
PerlinVector.snoise(float x, float y, float z)
Vector3
PerlinVector.snoise(float x, float y, float z, float t)
Vector3
Vector3
Vector3
PerlinVector.snoise(Point3 p, float t)
Vector3
PerlinVector.spnoise(float x, float period)
Vector3
PerlinVector.spnoise(float x, float y, float w, float h)
Vector3
PerlinVector.spnoise(float x, float y, float z, float w, float h, float d)
Vector3
PerlinVector.spnoise(float x, float y, float z, float t, float w, float h, float d, float p)
Vector3
PerlinVector.spnoise(Point2 p, float periodx, float periody)
Vector3
PerlinVector.spnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
Vector3
Vector3
Point3.sub(Point3 p1, Point3 p2, Vector3 dest)
Vector3
Vector3.sub(Vector3 v1, Vector3 v2, Vector3 dest)
Vector3
Vector3
Vector3
Computes (this^T)*v and returns the result as a new Vector3 object.
Vector3
Computes this*v and returns the result as a new Vector3 object.
Vector3
Vector3

Uses in package org.sunflow

Methods with parameter type org.sunflow.math.Vector3

void
SunflowAPI.parameter(String name, Vector3 value)
Declare a parameter with the specified name and value.

Uses in package org.sunflow.core

Constructors with parameter type org.sunflow.math.Vector3

Creates a new ray that points from the given origin to the given direction.

Methods with parameter type org.sunflow.math.Vector3

float
Compute a dot product between the current shadow ray direction and the specified vector.
float
Computes the dot product of an arbitrary vector with the direction of the ray.
void
LightSource.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
Color
Lookup the global diffuse radiance at the specified surface point.
Vector3
ParameterList.getVector(String name, Vector3 defaultValue)
Get the specified vector parameter from this list.
void
PhotonStore.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.
void
ShadingState.storePhoton(Vector3 dir, Color power, Color diffuse)
Records a photon at the specified location.
Vector3
Transform the given normal from object space to world space.
Vector3
Transform the given normal from world space to object space.
Vector3
Transform the given vector from object space to world space.
Vector3
Transform the given vector from world space to object space.

Methods with return type org.sunflow.math.Vector3

Vector3
Texture.getBump(float x, float y, OrthoNormalBasis basis, float scale)
Vector3
Creates a vector to represent the direction of the ray.
Vector3
Gets the geometric normal of the current hit point.
Vector3
Get shading normal at the hit point.
Vector3
Texture.getNormal(float x, float y, OrthoNormalBasis basis)
Vector3
ParameterList.getVector(String name, Vector3 defaultValue)
Get the specified vector parameter from this list.
Vector3
Transform the given normal from object space to world space.
Vector3
Transform the given normal from world space to object space.
Vector3
Transform the given vector from object space to world space.
Vector3
Transform the given vector from world space to object space.