示例#1
0
        public static Vector3 CalculatePointVector3(double position, double x1, double y1, double z1,
                                                    double x2, double z2, double orbit, RotationStrut rotation)
        {
            PositionStrut pos = CalculatePointDouble(position, x1, y1, z1, x2, z2, orbit, rotation);

            return(new Vector3((float)pos.x, (float)pos.y, (float)pos.z));
        }
示例#2
0
 public Sun(string name)
 {
     Name     = name;
     Position = new PositionStrut {
         x = 0f, y = 0f, z = 0f
     };
     Rotation = new RotationStrut {
         x = 0f, y = 0f, z = 0f
     };
 }