Uses of Class org.sunflow.math.Point3

Uses in package org.sunflow

Methods with parameter type org.sunflow.math.Point3

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

Uses in package org.sunflow.core.photonmap

Methods with parameter type org.sunflow.math.Point3

Color
Color
Lookup the global diffuse radiance at the specified surface point.

Uses in package org.sunflow.core

Constructors with parameter type org.sunflow.math.Point3

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

Methods with parameter type org.sunflow.math.Point3

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.
Point3
ParameterList.getPoint(String name, Point3 defaultValue)
Get the specified point parameter from this list.
Point3
Gets the end point of the ray.
Color
Lookup the global diffuse radiance at the specified surface point.
boolean
Get the three triangle corners in object space if the hit object is a mesh, returns false otherwise.
Point3
Transform the given point from object space to world space.
Point3
Transform the given point from world space to object space.

Methods with return type org.sunflow.math.Point3

Point3
Get hit point.
Point3
ParameterList.getPoint(String name, Point3 defaultValue)
Get the specified point parameter from this list.
Point3
Gets the end point of the ray.
Point3
Transform the given point from object space to world space.
Point3
Transform the given point from world space to object space.

Uses in package org.sunflow.math

Constructors with parameter type org.sunflow.math.Point3

Creates a bounding box containing only the specified point.

Methods with parameter type org.sunflow.math.Point3

Point3
Point3.add(Point3 p, Vector3 v, Point3 dest)
boolean
Checks to see if the specified pointis inside the volume defined by this box.
float
float
void
Changes the extents of the box as needed to include the given pointinto this box.
Point3
Point3.mid(Point3 p1, Point3 p2, Point3 dest)
float
Vector3
float
PerlinScalar.noise(Point3 p, float t)
Vector3
PerlinVector.noise(Point3 p, float t)
Vector3
Vector3
Point3.normal(Point3 p0, Point3 p1, Point3 p2, Vector3 dest)
float
PerlinScalar.pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
Vector3
PerlinVector.pnoise(Point3 p, float t, Vector3 pperiod, float tperiod)
float
Vector3
Point3
float
Vector3
float
PerlinScalar.snoise(Point3 p, float t)
Vector3
PerlinVector.snoise(Point3 p, float t)
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)
Point3
Computes this*p and returns the result as a new Point3 object.

Methods with return type org.sunflow.math.Point3

Point3
Point3.add(Point3 p, Vector3 v, Point3 dest)
Point3
Gets the center of the box, computed as (min + max) / 2.
Point3
Gets a corner of the bounding box.
Point3
Gets the maximum corner of the box.
Point3
Gets the minimum corner of the box.
Point3
Point3.mid(Point3 p1, Point3 p2, Point3 dest)
Point3
Point3.set(float x, float y, float z)
Point3
Point3
Computes this*p and returns the result as a new Point3 object.

Uses in package org.sunflow.core.primitive

Methods with parameter type org.sunflow.math.Point3

void
CornellBox.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
TriangleMesh.getPoint(int tri, int i, Point3 p)

Methods with return type org.sunflow.math.Point3

Point3
Point3

Uses in package org.sunflow.core.light

Methods with parameter type org.sunflow.math.Point3

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.