Skip to content

Book 2: improve center_vec name #1621

@whydoubt

Description

@whydoubt

As we know, naming variables is one of the hardest things...

In listing 2.3, center_vec is used to indicate the change
in position over an interval of time. I don't feel the name
conveys that well. Also, there is a well-established name
for that concept: velocity. So I would propose velocity
as a replacement. Note that this would also need to be
changed in listings 2.10 and 2.11.

Also in listing 2.11... Some underscores appeared where
they weren't before: center_vec = _center2 - _center1;
Looks like it may have been a leftover from an earlier
revision of the book.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions