float2
struct in Unity.Mathematics · Unity.Mathematics
52 of 52 of Unity's members
Constructors 1
float2(float x, float y)float2(float2 xy)float2(float v)float2(bool v)float2(bool2 v)float2(int v)float2(int2 v)float2(uint v)float2(uint2 v)float2(half v)float2(half2 v)float2(double v)float2(double2 v)Fields 3
float xfloat ystatic readonly float2 zeroProperties 29
float this[int index] { get; set; }readonly float2 xx { get; }readonly float3 xxx { get; }readonly float4 xxxx { get; }readonly float4 xxxy { get; }readonly float3 xxy { get; }readonly float4 xxyx { get; }readonly float4 xxyy { get; }float2 xy { get; set; }readonly float3 xyx { get; }readonly float4 xyxx { get; }readonly float4 xyxy { get; }readonly float3 xyy { get; }readonly float4 xyyx { get; }readonly float4 xyyy { get; }float2 yx { get; set; }readonly float3 yxx { get; }readonly float4 yxxx { get; }readonly float4 yxxy { get; }readonly float3 yxy { get; }readonly float4 yxyx { get; }readonly float4 yxyy { get; }readonly float2 yy { get; }readonly float3 yyx { get; }readonly float4 yyxx { get; }readonly float4 yyxy { get; }readonly float3 yyy { get; }readonly float4 yyyx { get; }readonly float4 yyyy { get; }Methods 3
readonly bool Equals(float2 rhs)readonly bool Equals(object? o)readonly int GetHashCode()readonly string ToString()readonly string ToString(string? format, IFormatProvider? formatProvider)Operators 15
static explicit operator float2(bool v)static explicit operator float2(bool2 v)static explicit operator float2(double v)static explicit operator float2(double2 v)static implicit operator float2(float v)static implicit operator float2(int v)static implicit operator float2(int2 v)static implicit operator float2(uint v)static implicit operator float2(uint2 v)static implicit operator float2(half v)static implicit operator float2(half2 v)static implicit operator Vector2(float2 v)static implicit operator float2(Vector2 v)static bool2 operator !=(float2 lhs, float2 rhs)static bool2 operator !=(float2 lhs, float rhs)static bool2 operator !=(float lhs, float2 rhs)static float2 operator %(float2 lhs, float2 rhs)static float2 operator %(float2 lhs, float rhs)static float2 operator %(float lhs, float2 rhs)static float2 operator *(float2 lhs, float2 rhs)static float2 operator *(float2 lhs, float rhs)static float2 operator *(float lhs, float2 rhs)static float2 operator +(float2 lhs, float2 rhs)static float2 operator +(float2 lhs, float rhs)static float2 operator +(float lhs, float2 rhs)static float2 operator +(float2 val)static float2 operator ++(float2 val)static float2 operator -(float2 lhs, float2 rhs)static float2 operator -(float2 lhs, float rhs)static float2 operator -(float lhs, float2 rhs)static float2 operator -(float2 val)static float2 operator --(float2 val)static float2 operator /(float2 lhs, float2 rhs)static float2 operator /(float2 lhs, float rhs)static float2 operator /(float lhs, float2 rhs)static bool2 operator <(float2 lhs, float2 rhs)static bool2 operator <(float2 lhs, float rhs)static bool2 operator <(float lhs, float2 rhs)static bool2 operator <=(float2 lhs, float2 rhs)static bool2 operator <=(float2 lhs, float rhs)static bool2 operator <=(float lhs, float2 rhs)static bool2 operator ==(float2 lhs, float2 rhs)static bool2 operator ==(float2 lhs, float rhs)static bool2 operator ==(float lhs, float2 rhs)static bool2 operator >(float2 lhs, float2 rhs)static bool2 operator >(float2 lhs, float rhs)static bool2 operator >(float lhs, float2 rhs)static bool2 operator >=(float2 lhs, float2 rhs)static bool2 operator >=(float2 lhs, float rhs)static bool2 operator >=(float lhs, float2 rhs)