Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)
Used to set the position of this point w.r.t. another point.

Parameters
==========

value : Vector
    The vector which defines the location of this point
point : Point
    The other point which this point's location is defined relative to
(more...)

src/p/y/pydy-tutorial-pycon-2014-HEAD/notebooks/solution/kinematics.py   pydy-tutorial-pycon-2014(Download)
 
knee = Point('K')
knee.set_pos(ankle, lower_leg_length * lower_leg_frame.y)
 
hip = Point('H')
hip.set_pos(knee, upper_leg_length * upper_leg_frame.y)
 
lower_leg_mass_center = Point('L_o')
lower_leg_mass_center.set_pos(ankle, lower_leg_com_length * lower_leg_frame.y)
 
upper_leg_mass_center = Point('U_o')
upper_leg_mass_center.set_pos(knee, upper_leg_com_length * upper_leg_frame.y)
 
torso_mass_center = Point('T_o')
torso_mass_center.set_pos(hip, torso_com_length * torso_frame.y)

src/p/y/pydy-code-gen-0.1.0/pydy_code_gen/tests/whipple.py   pydy-code-gen(Download)
# newtonian origin to rear wheel center
do = mec.Point('do')
do.set_pos(no, -rr * B['3'])
 
# rear wheel center to bicycle frame center
co = mec.Point('co')
co.set_pos(do, l1 * C['1'] + l2 * C['3'])
# rear wheel center to steer axis point
ce = mec.Point('ce')
ce.set_pos(do, d1 * C['1'])
 
# steer axis point to the front wheel center
fo = mec.Point('fo')
fo.set_pos(ce, d2 * E['3'] + d3 * E['1'])
# front wheel center to front frame center
eo = mec.Point('eo')
eo.set_pos(fo, l3 * E['1'] + l4 * E['3'])
 
# locate the points fixed on the wheel which instaneously touch the ground

src/s/y/sympy-HEAD/sympy/physics/mechanics/tests/test_rigidbody.py   sympy(Download)
    O = Point('O')
    O.set_vel(N, v * b.x)
    P.set_pos(O, r * b.y)
    assert B.angular_momentum(O, N) == omega * b.x - M*v*r*b.z
    B.set_potential_energy(M * g * h)

src/s/y/sympy-HEAD/sympy/physics/mechanics/tests/test_particle.py   sympy(Download)
    N = ReferenceFrame('N')
    O = Point('O')
    P2.set_pos(O, r * N.y)
    P2.set_vel(N, v1 * N.x)
    assert p.linear_momentum(N) == m2 * v1 * N.x

src/p/y/pydy-code-gen-0.1.0/pydy_code_gen/tests/models.py   pydy-code-gen(Download)
 
    P0 = me.Point('P0')
    P0.set_pos(O, q[0] * I.x)
    P0.set_vel(I, u[0] * I.x)
    Pa0 = me.Particle('Pa0', P0, m[0])