Home
last modified time | relevance | path

Searched refs:velocity (Results 1 – 25 of 39) sorted by relevance

12

/external/replicaisland/src/com/replica/replicaisland/
DNPCAnimationComponent.java125 final Vector2 velocity = parentObject.getVelocity(); in shouldFall() local
126 if (velocity.y < FALL_SPEED_THRESHOLD) { in shouldFall()
137 final Vector2 velocity = parentObject.getVelocity(); in shouldJump() local
138 if (velocity.y > JUMP_SPEED_THRESHOLD) { in shouldJump()
148 final Vector2 velocity = parentObject.getVelocity(); in shouldRun() local
149 if (Math.abs(velocity.x) >= RUN_SPEED_THRESHOLD) { in shouldRun()
158 final Vector2 velocity = parentObject.getVelocity(); in shouldMove() local
161 if ((velocity.x < 0.0f && parentObject.touchingLeftWall()) in shouldMove()
162 || (velocity.x > 0.0f && parentObject.touchingRightWall())) { in shouldMove()
193 final Vector2 velocity = parentObject.getVelocity(); in idle() local
[all …]
DInterpolator.java106 private float calculateAcceleration(float velocity, float acceleration, float target) { in calculateAcceleration() argument
107 if (Math.abs(velocity - target) < 0.0001f) { in calculateAcceleration()
110 } else if (velocity > target) { in calculateAcceleration()
DPhysicsComponent.java129 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNormal, in resolveCollision() argument
139 Vector2 relativeVelocity = vectorPool.allocate(velocity); in resolveCollision()
169 protected void resolveCollision(Vector2 velocity, Vector2 impulse, Vector2 opposingNormal, in resolveCollision() argument
177 Vector2 entity1Velocity = vectorPool.allocate(velocity); in resolveCollision()
DGameObject.java172 public final void setVelocity(Vector2 velocity) { in setVelocity() argument
173 mVelocity.set(velocity); in setVelocity()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/template/
DVelocityTest.java24 import org.apache.velocity.Template;
25 import org.apache.velocity.VelocityContext;
26 import org.apache.velocity.app.VelocityEngine;
27 import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
/external/escapevelocity/src/test/java/com/google/escapevelocity/
DTemplateTest.java40 import org.apache.velocity.VelocityContext;
41 import org.apache.velocity.exception.ResourceNotFoundException;
42 import org.apache.velocity.exception.VelocityException;
43 import org.apache.velocity.runtime.RuntimeConstants;
44 import org.apache.velocity.runtime.RuntimeInstance;
45 import org.apache.velocity.runtime.log.NullLogChute;
46 import org.apache.velocity.runtime.parser.node.SimpleNode;
47 import org.apache.velocity.runtime.resource.Resource;
48 import org.apache.velocity.runtime.resource.loader.ResourceLoader;
124 } catch (org.apache.velocity.runtime.parser.ParseException e) { in velocityRender()
[all …]
/external/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
DSynthEngine.java220 public void noteOff(int channel, int noteIndex, int velocity) { in noteOff() argument
253 public void noteOn(int channel, int noteIndex, int velocity) { in noteOn() argument
254 if (velocity == 0) { in noteOn()
255 noteOff(channel, noteIndex, velocity); in noteOn()
265 voice.noteOn(noteIndex, velocity); in noteOn()
DSawVoice.java36 public void noteOn(int noteIndex, int velocity) { in noteOn() argument
37 super.noteOn(noteIndex, velocity); in noteOn()
DSynthVoice.java33 public void noteOn(int noteIndex, int velocity) { in noteOn() argument
36 setAmplitude(velocity / 128.0f); in noteOn()
/external/python/cpython2/Demo/tkinter/matt/
Danimation-w-velocity-ctrl.py29 velocity = self.speed.get()
30 str = float(velocity) / 1000.0
/external/perfetto/ui/src/frontend/
Dpan_and_zoom_handler.ts181 const velocity = 1 + msSinceStartOfAnimation * ACCELERATION_PER_MS; constant
184 const targetStep = Math.max(KEYBOARD_PAN_PX_PER_FRAME * velocity, step);
199 const velocity = 1 + msSinceStartOfAnimation * ACCELERATION_PER_MS; constant
202 const targetStep = Math.max(ZOOM_RATIO_PER_FRAME * velocity, step);
/external/sonivox/jet_tools/JetCreator/
Dmidifile.py395 def __init__ (self, ticks, seq, channel, note, velocity): argument
402 self.velocity = velocity
408 velocity = ReadByte(stream)
412 return NoteOffEvent(ticks, seq, channel, note, velocity)
415 if self.velocity > 0:
416 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
418 self.WriteRunningStatus(stream, track, filters, NOTE_ON, self.note, self.velocity)
422 return '%s: ch=%d n=%d v=%d' % (self.name, self.channel, self.note, self.velocity)
428 def __init__ (self, ticks, seq, channel, note, velocity, note_length, note_off_velocity): argument
435 self.velocity = velocity
[all …]
/external/sonivox/arm-wt-22k/lib_src/
Deas_dlssynth.c185 …Voice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity) in DLS_UpdateGain() argument
232 temp = velocity << 8; in DLS_UpdateGain()
281 cutoff += (pVoice->velocity * pDLSArt->velToFc) >> 7; in DLS_UpdateFilter()
337 …(EAS_I16) DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pVoice->velocity); in DLS_StartVoice()
414 …nTarget = DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pVoice->velocity); in DLS_UpdateVoice()
494 temp = pEnvParams->attackTime + ((pEnvParams->velToAttack * pVoice->velocity) >> 7); in DLS_UpdateEnvelope()
Deas_voicemgt.c182 pVoice->velocity = pVoice->nextVelocity = DEFAULT_VELOCITY; in InitVoice()
1260 … S_SYNTH *pSynth, EAS_I32 voiceNum, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMStolenVoice() argument
1274 pVoice->nextVelocity = velocity; in VMStolenVoice()
1399 pVoice->velocity = pVoice->nextVelocity; in VMRetargetStolenVoice()
1524 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMCheckPolyphonyLimiting() argument
1583 VMStolenVoice(pVoiceMgr, pSynth, oldestVoiceNum, channel, note, velocity, regionIndex); in VMCheckPolyphonyLimiting()
1599 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn… in VMStartVoice() argument
1649 …if (VMCheckPolyphonyLimiting(pVoiceMgr, pSynth, channel, note, velocity, regionIndex, lowVoice, hi… in VMStartVoice()
1683 pVoiceMgr->voices[voiceNum].velocity = velocity; in VMStartVoice()
1702 VMStolenVoice(pVoiceMgr, pSynth, voiceNum, channel, note, velocity, regionIndex); in VMStartVoice()
[all …]
Deas_vm_protos.h182 …MStartNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity);
234 …CE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 note, EAS_U8 velocity, EAS_U16 regionIn…
256 … VMStopNote (S_VOICE_MGR *pVoiceMgr, S_SYNTH *pSynth, EAS_U8 channel, EAS_U8 key, EAS_U8 velocity);
Deas_otadata.h74 EAS_U8 velocity; /* current volume */ member
Deas_ota.c517 … VMStartNote(pEASData->pVoiceMgr, pData->pSynth, OTA_CHANNEL, pData->note, pData->velocity); in OTA_Event()
550 pData->velocity = temp ? (EAS_U8) (temp * OTA_VEL_MUL + OTA_VEL_OFS) : 0; in OTA_Event()
876 pData->velocity = OTA_VEL_DEFAULT; in OTA_ParseHeader()
Deas_synth.h285 EAS_U8 velocity; /* 0 <= velocity <= 127 */ member
Deas_imelody.c892 EAS_U8 velocity; in IMY_PlayNote() local
905 velocity = (EAS_U8) (pData->volume ? pData->volume * IMELODY_VEL_MUL + IMELODY_VEL_OFS : 0); in IMY_PlayNote()
909 VMStartNote(pEASData->pVoiceMgr, pData->pSynth, IMELODY_CHANNEL, pData->note, velocity); in IMY_PlayNote()
/external/tensorflow/tensorflow/python/ops/parallel_for/
Dcontrol_flow_ops_test.py2079 def __init__(self, mass, velocity): argument
2081 velocity = ops.convert_to_tensor(velocity)
2082 self.shape = array_ops.broadcast_static_shape(mass.shape, velocity.shape)
2084 self.velocity = velocity
2090 type_spec.type_spec_from_value(self.velocity))
2095 def __init__(self, mass, velocity): argument
2097 mass.shape, velocity.shape)
2099 self.velocity = velocity
2102 return (self.mass, self.velocity)
2110 return (self.mass, self.velocity)
[all …]
/external/skqp/samplecode/
DSampleLitAtlas.cpp71 SkVector newVel = fShip.velocity(); in thrust()
392 const SkPoint& velocity() const { return fVelocity; } in velocity() function in DrawLitAtlasDrawable::ObjectRecord
393 void setVelocity(const SkPoint& velocity) { fVelocity = velocity; } in setVelocity() argument
/external/sonivox/arm-wt-22k/host_src/
Deas_types.h242 EAS_U8 velocity; member
/external/sonivox/arm-wt-22k/include/libsonivox/
Deas_types.h242 EAS_U8 velocity; member
/external/escapevelocity/
DREADME.md4 functionality from [Apache Velocity](http://velocity.apache.org/).
9 [User Guide](http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html)
91 [Velocity User Guide](http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html#Refer…
/external/skia/modules/particles/include/
DSkParticleEffect.h134 SkVector velocity, float spin, SkColor4f color, float frame, float seed);

12