Git Product home page Git Product logo

classy-dvda's People

Contributors

ghorn avatar jgillis avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jgillis

classy-dvda's Issues

Force on rigid body: specify where it acts

Right now, a force acting on a rigid body is silently assumed to be acting on the body's centre of mass.

A lazy user might want to specify the force to be acting on another point, without doing the maths of splitting in an equivalent force+torque pair.

nice package, btw!

Simplification of --

The following code seems to expose a bug in simplification logic. The output contains + --b'(t)

import Classy
import VectorMath

n = newtonianFrame

a = coord "a"
b = coord "b"
f1 = rotX n a "f1"
f2 = rotY f1 b "f2"

x = coord "x"
y = coord "y"
z = coord "z"

p1 = RelativePoint N0 (xyzVec (x,y,z) f1)

run = do
  print $ ddtF (subtractPoints p1 N0) f2

Arithmetic with zero vectors

The following code does not work as expected:

import Classy
let n = newtonianFrame
(xyzVec (1,0,0) n) - (xyzVec (1,2,3) n )

Works totally fine for something else then the exact zero vector...

Extend the notion of Frame

I always tend to think of frames as things that are related to each other by means of both a rotation and a translation.
The current notion of Frame does not seem to allow for translation.

Translation only gets into play with RigidBody, where I think it should already be present in Frame

Frame relationship: latest common ancestor

Supposing the dependencies of all frames have a tree like structure, we could do with a function that gives the latest common ancestor of given two frames. A first implementation could just lie and return the NewtonianFrame.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.