Searched refs:Vector2 (Results 1 - 25 of 51) sorted by relevance

123

/external/replicaisland/src/com/replica/replicaisland/
H A DVectorPool.java22 public class VectorPool extends TObjectPool<Vector2> {
31 getAvailable().add(new Vector2());
37 ((Vector2)entry).zero();
42 public Vector2 allocate(Vector2 source) {
43 Vector2 entry = super.allocate();
H A 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);
31 mScaledGravity = new Vector2();
47 public Vector2 getGravity() {
H A 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();
37 mEnd = new Vector2();
38 mNormal = new Vector2();
54 mStart = new Vector2();
[all...]
H A DHitPoint.java20 public Vector2 hitPoint;
21 public Vector2 hitNormal;
H A 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 mRayStar
[all...]
H A 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();
83 mVelocity = new Vector2();
84 mTargetVelocity = new Vector2();
[all...]
H A DVector2.java22 public final class Vector2 extends AllocationGuard { class in inherits:AllocationGuard
26 public static final Vector2 ZERO = new Vector2(0, 0);
28 public Vector2() { method in class:Vector2
32 public Vector2(float xValue, float yValue) { method in class:Vector2
36 public Vector2(Vector2 other) { method in class:Vector2
40 public final void add(Vector2 other) {
50 public final void subtract(Vector2 other) {
60 public final void multiply(Vector2 othe
[all...]
H A DEventRecorder.java24 private Vector2 mLastDeathPosition = new Vector2();
37 synchronized void setLastDeathPosition(Vector2 position) {
41 synchronized Vector2 getLastDeathPosition() {
H A 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();
31 mCurrentPosition = new Vector2();
32 mMovementDirection = new Vector2();
33 mHitPoint = new Vector2();
34 mHitNormal = new Vector2();
[all...]
H A DPhysicsComponent.java58 Vector2 impulseVector = parentObject.getImpulse();
60 final Vector2 currentVelocity = parentObject.getVelocity();
62 final Vector2 surfaceNormal = parentObject.getBackgroundCollisionNormal();
75 Vector2 newVelocity = vectorPool.allocate(currentVelocity);
88 final Vector2 gravityVector = gravity.getGravity();
122 parentObject.setAcceleration(Vector2.ZERO);
123 parentObject.setImpulse(Vector2.ZERO);
129 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNorma
[all...]
H A DRenderComponent.java30 private Vector2 mPositionWorkspace;
31 private Vector2 mScreenLocation;
32 private Vector2 mDrawOffset;
38 mPositionWorkspace = new Vector2();
39 mScreenLocation = new Vector2();
40 mDrawOffset = new Vector2();
H A DSphereCollisionVolume.java23 private Vector2 mCenter;
24 private Vector2 mWorkspaceVector;
25 private Vector2 mWorkspaceVector2;
30 mCenter = new Vector2(centerX, centerY);
31 mWorkspaceVector = new Vector2();
32 mWorkspaceVector2 = new Vector2();
38 mCenter = new Vector2(centerX, centerY);
39 mWorkspaceVector = new Vector2();
40 mWorkspaceVector2 = new Vector2();
63 public Vector2 getCente
[all...]
H A DOrbitalMagnetComponent.java24 private Vector2 mCenter;
25 private Vector2 mDelta;
26 private Vector2 mRim;
27 private Vector2 mVelocity;
33 mCenter = new Vector2();
34 mDelta = new Vector2();
35 mRim = new Vector2();
36 mVelocity = new Vector2();
84 final Vector2 targetVelocity = target.getVelocity();
86 final Vector2 gravityVecto
[all...]
H A DAABoxCollisionVolume.java28 private Vector2 mWidthHeight;
29 private Vector2 mBottomLeft;
33 mBottomLeft = new Vector2(offsetX, offsetY);
34 mWidthHeight = new Vector2(width, height);
40 mBottomLeft = new Vector2(offsetX, offsetY);
41 mWidthHeight = new Vector2(width, height);
73 public boolean intersects(Vector2 position, FlipInfo flip, CollisionVolume other,
74 Vector2 otherPosition, FlipInfo otherFlip) {
H A DHitPlayerComponent.java22 Vector2 mPlayerPosition;
23 Vector2 mMyPosition;
30 mPlayerPosition = new Vector2();
31 mMyPosition = new Vector2();
H A DCollisionSystem.java109 public boolean castRay(Vector2 startPoint, Vector2 endPoint, Vector2 movementDirection,
110 Vector2 hitPoint, Vector2 hitNormal, GameObject excludeObject) {
123 Vector2 tempHitPoint = vectorPool.allocate();
124 Vector2 tempHitNormal = vectorPool.allocate();
152 Vector2 movementDirection, FixedSizeArray<HitPoint> hitPoints,
184 Vector2 worldTileOffset = vectorPool.allocate();
223 movementDirection, excludeObject, Vector2
[all...]
H A 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();
48 mFocalPosition = new Vector2();
49 mPreInterpolateCameraPosition = new Vector2();
50 mTargetPosition = new Vector2();
51 mBias = new Vector2();
[all...]
H A DDrawableObject.java57 public boolean visibleAtPosition(Vector2 position) {
H A DSelectDialogComponent.java24 private Vector2 mLastPosition;
29 mLastPosition = new Vector2();
43 final Vector2 currentPosition = parentObject.getPosition();
H A DCollisionVolume.java55 public abstract boolean intersects(Vector2 position, FlipInfo flip, CollisionVolume other,
56 Vector2 otherPosition, FlipInfo otherFlip);
H A DNPCAnimationComponent.java125 final Vector2 velocity = parentObject.getVelocity();
137 final Vector2 velocity = parentObject.getVelocity();
148 final Vector2 velocity = parentObject.getVelocity();
158 final Vector2 velocity = parentObject.getVelocity();
193 final Vector2 velocity = parentObject.getVelocity();
219 final Vector2 velocity = parentObject.getVelocity();
256 final Vector2 velocity = parentObject.getVelocity();
292 final Vector2 velocity = parentObject.getVelocity();
303 final Vector2 velocity = parentObject.getVelocity();
321 final Vector2 velocit
[all...]
H A 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();
105 mStompButtonLocation = new Vector2();
106 mCoinLocation = new Vector2();
[all...]
H A DAttackAtDistanceComponent.java27 private Vector2 mDistance;
32 mDistance = new Vector2();
H A DPopOutComponent.java34 private Vector2 mDistance;
45 mDistance = new Vector2();
/external/jmonkeyengine/engine/src/core/com/jme3/shader/
H A DVarType.java38 Vector2, enum constant in enum:VarType

Completed in 191 milliseconds

123