public Vertex(ProjectedPoint p, float count) { Position.X = p.X; Position.Y = p.Y; Position.Z = p.Index / count; Color.X = p.Index / count; Color.Y = p.Index / count; Color.Z = p.Index / count; Position2.X = p.X; Position2.Y = p.Y; Position2.Z = p.Z; }
private bool IsSelected(ProjectedPoint p, float xmin, float ymin, float xmax, float ymax) { return(p.X >= xmin && p.X <= xmax && p.Y >= ymin && p.Y <= ymax); }