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

123

/external/chromium_org/native_client_sdk/src/examples/demo/flock/
H A Dgoose.h23 Goose(const Vector2& location, const Vector2& velocity);
34 const std::vector<Vector2>& attractors,
53 Vector2 DesiredVector(const std::vector<Goose>& geese,
54 const std::vector<Vector2>& attractors);
60 Vector2 TurnTowardsTarget(const Vector2& target);
63 Vector2 location() const {
66 Vector2 velocity() const {
85 const Vector2
[all...]
H A Dgoose.cc43 Goose::Goose(const Vector2& location, const Vector2& velocity)
49 const std::vector<Vector2>& attractors,
52 Vector2 acceleration = DesiredVector(geese, attractors);
76 Vector2 Goose::DesiredVector(const std::vector<Goose>& geese,
77 const std::vector<Vector2>& attractors) {
81 Vector2 separation;
83 Vector2 alignment;
85 Vector2 cohesion;
93 Vector2 goose_delt
[all...]
H A Dvector2.h15 class Vector2 { class
17 Vector2() : x_(0.0), y_(0.0) {} function in class:Vector2
18 Vector2(double x, double y) : x_(x), y_(y) {} function in class:Vector2
19 ~Vector2() {}
22 static Vector2 Difference(const Vector2& a, const Vector2& b) {
23 Vector2 diff(a.x() - b.x(), a.y() - b.y());
33 void Add(const Vector2& vec) {
/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();
/external/chromium_org/third_party/angle/samples/angle/sample_util/
H A DVector.h10 struct Vector2 struct
21 Vector2();
22 Vector2(float x, float y);
24 static float length(const Vector2 &vec);
25 static float lengthSquared(const Vector2 &vec);
27 static Vector2 normalize(const Vector2 &vec);
H A Dgeometry_utils.cpp107 result->texcoords[ 0] = Vector2(0.0f, 0.0f);
108 result->texcoords[ 1] = Vector2(0.0f, 1.0f);
109 result->texcoords[ 2] = Vector2(1.0f, 1.0f);
110 result->texcoords[ 3] = Vector2(1.0f, 0.0f);
111 result->texcoords[ 4] = Vector2(1.0f, 0.0f);
112 result->texcoords[ 5] = Vector2(1.0f, 1.0f);
113 result->texcoords[ 6] = Vector2(0.0f, 1.0f);
114 result->texcoords[ 7] = Vector2(0.0f, 0.0f);
115 result->texcoords[ 8] = Vector2(0.0f, 0.0f);
116 result->texcoords[ 9] = Vector2(0.
[all...]
H A DVector.cpp11 Vector2::Vector2() function in class:Vector2
17 Vector2::Vector2(float x, float y) function in class:Vector2
23 float Vector2::length(const Vector2 &vec)
29 float Vector2::lengthSquared(const Vector2 &vec)
35 Vector2 Vector2
[all...]

Completed in 318 milliseconds

123