-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
heavy refactor. update to java 22, use mvnw
- Loading branch information
1 parent
5c40e9e
commit c3ef8e1
Showing
15 changed files
with
1,667 additions
and
1,317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
wrapperVersion=3.3.2 | ||
distributionType=only-script | ||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 19 additions & 19 deletions
38
lucien/src/main/java/com/hellblazer/luciferase/lucien/grid/GridLocator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
/** | ||
* Copyright (C) 2023 Hal Hildebrand. All rights reserved. | ||
* | ||
* This program is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU Affero General Public License as published by the Free | ||
* Software Foundation, either version 3 of the License, or (at your option) any | ||
* | ||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General | ||
* Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any | ||
* later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.hellblazer.luciferase.lucien.grid; | ||
|
||
import java.util.Random; | ||
|
||
import javax.vecmath.Tuple3f; | ||
import java.util.Random; | ||
|
||
/** | ||
* @author hal.hildebrand | ||
*/ | ||
public class GridLocator { | ||
private Tetrahedron last; | ||
|
||
public GridLocator(Tetrahedron initial) { | ||
last = initial; | ||
} | ||
|
||
/** | ||
* Locate the tetrahedron which contains the query point via a stochastic walk | ||
* through the delaunay triangulation. This location algorithm is a slight | ||
* variation of the 3D jump and walk algorithm found in: "Fast randomized point | ||
* location without preprocessing in two- and three-dimensional Delaunay | ||
* triangulations", Computational Geometry 12 (1999) 63-83. | ||
* Locate the tetrahedron which contains the query point via a stochastic walk through the delaunay triangulation. | ||
* This location algorithm is a slight variation of the 3D jump and walk algorithm found in: "Fast randomized point | ||
* location without preprocessing in two- and three-dimensional Delaunay triangulations", Computational Geometry 12 | ||
* (1999) 63-83. z | ||
* | ||
* @param query - the query point | ||
* @return the Tetrahedron containing the query | ||
*/ | ||
public Tetrahedron locate(Tuple3f query, Random entropy) { | ||
return last.locate(query, entropy); | ||
return last = last.locate(query, entropy); | ||
} | ||
} |
Oops, something went wrong.