Home
last modified time | relevance | path

Searched refs:Vector2f (Results 1 – 25 of 82) sorted by relevance

1234

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DVector2f.java48 public final class Vector2f implements Savable, Cloneable, java.io.Serializable { class
51 private static final Logger logger = Logger.getLogger(Vector2f.class.getName());
53 public static final Vector2f ZERO = new Vector2f(0f, 0f);
54 public static final Vector2f UNIT_XY = new Vector2f(1f, 1f);
73 public Vector2f(float x, float y) { in Vector2f() method in Vector2f
81 public Vector2f() { in Vector2f() method in Vector2f
91 public Vector2f(Vector2f vector2f) { in Vector2f() method in Vector2f
105 public Vector2f set(float x, float y) { in set()
118 public Vector2f set(Vector2f vec) { in set()
133 public Vector2f add(Vector2f vec) { in add()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/
DTerrain.java35 import com.jme3.math.Vector2f;
57 public float getHeight(Vector2f xz); in getHeight()
66 public Vector3f getNormal(Vector2f xz); in getNormal()
74 public float getHeightmapHeight(Vector2f xz); in getHeightmapHeight()
84 public void setHeight(Vector2f xzCoordinate, float height); in setHeight()
94 public void setHeight(List<Vector2f> xz, List<Float> height); in setHeight()
101 public void adjustHeight(Vector2f xzCoordinate, float delta); in adjustHeight()
111 public void adjustHeight(List<Vector2f> xz, List<Float> height); in adjustHeight()
DGeoMap.java35 import com.jme3.math.Vector2f;
266 public Vector2f getUV(int x, int y, Vector2f store){ in getUV()
272 public Vector2f getUV(int i, Vector2f store){ in getUV()
276 public FloatBuffer writeTexCoordArray(FloatBuffer store, Vector2f offset, Vector2f scale){ in writeTexCoordArray()
285 offset = new Vector2f(); in writeTexCoordArray()
287 Vector2f tcStore = new Vector2f(); in writeTexCoordArray()
326 public Mesh createMesh(Vector3f scale, Vector2f tcScale, boolean center){ in createMesh()
328 FloatBuffer tb = writeTexCoordArray(null, Vector2f.ZERO, tcScale); in createMesh()
/external/jmonkeyengine/engine/src/test/jme3test/model/shape/
DTestCustomMesh.java38 import com.jme3.math.Vector2f;
71 Vector2f [] texCoord = new Vector2f[4]; in simpleInitApp()
72 texCoord[0] = new Vector2f(0,0); in simpleInitApp()
73 texCoord[1] = new Vector2f(1,0); in simpleInitApp()
74 texCoord[2] = new Vector2f(0,1); in simpleInitApp()
75 texCoord[3] = new Vector2f(1,1); in simpleInitApp()
/external/eigen/unsupported/test/
Dautodiff.cpp133 typedef AutoDiffScalar<Vector2f> AD; in test_autodiff_scalar()
134 AD ax(1,Vector2f::UnitX()); in test_autodiff_scalar()
135 AD ay(2,Vector2f::UnitY()); in test_autodiff_scalar()
143 std::cerr << foo<Vector2f>(Vector2f(1,2)) << "\n"; in test_autodiff_vector()
144 typedef AutoDiffScalar<Vector2f> AD; in test_autodiff_vector()
147 p.x().derivatives() = Vector2f::UnitX(); in test_autodiff_vector()
148 p.y().derivatives() = Vector2f::UnitY(); in test_autodiff_vector()
/external/jmonkeyengine/engine/src/core-effects/com/jme3/post/ssao/
DSSAOFilter.java40 import com.jme3.math.Vector2f;
65 private Vector2f frustumNearFar;
66 …private Vector2f[] samples = {new Vector2f(1.0f, 0.0f), new Vector2f(-1.0f, 0.0f), new Vector2f(0.…
132 frustumNearFar = new Vector2f(); in initFilter()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DLODGeomap.java39 import com.jme3.math.Vector2f;
80 …public Mesh createMesh(Vector3f scale, Vector2f tcScale, Vector2f tcOffset, float offsetAmount, in… in createMesh()
84 …public Mesh createMesh(Vector3f scale, Vector2f tcScale, Vector2f tcOffset, float offsetAmount, in… in createMesh()
105 …public FloatBuffer writeTexCoordArray(FloatBuffer store, Vector2f offset, Vector2f scale, float of… in writeTexCoordArray()
115 offset = new Vector2f(); in writeTexCoordArray()
118 Vector2f tcStore = new Vector2f(); in writeTexCoordArray()
134 …public Vector2f getUV(int x, int y, Vector2f store, Vector2f offset, float offsetAmount, int total… in getUV()
729 …public static Vector3f calculateTangent(Vector3f[] v, Vector2f[] t, Vector3f tangent, Vector3f bin… in calculateTangent()
732 Vector2f edge1uv = new Vector2f(); // y=0 in calculateTangent()
733 Vector2f edge2uv = new Vector2f(); // x=0 in calculateTangent()
[all …]
DTerrainQuad.java46 import com.jme3.math.Vector2f;
94 protected Vector2f offset;
177 this(name, patchSize, size, scale, heightMap, size, new Vector2f(), 0);
195 this(name, patchSize, quadSize, scale, heightMap, totalSize, new Vector2f(), 0);
203 Vector2f offset, float offsetAmount)
700 Vector2f tempOffset = new Vector2f();
731 tempOffset = new Vector2f();
751 tempOffset = new Vector2f();
771 tempOffset = new Vector2f();
822 Vector2f tempOffset1 = new Vector2f();
[all …]
DTerrainGrid.java41 import com.jme3.math.Vector2f;
195 Vector2f offset, float offsetAmount) { in TerrainGrid()
210 this(name, patchSize, maxVisibleSize, scale, terrainQuadGrid, new Vector2f(), 0); in TerrainGrid()
219 Vector2f offset, float offsetAmount) { in TerrainGrid()
234 this(name, patchSize, maxVisibleSize, scale, heightMapGrid, new Vector2f(), 0); in TerrainGrid()
453 public void adjustHeight(List<Vector2f> xz, List<Float> height) { in adjustHeight()
455 for (Vector2f vect : xz) { in adjustHeight()
491 offset = (Vector2f) c.readSavable("offset", null); in read()
DTerrainPatch.java98 protected Vector2f offset;
142 this(name, size, stepScale, heightMap, origin, size, new Vector2f(), 0); in TerrainPatch()
170 Vector2f offset, float offsetAmount) { in TerrainPatch()
181 … Mesh m = geomap.createMesh(stepScale, new Vector2f(1,1), offset, offsetAmount, totalSize, false); in TerrainPatch()
252 public Vector2f getTex(float x, float z, Vector2f store) { in getTex()
254 store.set(Vector2f.ZERO); in getTex()
649 public Vector2f getOffset() { in getOffset()
661 public void setOffset(Vector2f offset) { in setOffset()
900 offset = (Vector2f) ic.readSavable("offset", Vector3f.UNIT_XYZ); in read()
908 …Mesh regen = geomap.createMesh(stepScale, new Vector2f(1,1), offset, offsetAmount, totalSize, fals… in read()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/terrain/
DTerrainTestModifyHeight.java49 import com.jme3.math.Vector2f;
120 float h = terrain.getHeight(new Vector2f(intersection.x, intersection.z)); in simpleUpdate()
125 Vector3f normal = terrain.getNormal(new Vector2f(intersection.x, intersection.z)); in simpleUpdate()
221 List<Vector2f> locs = new ArrayList<Vector2f>(); in adjustHeight()
233 locs.add(new Vector2f(locX, locZ)); in adjustHeight()
245 Vector2f point = new Vector2f(x, y); in isInRadius()
252 Vector2f point = new Vector2f(x, z); in calculateHeight()
262 …Vector3f origin = cam.getWorldCoordinates(new Vector2f(settings.getWidth() / 2, settings.getHeight… in getWorldIntersection()
263 …Vector3f direction = cam.getWorldCoordinates(new Vector2f(settings.getWidth() / 2, settings.getHei… in getWorldIntersection()
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/picking/
DBresenhamYUpGridTracer.java36 import com.jme3.math.Vector2f;
49 protected Vector2f gridLocation = new Vector2f();
169 public Vector2f getGridLocation() { in getGridLocation()
182 public void setGridLocation(Vector2f gridLocation) { in setGridLocation()
/external/eigen/test/eigen2/
Deigen2_regression.cpp86 Vector2f points2f [1000]; in test_eigen2_regression()
87 Vector2f *points2f_ptrs [1000]; in test_eigen2_regression()
89 Vector2f coeffs2f; in test_eigen2_regression()
101 Vector2f points2f [1000]; in test_eigen2_regression()
102 Vector2f *points2f_ptrs [1000]; in test_eigen2_regression()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DTempVars.java182 public final Vector2f vect2d = new Vector2f();
183 public final Vector2f vect2d2 = new Vector2f();
DBufferUtils.java36 import com.jme3.math.Vector2f;
455 public static FloatBuffer createFloatBuffer(Vector2f... data) { in createFloatBuffer()
517 public static void setInBuffer(Vector2f vector, FloatBuffer buf, int index) { in setInBuffer()
534 public static void populateFromBuffer(Vector2f vector, FloatBuffer buf, int index) { in populateFromBuffer()
546 public static Vector2f[] getVector2Array(FloatBuffer buff) { in getVector2Array()
548 Vector2f[] verts = new Vector2f[buff.limit() / 2]; in getVector2Array()
550 Vector2f v = new Vector2f(buff.get(), buff.get()); in getVector2Array()
583 Vector2f tempVec2 = vars.vect2d; in normalizeVector2()
601 public static void addInBuffer(Vector2f toAdd, FloatBuffer buf, int index) { in addInBuffer()
603 Vector2f tempVec2 = vars.vect2d; in addInBuffer()
[all …]
DTangentBinormalGenerator.java36 import com.jme3.math.Vector2f;
133 Vector2f[] t = new Vector2f[3]; in generate()
136 t[i] = new Vector2f(); in generate()
182 int[] index, Vector3f[] v, Vector2f[] t) { in processTriangles()
213 int[] index, Vector3f[] v, Vector2f[] t) { in processTriangleStrip()
248 Vector2f tTemp = t[0]; in processTriangleStrip()
261 int[] index, Vector3f[] v, Vector2f[] t) { in processTriangleFan()
293 Vector2f tTemp = t[1]; in processTriangleFan()
309 Vector3f[] v, Vector2f[] t) { in processTriangle()
312 Vector2f edge1uv = new Vector2f(); in processTriangle()
[all …]
/external/eigen/test/
Dgeo_alignedbox.cpp98 Vector2f m; m << -1.0f, -2.0f; in specificTest1()
99 Vector2f M; M << 1.0f, 5.0f; in specificTest1()
104 Vector2f sides = M-m; in specificTest1()
116 Vector2f bottomRight; bottomRight << M[0], m[1]; in specificTest1()
117 Vector2f topLeft; topLeft << m[0], M[1]; in specificTest1()
/external/eigen/doc/snippets/
DJacobi_makeGivens.cpp1 Vector2f v = Vector2f::Random();
/external/jmonkeyengine/engine/src/test/jme3test/collision/
DRayTrace.java37 import com.jme3.math.Vector2f;
82 Vector2f v = new Vector2f(x * wr,y * hr); in update()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
DUVCoordinatesGenerator.java37 import com.jme3.math.Vector2f;
114 Vector2f[] data = new Vector2f[] { new Vector2f(0, 1), new Vector2f(0, 0), new Vector2f(1, 0) }; in generateUVCoordinates()
116 Vector2f uv = data[i % 3]; in generateUVCoordinates()
/external/jmonkeyengine/engine/src/core/com/jme3/post/
DHDRRenderer.java37 import com.jme3.math.Vector2f;
173 Vector2f blockSize = new Vector2f(1f / bufW, 1f / bufH); in createLumShader()
174 Vector2f pixelSize = new Vector2f(1f / srcW, 1f / srcH); in createLumShader()
175 Vector2f blocks = new Vector2f(); in createLumShader()
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/
DMotionPath.java41 import com.jme3.math.Vector2f;
87 Vector2f v = getWayPointIndexForDistance(traveledDistance); in interpolatePath()
171 public Vector2f getWayPointIndexForDistance(float distance) { in getWayPointIndexForDistance()
177 return new Vector2f((float) i, (distance - sum) / len); in getWayPointIndexForDistance()
182 return new Vector2f((float) spline.getControlPoints().size() - 1, 1.0f); in getWayPointIndexForDistance()
/external/jmonkeyengine/engine/src/core/com/jme3/shadow/
DShadowUtil.java38 import com.jme3.math.Vector2f;
71 points[0].set(viewCam.getWorldCoordinates(new Vector2f(0, 0), n)); in updateFrustumPoints2()
72 points[1].set(viewCam.getWorldCoordinates(new Vector2f(0, h), n)); in updateFrustumPoints2()
73 points[2].set(viewCam.getWorldCoordinates(new Vector2f(w, h), n)); in updateFrustumPoints2()
74 points[3].set(viewCam.getWorldCoordinates(new Vector2f(w, 0), n)); in updateFrustumPoints2()
76 points[4].set(viewCam.getWorldCoordinates(new Vector2f(0, 0), f)); in updateFrustumPoints2()
77 points[5].set(viewCam.getWorldCoordinates(new Vector2f(0, h), f)); in updateFrustumPoints2()
78 points[6].set(viewCam.getWorldCoordinates(new Vector2f(w, h), f)); in updateFrustumPoints2()
79 points[7].set(viewCam.getWorldCoordinates(new Vector2f(w, 0), f)); in updateFrustumPoints2()
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/
DMeshHelper.java45 import com.jme3.math.Vector2f;
138 List<Vector2f> uvCoordinates = null; in toMesh()
147 uvCoordinates = new ArrayList<Vector2f>(); in toMesh()
173 … uvCoordinates.add(new Vector2f(uvs.get(0, 0).floatValue(), uvs.get(0, 1).floatValue())); in toMesh()
174 … uvCoordinates.add(new Vector2f(uvs.get(1, 0).floatValue(), uvs.get(1, 1).floatValue())); in toMesh()
175 … uvCoordinates.add(new Vector2f(uvs.get(2, 0).floatValue(), uvs.get(2, 1).floatValue())); in toMesh()
219 … uvCoordinates.add(new Vector2f(uvs.get(0, 0).floatValue(), uvs.get(0, 1).floatValue())); in toMesh()
220 … uvCoordinates.add(new Vector2f(uvs.get(2, 0).floatValue(), uvs.get(2, 1).floatValue())); in toMesh()
221 … uvCoordinates.add(new Vector2f(uvs.get(3, 0).floatValue(), uvs.get(3, 1).floatValue())); in toMesh()
298 … BufferUtils.createFloatBuffer(uvCoordinates.toArray(new Vector2f[uvCoordinates.size()]))); in toMesh()
/external/jmonkeyengine/engine/src/test/jme3test/texture/
DTestTexture3DLoading.java11 import com.jme3.math.Vector2f;
42 q.scaleTextureCoordinates(new Vector2f(rows, rows)); in simpleInitApp()

1234