This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Segment divider (currently at a fixed length) | |
int div; | |
int div_c; | |
float upper_limit; | |
float bottom_limit; | |
if (dy < dx) | |
div_c = Math.abs(dy); | |
else | |
div_c = Math.abs(dx); | |
if (div_c < 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package model.drawables; | |
import java.awt.Graphics; | |
/** | |
* Klasse, die eine Linie repräsentiert. Eine Linie besteht aus zwei | |
* Punkten. Diese Punkte dienen als Start- und Endpunkt fuer den Bresenham | |
* Algorithmus. | |
* | |
* @author Nicolas Neubauer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cube3D { | |
private int red_min; | |
private int green_min; | |
private int blue_min; | |
private int red_max; | |
private int green_max; | |
private int blue_max; | |
//private Map<Integer,Integer> color; | |
private ArrayList<MyPoint> points; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* cuts the Cube into two cubes by red value. | |
* @return List containing the new Cubes (left and right | up and down | front and back). | |
*/ | |
public ArrayList<Cube3D> r_cut() { | |
Comparator<MyPoint> sort = new Comparator<MyPoint>() { | |
@Override | |
public int compare(MyPoint o1, MyPoint o2) { | |
return o1.cords[0] - o2.cords[0]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.PrintWriter; | |
/** | |
* @author Lukas Kalbertodt | |
*/ | |
public class Sierpinski { | |
private static int svgHeight = 1000; | |
private static int svgWidth = 1000; | |
private static String HTMLHeader = "<!DOCTYPE html>\n" + | |
"<html>\n" + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::collections::{HashMap, HashSet}; | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name=""></param> | |
fn main() { | |
let mut ach_dic = Achiev::new(); | |
println!("add property kill cats with kill > 10"); | |
ach_dic.define_property("kill cats",0,ACTIVE_IF_GREATER_THAN,10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use base::math::*; | |
use std::f64::consts::PI; | |
enum SIDE { | |
Top, | |
Bottom, | |
Left, | |
Right, | |
NearP, | |
FarP, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
namespace TagRemover | |
{ | |
class Log | |
{ | |
/// <summary> | |
/// Types used to define the type of Message (is used by the Log to determing if Message needs to be displayed). | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Main(string argument) { | |
//get furnaces | |
var furnace_list = new List<IMyTerminalBlock>(); | |
var temp_list = new List<IMyTerminalBlock>(); | |
GridTerminalSystem.GetBlocksOfType<IMyRefinery>(temp_list); | |
foreach(IMyTerminalBlock t in temp_list) { | |
if( t.CustomName.Contains("Furnace")) |
OlderNewer