Show / Hide Table of Contents

Class Vector2Extensions

UnityEngine.Vector3 extension methods.

Inheritance
System.Object
Vector2Extensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GlitchedPolygons.ExtensionMethods
Assembly: UnityScriptsLibrary.dll
Syntax
public static class Vector2Extensions

Methods

| Improve this Doc View Source

GetRandomValue(Vector2)

Returns UnityEngine.Random.Range(vector.x, vector.y).

Declaration
public static float GetRandomValue(this Vector2 vector)
Parameters
Type Name Description
Vector2 vector

The UnityEngine.Vector2 that contains the range within which a random number should be picked.

Returns
Type Description
System.Single

A random number between Vector2.x and Vector2.y.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX