Uses of Class
com.marginallyclever.convenience.Ray
Package
Description
-
Uses of Ray in com.marginallyclever.convenience
Modifier 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. -
Uses of Ray in com.marginallyclever.convenience.helpers
Modifier and TypeMethodDescriptionstatic double
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.Vector3d v0, javax.vecmath.Vector3d v1, javax.vecmath.Vector3d v2) 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.viewport
Modifier 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
-
Uses of Ray in com.marginallyclever.ro3.node.nodes.pose.poses
-
Uses of Ray in com.marginallyclever.ro3.raypicking
Modifier and TypeMethodDescriptionRayPickSystem.findRayIntersections
(Ray ray) Traverse the sceneNode
s and find all theMeshInstance
s that collide with the ray.RayPickSystem.getFirstHit
(Ray ray) Traverse the scene Entities and find the nearestMeshInstance
that collides with the ray.