engine

package
v0.0.0-...-99d09c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2015 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package engine defines runtime functionality needed for reaction diffusion

Copyright 2015 Markus Dittrich Licensed under BSD license, see LICENSE file for details

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collide

func Collide(mol *mol.Mol3, disp *vec.Vec3, mesh geom.Mesh) (vec.Vec3, bool)

Collide checks for collisions of molecule mol along disp with mesh elements If a collisions occurs it returns the hitPoint and true. If no collision occurs it returns nil and false

func Diffuse

func Diffuse(mol *mol.Mol3, dt float64, mesh geom.Mesh, rng *rand.Rand)

Diffuse diffuses a molecule along the provided displacement vector, potentially reflecting off of mesh elements until the motion is complete.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL