Home
last modified time | relevance | path

Searched refs:Vector3f (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DVector3f.java52 public final class Vector3f implements Savable, Cloneable, java.io.Serializable { class
56 private static final Logger logger = Logger.getLogger(Vector3f.class.getName());
58 public final static Vector3f ZERO = new Vector3f(0, 0, 0);
59 public final static Vector3f NAN = new Vector3f(Float.NaN, Float.NaN, Float.NaN);
60 public final static Vector3f UNIT_X = new Vector3f(1, 0, 0);
61 public final static Vector3f UNIT_Y = new Vector3f(0, 1, 0);
62 public final static Vector3f UNIT_Z = new Vector3f(0, 0, 1);
63 public final static Vector3f UNIT_XYZ = new Vector3f(1, 1, 1);
64 public final static Vector3f POSITIVE_INFINITY = new Vector3f(
68 public final static Vector3f NEGATIVE_INFINITY = new Vector3f(
[all …]
DTriangle.java51 private Vector3f pointa = new Vector3f();
52 private Vector3f pointb = new Vector3f();
53 private Vector3f pointc = new Vector3f();
54 private transient Vector3f center;
55 private transient Vector3f normal;
71 public Triangle(Vector3f p1, Vector3f p2, Vector3f p3) { in Triangle()
84 public Vector3f get(int i) { in get()
97 public Vector3f get1() { in get1()
101 public Vector3f get2() { in get2()
105 public Vector3f get3() { in get3()
[all …]
DRectangle.java53 private Vector3f a, b, c;
61 a = new Vector3f(); in Rectangle()
62 b = new Vector3f(); in Rectangle()
63 c = new Vector3f(); in Rectangle()
77 public Rectangle(Vector3f a, Vector3f b, Vector3f c) { in Rectangle()
88 public Vector3f getA() { in getA()
98 public void setA(Vector3f a) { in setA()
107 public Vector3f getB() { in getB()
117 public void setB(Vector3f b) { in setB()
126 public Vector3f getC() { in getC()
[all …]
DTransform.java52 private Vector3f translation = new Vector3f();
53 private Vector3f scale = new Vector3f(1,1,1);
55 public Transform(Vector3f translation, Quaternion rot){ in Transform()
60 public Transform(Vector3f translation, Quaternion rot, Vector3f scale){ in Transform()
65 public Transform(Vector3f translation){ in Transform()
70 this(Vector3f.ZERO, rot); in Transform()
74 this(Vector3f.ZERO, Quaternion.IDENTITY); in Transform()
92 public Transform setTranslation(Vector3f trans) { in setTranslation()
101 public Vector3f getTranslation() { in getTranslation()
110 public Transform setScale(Vector3f scale) { in setScale()
[all …]
DRay.java58 public Vector3f origin = new Vector3f();
63 public Vector3f direction = new Vector3f(0, 0, 1);
82 public Ray(Vector3f origin, Vector3f direction) { in Ray()
119 public boolean intersectWhere(Triangle t, Vector3f loc) { in intersectWhere()
139 public boolean intersectWhere(Vector3f v0, Vector3f v1, Vector3f v2, in intersectWhere()
140 Vector3f loc) { in intersectWhere()
157 public boolean intersectWherePlanar(Triangle t, Vector3f loc) { in intersectWherePlanar()
179 public boolean intersectWherePlanar(Vector3f v0, Vector3f v1, Vector3f v2, in intersectWherePlanar()
180 Vector3f loc) { in intersectWherePlanar()
200 private boolean intersects(Vector3f v0, Vector3f v1, Vector3f v2, in intersects()
[all …]
DFastMath.java132 …public static Vector3f interpolateLinear(float scale, Vector3f startValue, Vector3f endValue, Vect… in interpolateLinear()
134 store = new Vector3f(); in interpolateLinear()
154 public static Vector3f interpolateLinear(float scale, Vector3f startValue, Vector3f endValue) { in interpolateLinear()
186 …public static Vector3f extrapolateLinear(float scale, Vector3f startValue, Vector3f endValue, Vect… in extrapolateLinear()
188 store = new Vector3f(); in extrapolateLinear()
209 public static Vector3f extrapolateLinear(float scale, Vector3f startValue, Vector3f endValue) { in extrapolateLinear()
256 …public static Vector3f interpolateCatmullRom(float u, float T, Vector3f p0, Vector3f p1, Vector3f in interpolateCatmullRom()
258 store = new Vector3f(); in interpolateCatmullRom()
282 …public static Vector3f interpolateCatmullRom(float u, float T, Vector3f p0, Vector3f p1, Vector3f in interpolateCatmullRom()
327 …public static Vector3f interpolateBezier(float u, Vector3f p0, Vector3f p1, Vector3f p2, Vector3f in interpolateBezier()
[all …]
DRing.java52 private Vector3f center, up;
54 private transient static Vector3f b1 = new Vector3f(), b2 = new Vector3f();
62 center = new Vector3f(); in Ring()
63 up = Vector3f.UNIT_Y.clone(); in Ring()
81 public Ring(Vector3f center, Vector3f up, float innerRadius, in Ring()
94 public Vector3f getCenter() { in getCenter()
104 public void setCenter(Vector3f center) { in setCenter()
113 public Vector3f getUp() { in getUp()
123 public void setUp(Vector3f up) { in setUp()
171 public Vector3f random() { in random()
[all …]
DPlane.java64 protected Vector3f normal = new Vector3f();
87 public Plane(Vector3f normal, float constant) { in Plane()
102 public void setNormal(Vector3f normal) { in setNormal()
122 public Vector3f getNormal() { in getNormal()
146 public Vector3f getClosestPoint(Vector3f point, Vector3f store){ in getClosestPoint()
153 public Vector3f getClosestPoint(Vector3f point){ in getClosestPoint()
154 return getClosestPoint(point, new Vector3f()); in getClosestPoint()
157 public Vector3f reflect(Vector3f point, Vector3f store){ in reflect()
159 store = new Vector3f(); in reflect()
177 public float pseudoDistance(Vector3f point) { in pseudoDistance()
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/
DPhysicsCollisionEvent.java34 import com.jme3.math.Vector3f;
153 public Vector3f getLateralFrictionDir1() { in getLateralFrictionDir1()
154 return getLateralFrictionDir1(new Vector3f()); in getLateralFrictionDir1()
157 public Vector3f getLateralFrictionDir1(Vector3f lateralFrictionDir1) { in getLateralFrictionDir1()
161 …private native void getLateralFrictionDir1(long manifoldPointObjectId, Vector3f lateralFrictionDir… in getLateralFrictionDir1()
163 public Vector3f getLateralFrictionDir2() { in getLateralFrictionDir2()
164 return getLateralFrictionDir2(new Vector3f()); in getLateralFrictionDir2()
167 public Vector3f getLateralFrictionDir2(Vector3f lateralFrictionDir2) { in getLateralFrictionDir2()
171 …private native void getLateralFrictionDir2(long manifoldPointObjectId, Vector3f lateralFrictionDir… in getLateralFrictionDir2()
183 public Vector3f getLocalPointA() { in getLocalPointA()
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/joints/
DSixDofJoint.java42 import com.jme3.math.Vector3f;
66 Vector3f angularUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
67 Vector3f angularLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
68 Vector3f linearUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
69 Vector3f linearLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
78 …public SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivot… in SixDofJoint()
93 …public SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivot… in SixDofJoint()
135 public void setLinearUpperLimit(Vector3f vector) { in setLinearUpperLimit()
140 private native void setLinearUpperLimit(long objctId, Vector3f vector); in setLinearUpperLimit()
142 public void setLinearLowerLimit(Vector3f vector) { in setLinearLowerLimit()
[all …]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/joints/
DSixDofJoint.java45 import com.jme3.math.Vector3f;
66 private Vector3f angularUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
67 private Vector3f angularLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
68 private Vector3f linearUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
69 private Vector3f linearLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
78 …public SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivot… in SixDofJoint()
98 …public SixDofJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivot… in SixDofJoint()
139 public void setLinearUpperLimit(Vector3f vector) { in setLinearUpperLimit()
144 public void setLinearLowerLimit(Vector3f vector) { in setLinearLowerLimit()
149 public void setAngularUpperLimit(Vector3f vector) { in setAngularUpperLimit()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/bullet/
DPhysicsHoverControl.java44 import com.jme3.math.Vector3f;
65 protected Vector3f HOVER_HEIGHT_LF_START = new Vector3f(xw, 1, zw);
66 protected Vector3f HOVER_HEIGHT_RF_START = new Vector3f(-xw, 1, zw);
67 protected Vector3f HOVER_HEIGHT_LR_START = new Vector3f(xw, 1, -zw);
68 protected Vector3f HOVER_HEIGHT_RR_START = new Vector3f(-xw, 1, -zw);
69 protected Vector3f HOVER_HEIGHT_LF = new Vector3f(xw, -yw, zw);
70 protected Vector3f HOVER_HEIGHT_RF = new Vector3f(-xw, -yw, zw);
71 protected Vector3f HOVER_HEIGHT_LR = new Vector3f(xw, -yw, -zw);
72 protected Vector3f HOVER_HEIGHT_RR = new Vector3f(-xw, -yw, -zw);
73 protected Vector3f tempVect1 = new Vector3f(0, 0, 0);
[all …]
DTestRagDoll.java16 import com.jme3.math.Vector3f;
28 private Vector3f upforce = new Vector3f(0, 200, 0);
48 shoulders = createLimb(0.2f, 1.0f, new Vector3f(0.00f, 1.5f, 0), true); in createRagDoll()
49 Node uArmL = createLimb(0.2f, 0.5f, new Vector3f(-0.75f, 0.8f, 0), false); in createRagDoll()
50 Node uArmR = createLimb(0.2f, 0.5f, new Vector3f(0.75f, 0.8f, 0), false); in createRagDoll()
51 Node lArmL = createLimb(0.2f, 0.5f, new Vector3f(-0.75f, -0.2f, 0), false); in createRagDoll()
52 Node lArmR = createLimb(0.2f, 0.5f, new Vector3f(0.75f, -0.2f, 0), false); in createRagDoll()
53 Node body = createLimb(0.2f, 1.0f, new Vector3f(0.00f, 0.5f, 0), false); in createRagDoll()
54 Node hips = createLimb(0.2f, 0.5f, new Vector3f(0.00f, -0.5f, 0), true); in createRagDoll()
55 Node uLegL = createLimb(0.2f, 0.5f, new Vector3f(-0.25f, -1.2f, 0), false); in createRagDoll()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/
DEmitterMeshVertexShape.java8 import com.jme3.math.Vector3f;
25 protected List<List<Vector3f>> vertices;
26 protected List<List<Vector3f>> normals;
49 Map<Vector3f, Vector3f> vertToNormalMap = new HashMap<Vector3f, Vector3f>(); in setMeshes()
51 this.vertices = new ArrayList<List<Vector3f>>(meshes.size()); in setMeshes()
52 this.normals = new ArrayList<List<Vector3f>>(meshes.size()); in setMeshes()
60Vector3f vert = new Vector3f(vertexTable[i], vertexTable[i + 1], vertexTable[i + 2]); in setMeshes()
61 Vector3f norm = vertToNormalMap.get(vert); in setMeshes()
63 norm = new Vector3f(normalTable[i], normalTable[i + 1], normalTable[i + 2]); in setMeshes()
71 List<Vector3f> vertices = new ArrayList<Vector3f>(vertToNormalMap.size()); in setMeshes()
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DSimplexCollisionShape.java11 import com.jme3.math.Vector3f;
22 private Vector3f vector1, vector2, vector3, vector4;
27 … public SimplexCollisionShape(Vector3f point1, Vector3f point2, Vector3f point3, Vector3f point4) { in SimplexCollisionShape()
35 public SimplexCollisionShape(Vector3f point1, Vector3f point2, Vector3f point3) { in SimplexCollisionShape()
42 public SimplexCollisionShape(Vector3f point1, Vector3f point2) { in SimplexCollisionShape()
48 public SimplexCollisionShape(Vector3f point1) { in SimplexCollisionShape()
65 vector1 = (Vector3f) capsule.readSavable("simplexPoint1", null); in read()
66 vector2 = (Vector3f) capsule.readSavable("simplexPoint2", null); in read()
67 vector3 = (Vector3f) capsule.readSavable("simplexPoint3", null); in read()
68 vector4 = (Vector3f) capsule.readSavable("simplexPoint4", null); in read()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DTempVars.java164 public final Vector3f vect1 = new Vector3f();
165 public final Vector3f vect2 = new Vector3f();
166 public final Vector3f vect3 = new Vector3f();
167 public final Vector3f vect4 = new Vector3f();
168 public final Vector3f vect5 = new Vector3f();
169 public final Vector3f vect6 = new Vector3f();
170 public final Vector3f vect7 = new Vector3f();
172 public final Vector3f vect8 = new Vector3f();
173 public final Vector3f vect9 = new Vector3f();
174 public final Vector3f vect10 = new Vector3f();
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
DBone.java66 private Vector3f initialPos;
68 private Vector3f initialScale;
73 private Vector3f worldBindInversePos;
75 private Vector3f worldBindInverseScale;
79 private Vector3f localPos = new Vector3f();
81 private Vector3f localScale = new Vector3f(1.0f, 1.0f, 1.0f);
85 private Vector3f worldPos = new Vector3f();
87 private Vector3f worldScale = new Vector3f();
102 initialPos = new Vector3f(); in Bone()
104 initialScale = new Vector3f(1, 1, 1); in Bone()
[all …]
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
DTerrainGrid.java42 import com.jme3.math.Vector3f;
105 protected Vector3f currentCamCell = Vector3f.ZERO;
110 protected Vector3f[] quadIndex;
113 protected LRUCache<Vector3f, TerrainQuad> cache = new LRUCache<Vector3f, TerrainQuad>(16);
120 protected final Vector3f location;
122 public UpdateQuadCache(Vector3f location) { in UpdateQuadCache()
139 final Vector3f quadCell = location.add(quadIndex[quadIdx]); in run()
194 …public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, TerrainGridTile… in TerrainGrid()
209 …public TerrainGrid(String name, int patchSize, int maxVisibleSize, Vector3f scale, TerrainGridTile… in TerrainGrid()
214 this(name, patchSize, maxVisibleSize, Vector3f.UNIT_XYZ, terrainQuadGrid); in TerrainGrid()
[all …]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
DVehicleWheel.java38 import com.jme3.math.Vector3f;
51 protected Vector3f location = new Vector3f();
52 protected Vector3f direction = new Vector3f();
53 protected Vector3f axle = new Vector3f();
63 protected Vector3f wheelWorldLocation = new Vector3f();
73 public VehicleWheel(Spatial spat, Vector3f location, Vector3f direction, Vector3f axle, in VehicleWheel()
79 public VehicleWheel(Vector3f location, Vector3f direction, Vector3f axle, in VehicleWheel()
95 private native void getWheelLocation(long vehicleId, int wheelId, Vector3f location); in getWheelLocation()
104 Vector3f localLocation = wheelSpatial.getLocalTranslation(); in applyWheelTransform()
140 public Vector3f getLocation() { in getLocation()
[all …]
DPhysicsRigidBody.java46 import com.jme3.math.Vector3f;
144 public void setPhysicsLocation(Vector3f location) { in setPhysicsLocation()
148 private native void setPhysicsLocation(long objectId, Vector3f location); in setPhysicsLocation()
173 public Vector3f getPhysicsLocation(Vector3f trans) { in getPhysicsLocation()
175 trans = new Vector3f(); in getPhysicsLocation()
181 private native void getPhysicsLocation(long objectId, Vector3f vector); in getPhysicsLocation()
212 public Vector3f getPhysicsLocation() { in getPhysicsLocation()
213 Vector3f vec = new Vector3f(); in getPhysicsLocation()
337 public Vector3f getGravity() { in getGravity()
341 public Vector3f getGravity(Vector3f gravity) { in getGravity()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DOCTTriangle.java35 import com.jme3.math.Vector3f;
39 private final Vector3f pointa = new Vector3f();
40 private final Vector3f pointb = new Vector3f();
41 private final Vector3f pointc = new Vector3f();
45 public OCTTriangle(Vector3f p1, Vector3f p2, Vector3f p3, int index, int geomIndex) { in OCTTriangle()
61 public Vector3f get1(){ in get1()
65 public Vector3f get2(){ in get2()
69 public Vector3f get3(){ in get3()
73 public Vector3f getNormal(){ in getNormal()
74 Vector3f normal = new Vector3f(pointb); in getNormal()
/external/jmonkeyengine/engine/src/core/com/jme3/collision/
DSweepSphere.java45 private Vector3f velocity = new Vector3f();
46 private Vector3f center = new Vector3f();
47 private Vector3f dimension = new Vector3f();
48 private Vector3f invDim = new Vector3f();
52 private final Vector3f temp1 = new Vector3f(),
53 temp2 = new Vector3f(),
54 temp3 = new Vector3f();
55 private final Vector3f sVelocity = new Vector3f(),
56 sCenter = new Vector3f();
58 public Vector3f getCenter() { in getCenter()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/texture/
DTestTextureArray.java6 import com.jme3.math.Vector3f;
43 Vector3f[] vertices = new Vector3f[8]; in simpleInitApp()
44 vertices[0] = new Vector3f(0, 0, 0); in simpleInitApp()
45 vertices[1] = new Vector3f(3, 0, 0); in simpleInitApp()
46 vertices[2] = new Vector3f(0, 3, 0); in simpleInitApp()
47 vertices[3] = new Vector3f(3, 3, 0); in simpleInitApp()
49 vertices[4] = new Vector3f(3, 0, 0); in simpleInitApp()
50 vertices[5] = new Vector3f(6, 0, 0); in simpleInitApp()
51 vertices[6] = new Vector3f(3, 3, 0); in simpleInitApp()
52 vertices[7] = new Vector3f(6, 3, 0); in simpleInitApp()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/
DBIHTriangle.java36 import com.jme3.math.Vector3f;
40 private final Vector3f pointa = new Vector3f();
41 private final Vector3f pointb = new Vector3f();
42 private final Vector3f pointc = new Vector3f();
43 private final Vector3f center = new Vector3f();
45 public BIHTriangle(Vector3f p1, Vector3f p2, Vector3f p3) { in BIHTriangle()
53 public Vector3f get1(){ in get1()
57 public Vector3f get2(){ in get2()
61 public Vector3f get3(){ in get3()
65 public Vector3f getCenter() { in getCenter()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/
DBoundingSphere.java82 public BoundingSphere(float r, Vector3f c) { in BoundingSphere()
135 Vector3f[] vertList = new Vector3f[(end - start) * 3]; in computeFromTris()
185 center = new Vector3f(); in calcWelzl()
212 Vector3f tempA = new Vector3f(); //vars.vect1; in recurseMini()
213 Vector3f tempB = new Vector3f(); //vars.vect2; in recurseMini()
214 Vector3f tempC = new Vector3f(); //vars.vect3; in recurseMini()
215 Vector3f tempD = new Vector3f(); //vars.vect4; in recurseMini()
275 private void setSphere(Vector3f O, Vector3f A, Vector3f B, Vector3f C) { in setSphere()
276 Vector3f a = A.subtract(O); in setSphere()
277 Vector3f b = B.subtract(O); in setSphere()
[all …]

12345678910>>...18