Home
last modified time | relevance | path

Searched refs:Vector2 (Results 1 – 25 of 59) sorted by relevance

123

/external/replicaisland/src/com/replica/replicaisland/
DBackgroundCollisionComponent.java27 private Vector2 mPreviousPosition;
34 private Vector2 mCurrentPosition;
35 private Vector2 mPreviousCenter;
36 private Vector2 mDelta;
37 private Vector2 mFilterDirection;
38 private Vector2 mHorizontalHitPoint;
39 private Vector2 mHorizontalHitNormal;
40 private Vector2 mVerticalHitPoint;
41 private Vector2 mVerticalHitNormal;
42 private Vector2 mRayStart;
[all …]
DSolidSurfaceComponent.java24 private FixedSizeArray<Vector2> mStartPoints;
25 private FixedSizeArray<Vector2> mEndPoints;
26 private FixedSizeArray<Vector2> mNormals;
27 private Vector2 mStart;
28 private Vector2 mEnd;
29 private Vector2 mNormal;
36 mStart = new Vector2(); in SolidSurfaceComponent()
37 mEnd = new Vector2(); in SolidSurfaceComponent()
38 mNormal = new Vector2(); in SolidSurfaceComponent()
54 mStart = new Vector2(); in SolidSurfaceComponent()
[all …]
DGameObject.java30 private Vector2 mPosition;
31 private Vector2 mVelocity;
32 private Vector2 mTargetVelocity;
33 private Vector2 mAcceleration;
34 private Vector2 mImpulse;
36 private Vector2 mBackgroundCollisionNormal;
52 public Vector2 facingDirection;
82 mPosition = new Vector2(); in GameObject()
83 mVelocity = new Vector2(); in GameObject()
84 mTargetVelocity = new Vector2(); in GameObject()
[all …]
DPhysicsComponent.java58 Vector2 impulseVector = parentObject.getImpulse(); in update()
60 final Vector2 currentVelocity = parentObject.getVelocity(); in update()
62 final Vector2 surfaceNormal = parentObject.getBackgroundCollisionNormal(); in update()
75 Vector2 newVelocity = vectorPool.allocate(currentVelocity); in update()
88 final Vector2 gravityVector = gravity.getGravity(); in update()
122 parentObject.setAcceleration(Vector2.ZERO); in update()
123 parentObject.setImpulse(Vector2.ZERO); in update()
129 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNormal, in resolveCollision()
130 Vector2 outputImpulse) { in resolveCollision()
135 Vector2 collisionNormal = vectorPool.allocate(opposingNormal); in resolveCollision()
[all …]
DCollisionSystem.java109 public boolean castRay(Vector2 startPoint, Vector2 endPoint, Vector2 movementDirection, in castRay()
110 Vector2 hitPoint, Vector2 hitNormal, GameObject excludeObject) { in castRay()
123 Vector2 tempHitPoint = vectorPool.allocate(); in castRay()
124 Vector2 tempHitNormal = vectorPool.allocate(); in castRay()
152 Vector2 movementDirection, FixedSizeArray<HitPoint> hitPoints, in testBox()
184 Vector2 worldTileOffset = vectorPool.allocate(); in testBox()
223 movementDirection, excludeObject, Vector2.ZERO, hitPoints); in testBox()
235 public void addTemporarySurface(Vector2 startPoint, Vector2 endPoint, Vector2 normal, in addTemporarySurface()
277 protected int executeStraigtRay(final Vector2 startPoint, final Vector2 endPoint, in executeStraigtRay()
280 Vector2 hitPoint, Vector2 hitNormal, TileVisitor visitor) { in executeStraigtRay()
[all …]
DVector2.java22 public final class Vector2 extends AllocationGuard { class
26 public static final Vector2 ZERO = new Vector2(0, 0);
28 public Vector2() { in Vector2() method in Vector2
32 public Vector2(float xValue, float yValue) { in Vector2() method in Vector2
36 public Vector2(Vector2 other) { in Vector2() method in Vector2
40 public final void add(Vector2 other) { in add()
50 public final void subtract(Vector2 other) { in subtract()
60 public final void multiply(Vector2 other) { in multiply()
72 public final void set(Vector2 other) { in set()
82 public final float dot(Vector2 other) { in dot()
[all …]
DSphereCollisionVolume.java23 private Vector2 mCenter;
24 private Vector2 mWorkspaceVector;
25 private Vector2 mWorkspaceVector2;
30 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
31 mWorkspaceVector = new Vector2(); in SphereCollisionVolume()
32 mWorkspaceVector2 = new Vector2(); in SphereCollisionVolume()
38 mCenter = new Vector2(centerX, centerY); in SphereCollisionVolume()
39 mWorkspaceVector = new Vector2(); in SphereCollisionVolume()
40 mWorkspaceVector2 = new Vector2(); in SphereCollisionVolume()
63 public Vector2 getCenter() { in getCenter()
[all …]
DSimpleCollisionComponent.java21 private Vector2 mPreviousPosition;
22 private Vector2 mCurrentPosition;
23 private Vector2 mMovementDirection;
24 private Vector2 mHitPoint;
25 private Vector2 mHitNormal;
30 mPreviousPosition = new Vector2(); in SimpleCollisionComponent()
31 mCurrentPosition = new Vector2(); in SimpleCollisionComponent()
32 mMovementDirection = new Vector2(); in SimpleCollisionComponent()
33 mHitPoint = new Vector2(); in SimpleCollisionComponent()
34 mHitNormal = new Vector2(); in SimpleCollisionComponent()
DGravityComponent.java24 private Vector2 mGravity;
25 private Vector2 mScaledGravity;
26 private static final Vector2 sDefaultGravity = new Vector2(0.0f, -400.0f);
30 mGravity = new Vector2(sDefaultGravity); in GravityComponent()
31 mScaledGravity = new Vector2(); in GravityComponent()
47 public Vector2 getGravity() { in getGravity()
DCameraSystem.java27 private Vector2 mCurrentCameraPosition;
28 private Vector2 mFocalPosition;
29 private Vector2 mPreInterpolateCameraPosition;
30 private Vector2 mTargetPosition;
31 private Vector2 mBias;
47 mCurrentCameraPosition = new Vector2(); in CameraSystem()
48 mFocalPosition = new Vector2(); in CameraSystem()
49 mPreInterpolateCameraPosition = new Vector2(); in CameraSystem()
50 mTargetPosition = new Vector2(); in CameraSystem()
51 mBias = new Vector2(); in CameraSystem()
[all …]
DOrbitalMagnetComponent.java24 private Vector2 mCenter;
25 private Vector2 mDelta;
26 private Vector2 mRim;
27 private Vector2 mVelocity;
33 mCenter = new Vector2(); in OrbitalMagnetComponent()
34 mDelta = new Vector2(); in OrbitalMagnetComponent()
35 mRim = new Vector2(); in OrbitalMagnetComponent()
36 mVelocity = new Vector2(); in OrbitalMagnetComponent()
84 final Vector2 targetVelocity = target.getVelocity(); in applyMagnetism()
86 final Vector2 gravityVector = gravity.getGravity(); in applyMagnetism()
DVectorPool.java22 public class VectorPool extends TObjectPool<Vector2> {
31 getAvailable().add(new Vector2()); in fill()
37 ((Vector2)entry).zero(); in release()
42 public Vector2 allocate(Vector2 source) { in allocate()
43 Vector2 entry = super.allocate(); in allocate()
DAABoxCollisionVolume.java28 private Vector2 mWidthHeight;
29 private Vector2 mBottomLeft;
33 mBottomLeft = new Vector2(offsetX, offsetY); in AABoxCollisionVolume()
34 mWidthHeight = new Vector2(width, height); in AABoxCollisionVolume()
40 mBottomLeft = new Vector2(offsetX, offsetY); in AABoxCollisionVolume()
41 mWidthHeight = new Vector2(width, height); in AABoxCollisionVolume()
73 public boolean intersects(Vector2 position, FlipInfo flip, CollisionVolume other, in intersects()
74 Vector2 otherPosition, FlipInfo otherFlip) { in intersects()
DRenderComponent.java30 private Vector2 mPositionWorkspace;
31 private Vector2 mScreenLocation;
32 private Vector2 mDrawOffset;
38 mPositionWorkspace = new Vector2(); in RenderComponent()
39 mScreenLocation = new Vector2(); in RenderComponent()
40 mDrawOffset = new Vector2(); in RenderComponent()
DHudSystem.java68 private Vector2 mFlyButtonLocation;
72 private Vector2 mStompButtonLocation;
75 private Vector2 mMovementSliderBaseLocation;
76 private Vector2 mMovementSliderButtonLocation;
85 private Vector2 mCoinLocation;
86 private Vector2 mRubyLocation;
93 private Vector2 mFPSLocation;
104 mFlyButtonLocation = new Vector2(); in HudSystem()
105 mStompButtonLocation = new Vector2(); in HudSystem()
106 mCoinLocation = new Vector2(); in HudSystem()
[all …]
DNPCAnimationComponent.java125 final Vector2 velocity = parentObject.getVelocity(); in shouldFall()
137 final Vector2 velocity = parentObject.getVelocity(); in shouldJump()
148 final Vector2 velocity = parentObject.getVelocity(); in shouldRun()
158 final Vector2 velocity = parentObject.getVelocity(); in shouldMove()
193 final Vector2 velocity = parentObject.getVelocity(); in idle()
219 final Vector2 velocity = parentObject.getVelocity(); in walk()
256 final Vector2 velocity = parentObject.getVelocity(); in run()
292 final Vector2 velocity = parentObject.getVelocity(); in shoot()
303 final Vector2 velocity = parentObject.getVelocity(); in jumpStart()
321 final Vector2 velocity = parentObject.getVelocity(); in jumpAir()
DEventRecorder.java24 private Vector2 mLastDeathPosition = new Vector2();
37 synchronized void setLastDeathPosition(Vector2 position) { in setLastDeathPosition()
41 synchronized Vector2 getLastDeathPosition() { in getLastDeathPosition()
DHitPlayerComponent.java22 Vector2 mPlayerPosition;
23 Vector2 mMyPosition;
30 mPlayerPosition = new Vector2(); in HitPlayerComponent()
31 mMyPosition = new Vector2(); in HitPlayerComponent()
DGameObjectFactory.java1726 Vector2 surface1Start = new Vector2(32, 64);
1727 Vector2 surface1End = new Vector2(64, 96);
1728 Vector2 surface1Normal = new Vector2(-0.707f, 0.707f);
1731 Vector2 surface2Start = new Vector2(64, 96);
1732 Vector2 surface2End = new Vector2(75, 64);
1733 Vector2 surface2Normal = new Vector2(0.9456f, 0.3250f);
1736 Vector2 surface3Start = new Vector2(32, 0);
1737 Vector2 surface3End = new Vector2(32, 64);
1738 Vector2 surface3Normal = new Vector2(-1, 0);
1740 Vector2 surface4Start = new Vector2(75, 0);
[all …]
DSelectDialogComponent.java24 private Vector2 mLastPosition;
29 mLastPosition = new Vector2(); in SelectDialogComponent()
43 final Vector2 currentPosition = parentObject.getPosition(); in update()
DHitPoint.java20 public Vector2 hitPoint;
21 public Vector2 hitNormal;
/external/eigen/Eigen/src/Geometry/
DEulerAngles.h46 typedef Matrix<typename Derived::Scalar,2,1> Vector2; in eulerAngles() typedef
64 Scalar s2 = Vector2(coeff(j,i), coeff(k,i)).norm(); in eulerAngles()
69 Scalar s2 = Vector2(coeff(j,i), coeff(k,i)).norm(); in eulerAngles()
90 Scalar c2 = Vector2(coeff(i,i), coeff(i,j)).norm(); in eulerAngles()
/external/llvm/test/Transforms/LoopStrengthReduce/
Dpost-inc-icmpzero.ll20 %struct.Vector2 = type { i16*, [64 x i16], i32 }
24 define void @_Z15IntegerToStringjjR7Vector2(i32 %i, i32 %radix, %struct.Vector2* nocapture %result)…
54 %mLength = getelementptr inbounds %struct.Vector2, %struct.Vector2* %result, i64 0, i32 2
64 %mBegin = getelementptr inbounds %struct.Vector2, %struct.Vector2* %result, i64 0, i32 0
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopStrengthReduce/
Dpost-inc-icmpzero.ll21 %struct.Vector2 = type { i16*, [64 x i16], i32 }
25 define void @_Z15IntegerToStringjjR7Vector2(i32 %i, i32 %radix, %struct.Vector2* nocapture %result)…
55 %mLength = getelementptr inbounds %struct.Vector2, %struct.Vector2* %result, i64 0, i32 2
65 %mBegin = getelementptr inbounds %struct.Vector2, %struct.Vector2* %result, i64 0, i32 0
/external/libxcam/xcore/
Dvec_mat.h51 Vector2<T> operator op (const Vector2<T>& b) const { \
52 return Vector2<T>(x op b.x, y op b.y); \
54 Vector2<T> &operator op##= (const Vector2<T>& b) { \
59 Vector2<T> operator op (const T& b) const { \
60 return Vector2<T>(x op b, y op b); \
62 Vector2<T> &operator op##= (const T& b) { \
67 class Vector2
74 Vector2 () : x(0), y(0) {}; in Vector2() function
75 Vector2 (T _x, T _y) : x(_x), y(_y) {}; in Vector2() function
78 Vector2<New> convert_to () const { in convert_to()
[all …]

123