Table of Contents

Struct float2

Namespace
Misaki.HighPerformance.Mathematics
Assembly
Misaki.HighPerformance.Mathematics.dll
[NumericType(typeof(float), 4, 2, 1, "global::Misaki.HighPerformance.Mathematics.float", true, true, null, null)]
[NumericConvertable("(float){v}.{c}", new Type[] { typeof(int2), typeof(uint2), typeof(double2), typeof(bool2) })]
[NumericConvertable("(float){v}", new Type[] { typeof(int), typeof(uint), typeof(double) })]
public struct float2 : IEquatable<float2>
Implements
Inherited Members
Extension Methods

Constructors

float2(bool2)

public float2(bool2 v)

Parameters

v bool2

float2(double2)

public float2(double2 v)

Parameters

v double2

float2(float2)

public float2(float2 xy)

Parameters

xy float2

float2(int2)

public float2(int2 v)

Parameters

v int2

float2(uint2)

public float2(uint2 v)

Parameters

v uint2

float2(double)

public float2(double v)

Parameters

v double

float2(int)

public float2(int v)

Parameters

v int

float2(ReadOnlySpan<float>)

public float2(ReadOnlySpan<float> values)

Parameters

values ReadOnlySpan<float>

float2(float)

public float2(float value)

Parameters

value float

float2(float, float)

public float2(float x, float y)

Parameters

x float
y float

float2(uint)

public float2(uint v)

Parameters

v uint

Fields

x

public float x

Field Value

float

y

public float y

Field Value

float

Properties

this[int]

public ref float this[int index] { get; }

Parameters

index int

Property Value

float

one

public static float2 one { get; }

Property Value

float2

unitX

public static float2 unitX { get; }

Property Value

float2

unitY

public static float2 unitY { get; }

Property Value

float2

xx

[JsonIgnore]
public readonly float2 xx { get; }

Property Value

float2

xxx

[JsonIgnore]
public readonly float3 xxx { get; }

Property Value

float3

xxxx

[JsonIgnore]
public readonly float4 xxxx { get; }

Property Value

float4

xxxy

[JsonIgnore]
public readonly float4 xxxy { get; }

Property Value

float4

xxy

[JsonIgnore]
public readonly float3 xxy { get; }

Property Value

float3

xxyx

[JsonIgnore]
public readonly float4 xxyx { get; }

Property Value

float4

xxyy

[JsonIgnore]
public readonly float4 xxyy { get; }

Property Value

float4

xy

[JsonIgnore]
public float2 xy { get; set; }

Property Value

float2

xyx

[JsonIgnore]
public readonly float3 xyx { get; }

Property Value

float3

xyxx

[JsonIgnore]
public readonly float4 xyxx { get; }

Property Value

float4

xyxy

[JsonIgnore]
public readonly float4 xyxy { get; }

Property Value

float4

xyy

[JsonIgnore]
public readonly float3 xyy { get; }

Property Value

float3

xyyx

[JsonIgnore]
public readonly float4 xyyx { get; }

Property Value

float4

xyyy

[JsonIgnore]
public readonly float4 xyyy { get; }

Property Value

float4

yx

[JsonIgnore]
public float2 yx { get; set; }

Property Value

float2

yxx

[JsonIgnore]
public readonly float3 yxx { get; }

Property Value

float3

yxxx

[JsonIgnore]
public readonly float4 yxxx { get; }

Property Value

float4

yxxy

[JsonIgnore]
public readonly float4 yxxy { get; }

Property Value

float4

yxy

[JsonIgnore]
public readonly float3 yxy { get; }

Property Value

float3

yxyx

[JsonIgnore]
public readonly float4 yxyx { get; }

Property Value

float4

yxyy

[JsonIgnore]
public readonly float4 yxyy { get; }

Property Value

float4

yy

[JsonIgnore]
public readonly float2 yy { get; }

Property Value

float2

yyx

[JsonIgnore]
public readonly float3 yyx { get; }

Property Value

float3

yyxx

[JsonIgnore]
public readonly float4 yyxx { get; }

Property Value

float4

yyxy

[JsonIgnore]
public readonly float4 yyxy { get; }

Property Value

float4

yyy

[JsonIgnore]
public readonly float3 yyy { get; }

Property Value

float3

yyyx

[JsonIgnore]
public readonly float4 yyyx { get; }

Property Value

float4

yyyy

[JsonIgnore]
public readonly float4 yyyy { get; }

Property Value

float4

zero

public static float2 zero { get; }

Property Value

float2

Methods

Equals(float2)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(float2 other)

Parameters

other float2

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override readonly int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override readonly string ToString()

Returns

string

The fully qualified type name.

Operators

operator +(float2, float2)

public static float2 operator +(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

float2

operator +(float2, float)

public static float2 operator +(float2 lhs, float rhs)

Parameters

lhs float2
rhs float

Returns

float2

operator +(float, float2)

public static float2 operator +(float lhs, float2 rhs)

Parameters

lhs float
rhs float2

Returns

float2

operator +=(float2)

public void operator +=(float2 other)

Parameters

other float2

operator --(float2)

public static float2 operator --(float2 value)

Parameters

value float2

Returns

float2

operator /(float2, float2)

public static float2 operator /(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

float2

operator /(float2, float)

public static float2 operator /(float2 lhs, float rhs)

Parameters

lhs float2
rhs float

Returns

float2

operator /(float, float2)

public static float2 operator /(float lhs, float2 rhs)

Parameters

lhs float
rhs float2

Returns

float2

operator /=(float2)

public void operator /=(float2 other)

Parameters

other float2

operator ==(float2, float2)

public static bool2 operator ==(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

operator >(float2, float2)

public static bool2 operator >(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

operator >=(float2, float2)

public static bool2 operator >=(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

implicit operator float2(bool2)

public static implicit operator float2(bool2 v)

Parameters

v bool2

Returns

float2

implicit operator float2(double2)

public static implicit operator float2(double2 v)

Parameters

v double2

Returns

float2

implicit operator float2(int2)

public static implicit operator float2(int2 v)

Parameters

v int2

Returns

float2

implicit operator float2(uint2)

public static implicit operator float2(uint2 v)

Parameters

v uint2

Returns

float2

implicit operator float2(double)

public static implicit operator float2(double v)

Parameters

v double

Returns

float2

implicit operator float2(int)

public static implicit operator float2(int v)

Parameters

v int

Returns

float2

implicit operator float2(ReadOnlySpan<float>)

public static implicit operator float2(ReadOnlySpan<float> value)

Parameters

value ReadOnlySpan<float>

Returns

float2

implicit operator float2(float)

public static implicit operator float2(float value)

Parameters

value float

Returns

float2

implicit operator float2(uint)

public static implicit operator float2(uint v)

Parameters

v uint

Returns

float2

operator ++(float2)

public static float2 operator ++(float2 value)

Parameters

value float2

Returns

float2

operator !=(float2, float2)

public static bool2 operator !=(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

operator <(float2, float2)

public static bool2 operator <(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

operator <=(float2, float2)

public static bool2 operator <=(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

bool2

operator %(float2, float2)

public static float2 operator %(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

float2

operator %(float2, float)

public static float2 operator %(float2 lhs, float rhs)

Parameters

lhs float2
rhs float

Returns

float2

operator %(float, float2)

public static float2 operator %(float lhs, float2 rhs)

Parameters

lhs float
rhs float2

Returns

float2

operator %=(float2)

public void operator %=(float2 other)

Parameters

other float2

operator *=(float2)

public void operator *=(float2 other)

Parameters

other float2

operator *(float2, float2)

public static float2 operator *(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

float2

operator *(float2, float)

public static float2 operator *(float2 lhs, float rhs)

Parameters

lhs float2
rhs float

Returns

float2

operator *(float, float2)

public static float2 operator *(float lhs, float2 rhs)

Parameters

lhs float
rhs float2

Returns

float2

operator -(float2, float2)

public static float2 operator -(float2 lhs, float2 rhs)

Parameters

lhs float2
rhs float2

Returns

float2

operator -(float2, float)

public static float2 operator -(float2 lhs, float rhs)

Parameters

lhs float2
rhs float

Returns

float2

operator -(float, float2)

public static float2 operator -(float lhs, float2 rhs)

Parameters

lhs float
rhs float2

Returns

float2

operator -=(float2)

public void operator -=(float2 other)

Parameters

other float2

operator -(float2)

public static float2 operator -(float2 value)

Parameters

value float2

Returns

float2

operator +(float2)

public static float2 operator +(float2 value)

Parameters

value float2

Returns

float2