Skip to content

Vector3Int creation #54

@TornadoTechnology

Description

@TornadoTechnology

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions