Uses of Class
eu.iv4xr.framework.spatial.Vec3
Package
Description
Provide a class,
GameWorldModel
, that can be used as a model of a
"computer game".This package provides classes to do pathfinding over a graph.
Provide mainly the class
Mesh
for representing 3D surface meshes.This package contains the implementation of iv4xr Env, State,
TacticLib, GoalLib etc, which are necessary to allow an aplib/iv4xr
test agent to control the game in the smart way.
-
Uses of Vec3 in eu.iv4xr.framework.environments
Modifier and TypeMethodDescriptionIW3DEnvironment.moveToward(String agentId, Vec3 agentLocation, Vec3 targetLocation)
A command to instruct an agent to move a small distance towards the given target location.W3DEnvironment.moveToward(String agentId, Vec3 agentLocation, Vec3 targetLocation)
A command to instruct an agent to move a small distance towards the given target location. -
Uses of Vec3 in eu.iv4xr.framework.extensions.ltl.gameworldmodel
Modifier and TypeMethodDescription(package private) static boolean
-
Uses of Vec3 in eu.iv4xr.framework.extensions.pathfinding
Modifier and TypeFieldDescriptionSimpleNavGraph.vertices
The set of vertices that form the navigation graph.Modifier and TypeMethodDescriptionSurfaceNavGraph.enhancedFindPath(Vec3 start, Vec3 goal, float faceDistThreshold)
Similar to the other findPath method, this will search for a path from a vertex v0, close to the start-location, to a vertex v1 close to the given goal location.SurfaceNavGraph.explore(int startVertex, Vec3 targetLocation, float viewDistance, List<Vec3> excludedVertises)
This variant of explore will try to find an already seen and reachable vertex v, which is closest to some target location t.Find a path to an unexplored and unblocked vertex w which is the geometrically 'closest' to the given the given start location.SurfaceNavGraph.explore(Vec3 startLocation, Vec3 targetLocation, float faceDistThreshold, float viewDistance, List<Vec3> excludedVertises)
This variant of explore will try to find an already seen and reachable vertex w, which is closest to some target location t.The same as the other findPath.SurfaceNavGraph.getNearestUnblockedVertex(Vec3 location, float faceDistThreshold)
This method returns a vertex v in the navgraph which is 'nearest' to the given 3D location, such that the straight line between the location and this vertex v is unobstructed.SurfaceNavGraph.getNearestUnblockedVertices(Vec3 location, float faceDistThreshold)
This method search for a Face f that "contains" the given position p.(package private) boolean
Check if the line from x to y is blocked by any of the blocking obstacles.Modifier and TypeMethodDescriptionSurfaceNavGraph.explore(int startVertex, Vec3 targetLocation, float viewDistance, List<Vec3> excludedVertises)
This variant of explore will try to find an already seen and reachable vertex v, which is closest to some target location t.SurfaceNavGraph.explore(Vec3 startLocation, Vec3 targetLocation, float faceDistThreshold, float viewDistance, List<Vec3> excludedVertises)
This variant of explore will try to find an already seen and reachable vertex w, which is closest to some target location t.ModifierConstructorDescriptionSimpleNavGraph(EdgeMap edges, ArrayList<Vec3> vertices, ArrayList<Obstacle<LineIntersectable>> obstacles)
-
Uses of Vec3 in eu.iv4xr.framework.mainConcepts
-
Uses of Vec3 in eu.iv4xr.framework.spatial
Modifier and TypeFieldDescriptionLine.a
Point A, also used as origin point.Triangle.A
Line.b
Point BTriangle.B
Triangle.C
Box.center
Sphere.center
Box.width
The x,y, and z width.Modifier and TypeMethodDescriptionstatic Vec3
Line.alongLine(float d)
Vec3.copy()
Copies a vector by value.static Vec3
Line.direction()
static Vec3
(package private) Vec3
Box.intersectPlaneXY(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane XY where z = c.(package private) Vec3
Box.intersectPlaneXZ(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane XZ where y = c.(package private) Vec3
Box.intersectPlaneYZ(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane YZ where x = c.static Vec3
static Vec3
Vec3.normalized()
static Vec3
Vec3.one()
Line.origin()
static Vec3
static Vec3
Vec3.zero()
Modifier and TypeMethodDescriptionIn typical cases, if a line intersects with a 3D rectangle, it will intersect at one point (if the line ends somewhere inside the rectangle), or at two points (if the line pass through the whole rectangle).Returns a list of intersection between a line segment and an object.Line-sphere intersection: https://en.wikipedia.org/wiki/Line%E2%80%93sphere_intersectionModifier and TypeMethodDescriptionstatic Vec3
static Vec3
static float
static float
If d is the length of the vector a - b (so, the distance between them), this method returns d*d.static Vec3
static float
(package private) Vec3
Box.intersectPlaneXY(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane XY where z = c.(package private) Vec3
Box.intersectPlaneXZ(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane XZ where y = c.(package private) Vec3
Box.intersectPlaneYZ(Vec3 p, Vec3 q, float c)
Calculate the intersection of the line between p and q, and a plane YZ where x = c.static Vec3
static Vec3
static Vec3
-
Uses of Vec3 in eu.iv4xr.framework.spatial.meshes
Modifier and TypeMethodDescriptionGiven a list that maps vertex-indices to their real positions, this method calculate the center/middle point of this edge.Given a list that maps vertex-indices to their real positions, this method calculate the center/middle point of this Face.Modifier and TypeMethodDescriptionfloat
Face.distFromPoint(Vec3 w, ArrayList<Vec3> concreteVertices)
Return an unsigned distance from a point w to this Face.Modifier and TypeMethodDescriptionfloat
Given a list that maps vertex-indices to their real positions, this method calculate the center/middle point of this edge.Given a list that maps vertex-indices to their real positions, this method calculate the center/middle point of this Face.float
Face.distFromPoint(Vec3 w, ArrayList<Vec3> concreteVertices)
Return an unsigned distance from a point w to this Face. -
Uses of Vec3 in nl.uu.cs.aplib.exampleUsages.miniDungeon.testAgent
Modifier and TypeMethodDescription