Uses of Class
com.marginallyclever.convenience.Ray
Packages that use Ray
Package
Description
-
Uses of Ray in com.marginallyclever.convenience
Methods in com.marginallyclever.convenience with parameters of type RayModifier and TypeMethodDescriptionboolean
double
Plane.intersectDistance
(Ray ray) finds the intersection of a ray and this plane.void
Set this ray to be a copy of another ray.Constructors in com.marginallyclever.convenience with parameters of type Ray -
Uses of Ray in com.marginallyclever.convenience.helpers
Methods in com.marginallyclever.convenience.helpers with parameters of type RayModifier and TypeMethodDescriptionstatic RayAABBHit
find distance to box, if hit.static double
Returns the distance to the plane, or Double.MAX_VALUE if there is no intersection.static double
ray/sphere intersection.static double
IntersectionHelper.rayTriangle
(Ray ray, javax.vecmath.Point3d p0, javax.vecmath.Point3d p1, javax.vecmath.Point3d p2) The implementation uses the Möller–Trumbore intersection algorithm to compute the intersection between a ray and a triangle. -
Uses of Ray in com.marginallyclever.ro3.apps.pathtracer
Fields in com.marginallyclever.ro3.apps.pathtracer declared as RayFields in com.marginallyclever.ro3.apps.pathtracer with type parameters of type RayMethods in com.marginallyclever.ro3.apps.pathtracer with parameters of type RayModifier and TypeMethodDescriptionvoid
RayXY.addRayHistory
(Ray ray, Hit hit) Intersect a ray with this mesh.double
PathTriangle.intersectRay
(Ray ray) Test if a ray intersects this triangle.Constructors in com.marginallyclever.ro3.apps.pathtracer with parameters of type RayModifierConstructorDescriptionScatterRecord
(Ray ray, ColorDouble attenuation, double pdf, boolean isSpecular) -
Uses of Ray in com.marginallyclever.ro3.apps.pathtracer.spatialaccelerationstructure
Methods in com.marginallyclever.ro3.apps.pathtracer.spatialaccelerationstructure with parameters of type RayModifier and TypeMethodDescriptionFinds the first intersecting triangle for a given ray within the spatial acceleration structure.Finds the first intersecting triangle for a given ray within the spatial acceleration structure. -
Uses of Ray in com.marginallyclever.ro3.apps.viewport
Methods in com.marginallyclever.ro3.apps.viewport that return RayModifier and TypeMethodDescriptionViewport.getRayThroughPoint
(Camera camera, double normalizedX, double normalizedY) Return the ray, in world space, that starts at the camera and passes through this viewport at (x,y) in the current projection.Viewport.getRayThroughPointUntransformed
(Camera camera, double normalizedX, double normalizedY) Return the ray, in camera space, that starts at the origin and passes through this viewport at (x,y) in the current projection. -
Uses of Ray in com.marginallyclever.ro3.mesh
Methods in com.marginallyclever.ro3.mesh with parameters of type Ray -
Uses of Ray in com.marginallyclever.ro3.mesh.proceduralmesh
Methods in com.marginallyclever.ro3.mesh.proceduralmesh with parameters of type Ray -
Uses of Ray in com.marginallyclever.ro3.node.nodes
Methods in com.marginallyclever.ro3.node.nodes with parameters of type Ray -
Uses of Ray in com.marginallyclever.ro3.node.nodes.environment
Methods in com.marginallyclever.ro3.node.nodes.environment with parameters of type RayModifier and TypeMethodDescriptionEnvironment.getEnvironmentColor
(Ray ray) Locate the Environment in the scene.Environment.getSkyColor
(Ray ray) sky or sun color, depending on angle of incidence -
Uses of Ray in com.marginallyclever.ro3.node.nodes.pose.poses
Methods in com.marginallyclever.ro3.node.nodes.pose.poses that return RayModifier and TypeMethodDescriptionCamera.getRayThroughPoint
(double normalizedX, double normalizedY, int canvasWidth, int canvasHeight) Return the ray, in world space, that starts at the camera and passes through this viewport at (x,y) in the current projection.Camera.getRayThroughPointUntransformed
(double normalizedX, double normalizedY, int canvasWidth, int canvasHeight) Return the ray, in camera space, that starts at the origin and passes through this viewport at (x,y) in the current projection.Methods in com.marginallyclever.ro3.node.nodes.pose.poses with parameters of type Ray -
Uses of Ray in com.marginallyclever.ro3.raypicking
Methods in com.marginallyclever.ro3.raypicking with parameters of type RayModifier and TypeMethodDescriptionRayPickSystem.findRayIntersections
(Ray ray) Traverse the scene and find all theMeshInstance
s that collide with the ray.RayPickSystem.getFirstHit
(Ray ray) Traverse the scene and find the nearestMeshInstance
that collides with the ray.