From issues-return-66267-archive-asf-public=cust-asf.ponee.io@commons.apache.org Sun Feb 4 20:14:03 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id D49FE18064A for ; Sun, 4 Feb 2018 20:14:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C414B160C41; Sun, 4 Feb 2018 19:14:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 15311160C40 for ; Sun, 4 Feb 2018 20:14:02 +0100 (CET) Received: (qmail 11358 invoked by uid 500); 4 Feb 2018 19:14:02 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 11347 invoked by uid 99); 4 Feb 2018 19:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2018 19:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BC66D1A0698 for ; Sun, 4 Feb 2018 19:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5Lmhow3mc3-W for ; Sun, 4 Feb 2018 19:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DE6775F22E for ; Sun, 4 Feb 2018 19:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 52D3AE00B4 for ; Sun, 4 Feb 2018 19:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0600821301 for ; Sun, 4 Feb 2018 19:14:00 +0000 (UTC) Date: Sun, 4 Feb 2018 19:14:00 +0000 (UTC) From: "Matt Juntunen (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-1449) PolygonsSet.getBarycenter() returns incorrect value for empty region MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Matt Juntunen created MATH-1449: ----------------------------------- Summary: PolygonsSet.getBarycenter() returns incorrect value for empty region Key: MATH-1449 URL: https://issues.apache.org/jira/browse/MATH-1449 Project: Commons Math Issue Type: Bug Affects Versions: 3.6, 4.0 Reporter: Matt Juntunen Fix For: 4.0 The o.a.c.m.geometry.euclidean.twod.PolygonsSet.getBarycenter() method returns the point (0, 0) when the region is empty. It should return (NaN, NaN) since the barycenter does not exist. This is the behavior of IntervalsSet and PolyhedronsSet. -- This message was sent by Atlassian JIRA (v7.6.3#76005)