/// <summary> /// clona a bbox /// </summary> /// <returns></returns> public Bbox Clone() { var bBox = new Bbox(); bBox.centerX = this.centerX; bBox.centerY = this.centerY; bBox.largerDistanceLeft = this.largerDistanceLeft; bBox.largerDistanceRight = this.largerDistanceRight; bBox.largerDistanceTop = this.largerDistanceTop; bBox.largetDistanceBottom = this.largetDistanceBottom; return(bBox); }
/// <summary> /// Contrutor adiciona os pontos4d /// atribui a matriz identidade a matriz de transformacao /// cria a bbox com base nos pontos 4d /// </summary> /// <param name="points4D"></param> public Polygon(List <Ponto4D> points4D) { this.points4D = points4D; this.transformacao.atribuirIdentidade(); this.Bbox = new Bbox(points4D); }