public void copy_from(RayCollision other) { ray = other.ray; shape = other.shape; start = other.start; end = other.end; }
public RayCollision clone() { var clone = new RayCollision(); clone.copy_from(this); return(clone); }