Skip to content

GEOMETRY-119: adding Vector.normalizeOrNull() method#143

Merged
asfgit merged 1 commit intoapache:masterfrom
darkma773r:geometry-119-normalize-or-null
Apr 9, 2021
Merged

GEOMETRY-119: adding Vector.normalizeOrNull() method#143
asfgit merged 1 commit intoapache:masterfrom
darkma773r:geometry-119-normalize-or-null

Conversation

@darkma773r
Copy link
Contributor

No description provided.

Copy link
Member

@arturobernalg arturobernalg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@singhbaljit
Copy link
Contributor

IMO, it shouldn't return null. Instead, it should return Optional<V>.

@darkma773r
Copy link
Contributor Author

@singhbaljit, that's a good idea. Can you suggest that on the JIRA issue along with what you think we should name the method? Would it still be "normalizeOrNull"?

@darkma773r darkma773r force-pushed the geometry-119-normalize-or-null branch from ac004ec to de88266 Compare April 4, 2021 11:52
@darkma773r darkma773r changed the title GEOMETRY-119: adding Vector.normalizeOrNull() method GEOMETRY-119: adding Vector.tryNormalize() method Apr 4, 2021
@darkma773r darkma773r force-pushed the geometry-119-normalize-or-null branch from de88266 to 7242fd2 Compare April 7, 2021 12:03
@darkma773r darkma773r changed the title GEOMETRY-119: adding Vector.tryNormalize() method GEOMETRY-119: adding Vector.normalizeOrNull() method Apr 7, 2021
Copy link
Contributor

@aherbert aherbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @darkma773r, just a few nitpicks to address here.

@darkma773r darkma773r force-pushed the geometry-119-normalize-or-null branch from 7242fd2 to ea68dfb Compare April 8, 2021 01:10
@darkma773r
Copy link
Contributor Author

Updated. Thanks, @aherbert!

@asfgit asfgit merged commit ea68dfb into apache:master Apr 9, 2021
@darkma773r darkma773r deleted the geometry-119-normalize-or-null branch September 30, 2021 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments