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 TypeMethodDescriptionbooleandoublePlane.intersectDistance(Ray ray) finds the intersection of a ray and this plane.voidSet 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 RayAABBHitfind distance to box, if hit.static doubleReturns the distance to the plane, or Double.MAX_VALUE if there is no intersection.static doubleray/sphere intersection.static doubleIntersectionHelper.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 TypeMethodDescriptionvoidRayXY.addRayHistory(Ray ray, Hit hit) Intersect a ray with this mesh.doublePathTriangle.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.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 theMeshInstances that collide with the ray.RayPickSystem.getFirstHit(Ray ray) Traverse the scene and find the nearestMeshInstancethat collides with the ray.