common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 2 Imported by: 0

Documentation

Overview

Package common contains model for base component used in simulation and results model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distribution

type Distribution int64

Distribution ...

const (
	// NoDistribution ...
	NoDistribution Distribution = iota
	// FlatDistribution ...
	FlatDistribution
	// GaussianDistribution ...
	GaussianDistribution
)

func (Distribution) MarshalJSON

func (d Distribution) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

func (*Distribution) UnmarshalJSON

func (d *Distribution) UnmarshalJSON(b []byte) error

UnmarshalJSON json.Unmarshaller implementation.

type Fraction

type Fraction float64

Fraction ...

type HeavyIon

type HeavyIon struct {
	Charge        int64 `json:"charge"`
	NucleonsCount int64 `json:"nucleonsCount"`
}

HeavyIon ...

func (HeavyIon) MarshalJSON

func (g HeavyIon) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type Particle

type Particle interface {
	json.Marshaler
}

Particle is interface for particle scored in detectors.

func UnmarshalParticle

func UnmarshalParticle(b json.RawMessage) (Particle, error)

UnmarshalParticle ...

type Point

type Point struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

Point represent a point in space.

type PredefinedParticle

type PredefinedParticle string

PredefinedParticle ...

func (PredefinedParticle) MarshalJSON

func (g PredefinedParticle) MarshalJSON() ([]byte, error)

MarshalJSON json.Marshaller implementation.

type Range

type Range struct {
	Min float64 `json:"min"`
	Max float64 `json:"max"`
}

Range contain min and max value of certain quantity.

type Vec3D

type Vec3D struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
	Z float64 `json:"z"`
}

Vec3D represent 3-dimensional vector.

type Vec3DCylindricalInt

type Vec3DCylindricalInt struct {
	Radius int64 `json:"radius"`
	Angle  int64 `json:"angle"`
	Z      int64 `json:"z"`
}

Vec3DCylindricalInt 3-dimensional vector of integers in cylindrical cordinates.

type Vec3DInt

type Vec3DInt struct {
	X int64 `json:"x"`
	Y int64 `json:"y"`
	Z int64 `json:"z"`
}

Vec3DInt represent 3-dimensional vector of integers.

Directories

Path Synopsis
Package color define Color type which contains color value.
Package color define Color type which contains color value.

Jump to

Keyboard shortcuts

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