Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector3Int creation #54

Closed
38 tasks done
Tracked by #56
Tornado-Technology opened this issue Aug 23, 2024 · 0 comments · Fixed by #57
Closed
38 tasks done
Tracked by #56

Vector3Int creation #54

Tornado-Technology opened this issue Aug 23, 2024 · 0 comments · Fixed by #57
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Tornado-Technology
Copy link
Member

Tornado-Technology commented Aug 23, 2024

We need to implement the following methods. If something is not described in enough detail, it is best to look at Untiy API: https://docs.unity3d.com/ScriptReference/

Static Properties

  • One
  • Zero
  • UnitX
  • UnitY
  • UnitZ

Properties

  • LengthSquared
  • Length
  • this - Access the x, y or z component using [0], [1] or [2] respectively
  • Summation - The sum of all components of the vector, x + y + z
  • Production - The production of all components of the vector, x * y * z
  • XY - Shorthand for writing Vector2Int(X, Y)

Public Methods

  • MoveTowards - Moves a point current towards target
  • DistanceSquared
  • Distance
  • Dot
  • Clamp
  • Max
  • Min
  • Abs
  • Sign
  • Cross
  • WithX
  • WithY
  • WithZ
  • CompareTo(int)
  • CompareTo(Vector3Int)
  • Equals(Vector3Int)
  • Equals(object?)
  • GetHashCode
  • ToString

Static Methods

  • Max
  • Min
  • Clamp
  • DistanceSquared
  • Distance
  • Dot
  • Cross
  • MoveTowards - Moves a point current towards target
@Tornado-Technology Tornado-Technology added enhancement New feature or request good first issue Good for newcomers labels Aug 23, 2024
@Tornado-Technology Tornado-Technology linked a pull request Aug 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant