Package | Description |
---|---|
org.dayflower.pathtracer.math |
Provides the Mathematics API.
|
org.dayflower.pathtracer.scene |
Provides the Scene API.
|
org.dayflower.pathtracer.scene.bvh |
Provides the Bounding Volume Hierarchy (BVH) API.
|
org.dayflower.pathtracer.scene.compiler |
Provides the Scene Compiler API.
|
org.dayflower.pathtracer.scene.shape |
Provides
Shape implementations. |
Modifier and Type | Field and Description |
---|---|
static Point3F |
Point3F.MAXIMUM
The maximum
Point3F . |
static Point3F |
Point3F.MINIMUM
The minimum
Point3F . |
Modifier and Type | Method and Description |
---|---|
static Point3F |
Point3F.center(Point3F a,
Point3F b)
Returns the center
Point3F given the bounds represented by a and b . |
static Point3F |
Point3F.maximum()
Returns the maximum
Point3F . |
static Point3F |
Point3F.maximum(Point3F a,
Point3F b)
Returns the maximum
Point3F given the bounds represented by a and b . |
static Point3F |
Point3F.maximum(Point3F a,
Point3F b,
Point3F c)
Returns the maximum
Point3F given the bounds represented by a , b and c . |
static Point3F |
Point3F.minimum()
Returns the minimum
Point3F . |
static Point3F |
Point3F.minimum(Point3F a,
Point3F b)
Returns the minimum
Point3F given the bounds represented by a and b . |
static Point3F |
Point3F.minimum(Point3F a,
Point3F b,
Point3F c)
Returns the minimum
Point3F given the bounds represented by a , b and c . |
Point3F |
Point3F.pointAt(Vector3F v,
float t)
Returns a
Point3F offset from this Point3F in the direction of v and with the distance of t . |
Point3F |
Point3F.transform(Matrix44F m)
Performs a transformation.
|
Point3F |
Point3F.transformAndDivide(Matrix44F m)
Performs a transformation and a divide.
|
Point3F |
Point3F.translateX(float x)
Performs a translation on the X-axis.
|
Point3F |
Point3F.translateY(float y)
Performs a translation on the Y-axis.
|
Point3F |
Point3F.translateZ(float z)
Performs a translation on the Z-axis.
|
Modifier and Type | Method and Description |
---|---|
static Point3F |
Point3F.center(Point3F a,
Point3F b)
Returns the center
Point3F given the bounds represented by a and b . |
static Vector3F |
Vector3F.direction(Point3F eye,
Point3F lookAt)
Returns a
Vector3F pointing in the direction from eye to lookAt . |
float |
Point3F.distanceTo(Point3F p)
Returns the distance from this
Point3F to p . |
float |
Point3F.distanceToSquared(Point3F p)
Returns the distance from this
Point3F to p in squared form. |
boolean |
Point3F.isWithinSphereRadius(Point3F p,
float radius)
Returns
true if, and only if, p is contained in the sphere defined with the center as this Point3F instance and a radius of radius , false otherwise. |
static Point3F |
Point3F.maximum(Point3F a,
Point3F b)
Returns the maximum
Point3F given the bounds represented by a and b . |
static Point3F |
Point3F.maximum(Point3F a,
Point3F b,
Point3F c)
Returns the maximum
Point3F given the bounds represented by a , b and c . |
static float |
Point3F.maximumX(Point3F a,
Point3F b,
Point3F c)
Returns the maximum X-coordinate given the bounds represented by
a , b and c . |
static float |
Point3F.maximumY(Point3F a,
Point3F b,
Point3F c)
Returns the maximum Y-coordinate given the bounds represented by
a , b and c . |
static float |
Point3F.maximumZ(Point3F a,
Point3F b,
Point3F c)
Returns the maximum Z-coordinate given the bounds represented by
a , b and c . |
static Point3F |
Point3F.minimum(Point3F a,
Point3F b)
Returns the minimum
Point3F given the bounds represented by a and b . |
static Point3F |
Point3F.minimum(Point3F a,
Point3F b,
Point3F c)
Returns the minimum
Point3F given the bounds represented by a , b and c . |
static float |
Point3F.minimumX(Point3F a,
Point3F b,
Point3F c)
Returns the minimum X-coordinate given the bounds represented by
a , b and c . |
static float |
Point3F.minimumY(Point3F a,
Point3F b,
Point3F c)
Returns the minimum Y-coordinate given the bounds represented by
a , b and c . |
static float |
Point3F.minimumZ(Point3F a,
Point3F b,
Point3F c)
Returns the minimum Z-coordinate given the bounds represented by
a , b and c . |
static Vector3F |
Vector3F.normal(Point3F a,
Point3F b,
Point3F c)
Returns a
Vector3F denoting the normal of the plane defined by a , b and c . |
static Vector3F |
Vector3F.normalNormalized(Point3F a,
Point3F b,
Point3F c)
Returns a
Vector3F denoting the normalized normal of the plane defined by a , b and c . |
static AngleF |
AngleF.pitch(Point3F eye,
Point3F lookAt)
Returns a new pitch
AngleF instance based on eye and lookAt . |
static Matrix44F |
Matrix44F.translate(Point3F p)
Returns a
Matrix44F for translation. |
static AngleF |
AngleF.yaw(Point3F eye,
Point3F lookAt)
Returns a new yaw
AngleF instance based on eye and lookAt . |
Constructor and Description |
---|
OrthoNormalBasis33F(Point3F eye,
Point3F lookAt)
Constructs a new
OrthoNormalBasis33F instance given eye and lookAt . |
OrthoNormalBasis33F(Point3F eye,
Point3F lookAt,
Vector3F v)
Constructs a new
OrthoNormalBasis33F instance given eye , lookAt and v . |
Vector3F(Point3F p)
Constructs a new
Vector3F instance given a Point3F . |
Modifier and Type | Method and Description |
---|---|
Point3F |
Sky.getSunOrigin()
Returns a
Point3F with the sun origin. |
Modifier and Type | Method and Description |
---|---|
Point3F |
BoundingVolumeHierarchy.Node.getCenter()
Returns a
Point3F with the center of the bounds of this Node instance. |
Point3F |
BoundingVolumeHierarchy.Node.getMaximum()
Returns a
Point3F with the maximum bound of this Node instance. |
Point3F |
BoundingVolumeHierarchy.Node.getMinimum()
Returns a
Point3F with the minimum bound of this Node instance. |
Modifier and Type | Method and Description |
---|---|
void |
BoundingVolumeHierarchy.LeafNode.addBounds(java.util.Collection<Point3F> point3Fs)
Adds the maximum and minimum bounds to
point3Fs . |
abstract void |
BoundingVolumeHierarchy.Node.addBounds(java.util.Collection<Point3F> point3Fs)
Adds the maximum and minimum bounds to
point3Fs . |
void |
BoundingVolumeHierarchy.TreeNode.addBounds(java.util.Collection<Point3F> point3Fs)
Adds the maximum and minimum bounds to
point3Fs . |
Modifier and Type | Method and Description |
---|---|
int |
DynamicCompiledScene.add(Point3F point3F)
Adds
point3F to this DynamicCompiledScene instance. |
int |
DynamicCompiledScene.indexOf(Point3F point3F)
Returns the index of
point3F , or -1 if it does not exist. |
int |
DynamicCompiledScene.referencesTo(Point3F point3F)
Returns the number of references to
point3F . |
int |
DynamicCompiledScene.remove(Point3F point3F)
Removes
point3F from this DynamicCompiledScene instance, if it exists. |
Modifier and Type | Field and Description |
---|---|
Point3F |
Plane.a
A
Point3F denoting the point A. |
Point3F |
Plane.b
A
Point3F denoting the point B. |
Point3F |
Plane.c
A
Point3F denoting the point C. |
Point3F |
Triangle.Vertex.position
The position of this
Vertex instance. |
Modifier and Type | Method and Description |
---|---|
Point3F |
Plane.getA()
Returns the point A.
|
Point3F |
Plane.getB()
Returns the point B.
|
Point3F |
Plane.getC()
Returns the point C.
|
Point3F |
Triangle.Vertex.getPosition()
Returns the position of this
Vertex instance. |
Point3F |
Sphere.getPosition()
Returns the center position of this
Sphere . |
static Point3F |
Triangle.maximum(java.util.List<Triangle> triangles)
|
static Point3F |
Triangle.minimum(java.util.List<Triangle> triangles)
|
Modifier and Type | Method and Description |
---|---|
Triangle.Vertex |
Triangle.Vertex.setPosition(Point3F position)
Sets a new position.
|
Constructor and Description |
---|
Plane(Point3F a,
Point3F b,
Point3F c)
Constructs a new
Plane instance. |
Sphere(Point3F position)
Constructs a new
Sphere instance. |
Sphere(Point3F position,
float radius)
Constructs a new
Sphere instance. |
Vertex(Point2F textureCoordinates,
Point3F position,
Vector3F normal)
Constructs a new
Vertex instance. |