Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Equals

Checks if the given object is exactly equal to this vector.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Equals(Object)

Checks if the given object is exactly equal to this vector.
public override readonly bool Equals(object other)

Parameters

other

The object to check.

Returns

Type

Description

boolTrue if the given object is exactly equal to this vector.

Remarks

Due to floating point inaccuracies, this might return false for vectors which are essentially (but not exactly) equal. Use the == operator to test two vectors for approximate equality.

Equals(Vector3)

Checks if the given vector is exactly equal to this vector.
public readonly bool Equals(Vector3 other)

Parameters

other

The vector to check.

Returns

Type

Description

boolTrue if the given vector is exactly equal to this vector.

Equals(Vector3)

Checks if the given vector is exactly equal to this vector.
public readonly bool Equals(in Vector3 other)

Parameters

other

The vector to check.

Returns

Type

Description

boolTrue if the given vector is exactly equal to this vector.