Vector2
Class Name | Description |
---|---|
Vector2.Add | Add Vector2. |
Vector2.Angle | Calculates the angle in degrees between from and to. |
Vector2.ClampMagnitude | Calculates a vector with its magnitude clamped to MaxLength. |
Vector2.Compose | Compose Vector2. |
Vector2.Decompose | Decompose Vector2. |
Vector2.Distance | Calculates the distance between A and B. |
Vector2.Div | Divide Vector2 by float. |
Vector2.Dot | Dot Product of two vectors. |
Vector2.Equals | Returns true if two vectors are approximately equal. |
Vector2.GetIndexer | Output the components of Vector2 using an indexer. |
Vector2.GetX | Output the X component of Vector2. |
Vector2.GetY | Output the Y component of Vector2. |
Vector2.Lerp | Linear interpolation is performed between the vectors of From and To with the interpolation parameter T. |
Vector2.LerpUnclamped | Linear interpolation is performed between the vectors of From and To with the interpolation parameter T. |
Vector2.Magnitude | The length of vector. |
Vector2.Max | Create a vector that is made from the largest components of two vectors. |
Vector2.Min | Create a vector that is made from the smallest components of two vectors. |
Vector2.MoveTowards | Calculating a vector that moves from the current position Current to Target. |
Vector2.Mul | Multiply Vector2 by float. |
Vector2.Negative | To invert the sign of the Vector2. |
Vector2.Normalize | Vector2 normalized vector |
Vector2.NotEquals | Returns true if two vectors are not approximately equal. |
Vector2.Perpendicular | Returns Vector2 perpendicular to the specified Vector2 The result is always rotated 90-degrees in a counter-clockwise direction for a 2D coordinate system where the positive Y axis goes up. |
Vector2.Reflect | Reflects a vector off the vector defined by a normal. |
Vector2.Scale | Multiplies two vectors component-wise. |
Vector2.SetIndexer | Sets the components of Vector2 using an indexer. |
Vector2.SetX | Sets the X component of Vector2. |
Vector2.SetY | Sets the Y component of Vector2. |
Vector2.SignedAngle | Calculates the signed angle in degrees between from and to. |
Vector2.SmoothDamp | Gradually changes a vector towards a desired goal over time. |
Vector2.SqrMagnitude | Calculate the length of the square of the vector. |
Vector2.Sub | Subtract Vector2. |
Vector2.ToString | Returns a formatted string of Vector2. |
Vector2.ToVector3 | Vector2 is converted to Vector3. |
Vector2.ToVector4 | Vector2 is converted to Vector4. |