- Main Page
- Classes
- Files

- File List

# C:/Users/Andreas Schiffler/Desktop/SVN/NewGamePhysics/NewGamePhysics/Physics/GravityFieldCoefficient.cs

    00001 ﻿// --------------------------------------------------------
    00002 // GravityFieldCoefficient.cs
    00003 // (A. Schiffler, 2009)
    00004 // --------------------------------------------------------
    00005
    00006 namespace NewGamePhysics.Physics
    00007 {
    00008     using System;
    00009
    00015     public class GravityFieldCoefficient
    00016     {
    00020         private int l;
    00021
    00025         private int m;
    00026
    00030         private double c;
    00031
    00035         private double s;
    00036
    00040         public int L
    00041         {
    00042             get { return this.l; }
    00043             set { this.l = value; }
    00044         }
    00045
    00049         public int M
    00050         {
    00051             get { return this.m; }
    00052             set { this.m = value; }
    00053         }
    00054
    00058         public double C
    00059         {
    00060             get { return this.c; }
    00061             set { this.c = value; }
    00062         }
    00063
    00067         public double S
    00068         {
    00069             get { return this.s; }
    00070             set { this.s = value; }
    00071         }
    00072
    00080         public GravityFieldCoefficient(int l, int m, double c, double s)
    00081         {
    00082             this.l = l;
    00083             this.m = m;
    00084             this.c = c;
    00085             this.s = s;
    00086         }
    00087
    00092         public override string ToString()
    00093         {
    00094             return String.Format(
    00095                 "gfc {0} {1} {2} {3}",
    00096                 this.l,
    00097                 this.m,
    00098                 this.c,
    00099                 this.s);
    00100         }
    00101     }
    00102 }