Skip to content

Enforce Plane invariants via private fields & setters #994

Open
@chitoyuu

Description

@chitoyuu

Created during survey of commented code (#377).

There are a number of invariants expected mathematically of the Plane type, that cannot currently be enforced due to the fields being public.

A few issues to consider:

  • Should validation be performed when getting values from Godot, or should we just trust the engine with those invariants?
  • What about floating point errors? Should we just accept the drift or attempt to normalize after each operation? It could be useful to see what Godot does in its own source regarding this.

A test should also be added for contains_point_eps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeIssues and PRs that are breaking to fix/merge.c: coreComponent: core (mod core_types, object, log, init, ...)featureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions