Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


double2

Constructs a double2 vector from two double values.
Read time 2 minutesLast updated 11 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Mathematics
  • Assembly: UnityEngine.MathematicsModule

double2(double, double)

Constructs a double2 vector from two double values.
public double2(double x, double y)

Parameters

The constructed vector's x component will be set to this value.

The constructed vector's y component will be set to this value.

double2(double2)

Constructs a double2 vector from a double2 vector.
public double2(double2 xy)

Parameters

The constructed vector's xy components will be set to this value.

double2(double)

Constructs a double2 vector from a single double value by assigning it to every component.
public double2(double v)

Parameters

double to convert to double2

double2(bool)

Constructs a double2 vector from a single bool value by converting it to double and assigning it to every component.
public double2(bool v)

Parameters

bool to convert to double2

double2(bool2)

Constructs a double2 vector from a bool2 vector by componentwise conversion.
public double2(bool2 v)

Parameters

bool2 to convert to double2

double2(int)

Constructs a double2 vector from a single int value by converting it to double and assigning it to every component.
public double2(int v)

Parameters

int to convert to double2

double2(int2)

Constructs a double2 vector from a int2 vector by componentwise conversion.
public double2(int2 v)

Parameters

int2 to convert to double2

double2(uint)

Constructs a double2 vector from a single uint value by converting it to double and assigning it to every component.
public double2(uint v)

Parameters

uint to convert to double2

double2(uint2)

Constructs a double2 vector from a uint2 vector by componentwise conversion.
public double2(uint2 v)

Parameters

uint2 to convert to double2

double2(half)

Constructs a double2 vector from a single half value by converting it to double and assigning it to every component.
public double2(half v)

Parameters

half to convert to double2

double2(half2)

Constructs a double2 vector from a half2 vector by componentwise conversion.
public double2(half2 v)

Parameters

half2 to convert to double2

double2(float)

Constructs a double2 vector from a single float value by converting it to double and assigning it to every component.
public double2(float v)

Parameters

float to convert to double2

double2(float2)

Constructs a double2 vector from a float2 vector by componentwise conversion.
public double2(float2 v)

Parameters

float2 to convert to double2