From 5f4976fc270af1623d902cf1860cae7e742b5e2d Mon Sep 17 00:00:00 2001
From: Daniel Schramm <xschramm@fi.muni.cz>
Date: Wed, 5 May 2021 18:09:54 +0200
Subject: [PATCH] Feature point position stored as Point3d

---
 .../analyst/feature/FeaturePoint.java         | 25 ++++++++-----------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/MeshModel/src/main/java/cz/fidentis/analyst/feature/FeaturePoint.java b/MeshModel/src/main/java/cz/fidentis/analyst/feature/FeaturePoint.java
index 1b4a6a4c..5b527a5d 100644
--- a/MeshModel/src/main/java/cz/fidentis/analyst/feature/FeaturePoint.java
+++ b/MeshModel/src/main/java/cz/fidentis/analyst/feature/FeaturePoint.java
@@ -1,38 +1,35 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
 package cz.fidentis.analyst.feature;
 
+import javax.vecmath.Point3d;
+
 /**
  *
  * @author kubok
  */
 public class FeaturePoint {
 
-    private final double X;
-    private final double Y;
-    private final double Z;
+    private final Point3d position;
     private final FeaturePointType FEATURE_POINT_TYPE;
 
     public FeaturePoint(double x, double y, double z, FeaturePointType featurePointType) {
-        this.X = x;
-        this.Y = y;
-        this.Z = z;
+        this.position = new Point3d(x, y, z);
         this.FEATURE_POINT_TYPE = featurePointType;
     }
+    
+    public Point3d getPosition() {
+        return position;
+    }
 
     public double getX() {
-        return X;
+        return position.x;
     }
 
     public double getY() {
-        return Y;
+        return position.y;
     }
 
     public double getZ() {
-        return Z;
+        return position.z;
     }
 
     public FeaturePointType getFeaturePointType() {
-- 
GitLab