Struct half3
Syntax
public struct half3 : IEquatable<half3>, IFormattable
Constructors
half3(Double)
Constructs a half3 vector from a single double value by converting it to half and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Double |
v |
|
half3(Single)
Constructs a half3 vector from a single float value by converting it to half and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Single |
v |
|
half3(double3)
Constructs a half3 vector from a double3 vector by componentwise conversion.
Declaration
Parameters
half3(float3)
Constructs a half3 vector from a float3 vector by componentwise conversion.
Declaration
Parameters
Type |
Name |
Description |
float3 |
v |
|
half3(half)
Constructs a half3 vector from a single half value by assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
half |
v |
|
half3(half, half, half)
Constructs a half3 vector from three half values.
Declaration
public half3(half x, half y, half z)
Parameters
half3(half, half2)
Constructs a half3 vector from a half value and a half2 vector.
Declaration
public half3(half x, half2 yz)
Parameters
half3(half2, half)
Constructs a half3 vector from a half2 vector and a half value.
Declaration
public half3(half2 xy, half z)
Parameters
half3(half3)
Constructs a half3 vector from a half3 vector.
Declaration
Parameters
Type |
Name |
Description |
half3 |
xyz |
|
Fields
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
zero
Declaration
public static readonly half3 zero
Field Value
Properties
Item[Int32]
Returns the half element at a specified index.
Declaration
public half this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
xx
Declaration
Property Value
xxx
Declaration
public half3 xxx { get; }
Property Value
xxxx
Declaration
public half4 xxxx { get; }
Property Value
xxxy
Declaration
public half4 xxxy { get; }
Property Value
xxxz
Declaration
public half4 xxxz { get; }
Property Value
xxy
Declaration
public half3 xxy { get; }
Property Value
xxyx
Declaration
public half4 xxyx { get; }
Property Value
xxyy
Declaration
public half4 xxyy { get; }
Property Value
xxyz
Declaration
public half4 xxyz { get; }
Property Value
xxz
Declaration
public half3 xxz { get; }
Property Value
xxzx
Declaration
public half4 xxzx { get; }
Property Value
xxzy
Declaration
public half4 xxzy { get; }
Property Value
xxzz
Declaration
public half4 xxzz { get; }
Property Value
xy
Declaration
public half2 xy { get; set; }
Property Value
xyx
Declaration
public half3 xyx { get; }
Property Value
xyxx
Declaration
public half4 xyxx { get; }
Property Value
xyxy
Declaration
public half4 xyxy { get; }
Property Value
xyxz
Declaration
public half4 xyxz { get; }
Property Value
xyy
Declaration
public half3 xyy { get; }
Property Value
xyyx
Declaration
public half4 xyyx { get; }
Property Value
xyyy
Declaration
public half4 xyyy { get; }
Property Value
xyyz
Declaration
public half4 xyyz { get; }
Property Value
xyz
Declaration
public half3 xyz { get; set; }
Property Value
xyzx
Declaration
public half4 xyzx { get; }
Property Value
xyzy
Declaration
public half4 xyzy { get; }
Property Value
xyzz
Declaration
public half4 xyzz { get; }
Property Value
xz
Declaration
public half2 xz { get; set; }
Property Value
xzx
Declaration
public half3 xzx { get; }
Property Value
xzxx
Declaration
public half4 xzxx { get; }
Property Value
xzxy
Declaration
public half4 xzxy { get; }
Property Value
xzxz
Declaration
public half4 xzxz { get; }
Property Value
xzy
Declaration
public half3 xzy { get; set; }
Property Value
xzyx
Declaration
public half4 xzyx { get; }
Property Value
xzyy
Declaration
public half4 xzyy { get; }
Property Value
xzyz
Declaration
public half4 xzyz { get; }
Property Value
xzz
Declaration
public half3 xzz { get; }
Property Value
xzzx
Declaration
public half4 xzzx { get; }
Property Value
xzzy
Declaration
public half4 xzzy { get; }
Property Value
xzzz
Declaration
public half4 xzzz { get; }
Property Value
yx
Declaration
public half2 yx { get; set; }
Property Value
yxx
Declaration
public half3 yxx { get; }
Property Value
yxxx
Declaration
public half4 yxxx { get; }
Property Value
yxxy
Declaration
public half4 yxxy { get; }
Property Value
yxxz
Declaration
public half4 yxxz { get; }
Property Value
yxy
Declaration
public half3 yxy { get; }
Property Value
yxyx
Declaration
public half4 yxyx { get; }
Property Value
yxyy
Declaration
public half4 yxyy { get; }
Property Value
yxyz
Declaration
public half4 yxyz { get; }
Property Value
yxz
Declaration
public half3 yxz { get; set; }
Property Value
yxzx
Declaration
public half4 yxzx { get; }
Property Value
yxzy
Declaration
public half4 yxzy { get; }
Property Value
yxzz
Declaration
public half4 yxzz { get; }
Property Value
yy
Declaration
Property Value
yyx
Declaration
public half3 yyx { get; }
Property Value
yyxx
Declaration
public half4 yyxx { get; }
Property Value
yyxy
Declaration
public half4 yyxy { get; }
Property Value
yyxz
Declaration
public half4 yyxz { get; }
Property Value
yyy
Declaration
public half3 yyy { get; }
Property Value
yyyx
Declaration
public half4 yyyx { get; }
Property Value
yyyy
Declaration
public half4 yyyy { get; }
Property Value
yyyz
Declaration
public half4 yyyz { get; }
Property Value
yyz
Declaration
public half3 yyz { get; }
Property Value
yyzx
Declaration
public half4 yyzx { get; }
Property Value
yyzy
Declaration
public half4 yyzy { get; }
Property Value
yyzz
Declaration
public half4 yyzz { get; }
Property Value
yz
Declaration
public half2 yz { get; set; }
Property Value
yzx
Declaration
public half3 yzx { get; set; }
Property Value
yzxx
Declaration
public half4 yzxx { get; }
Property Value
yzxy
Declaration
public half4 yzxy { get; }
Property Value
yzxz
Declaration
public half4 yzxz { get; }
Property Value
yzy
Declaration
public half3 yzy { get; }
Property Value
yzyx
Declaration
public half4 yzyx { get; }
Property Value
yzyy
Declaration
public half4 yzyy { get; }
Property Value
yzyz
Declaration
public half4 yzyz { get; }
Property Value
yzz
Declaration
public half3 yzz { get; }
Property Value
yzzx
Declaration
public half4 yzzx { get; }
Property Value
yzzy
Declaration
public half4 yzzy { get; }
Property Value
yzzz
Declaration
public half4 yzzz { get; }
Property Value
zx
Declaration
public half2 zx { get; set; }
Property Value
zxx
Declaration
public half3 zxx { get; }
Property Value
zxxx
Declaration
public half4 zxxx { get; }
Property Value
zxxy
Declaration
public half4 zxxy { get; }
Property Value
zxxz
Declaration
public half4 zxxz { get; }
Property Value
zxy
Declaration
public half3 zxy { get; set; }
Property Value
zxyx
Declaration
public half4 zxyx { get; }
Property Value
zxyy
Declaration
public half4 zxyy { get; }
Property Value
zxyz
Declaration
public half4 zxyz { get; }
Property Value
zxz
Declaration
public half3 zxz { get; }
Property Value
zxzx
Declaration
public half4 zxzx { get; }
Property Value
zxzy
Declaration
public half4 zxzy { get; }
Property Value
zxzz
Declaration
public half4 zxzz { get; }
Property Value
zy
Declaration
public half2 zy { get; set; }
Property Value
zyx
Declaration
public half3 zyx { get; set; }
Property Value
zyxx
Declaration
public half4 zyxx { get; }
Property Value
zyxy
Declaration
public half4 zyxy { get; }
Property Value
zyxz
Declaration
public half4 zyxz { get; }
Property Value
zyy
Declaration
public half3 zyy { get; }
Property Value
zyyx
Declaration
public half4 zyyx { get; }
Property Value
zyyy
Declaration
public half4 zyyy { get; }
Property Value
zyyz
Declaration
public half4 zyyz { get; }
Property Value
zyz
Declaration
public half3 zyz { get; }
Property Value
zyzx
Declaration
public half4 zyzx { get; }
Property Value
zyzy
Declaration
public half4 zyzy { get; }
Property Value
zyzz
Declaration
public half4 zyzz { get; }
Property Value
zz
Declaration
Property Value
zzx
Declaration
public half3 zzx { get; }
Property Value
zzxx
Declaration
public half4 zzxx { get; }
Property Value
zzxy
Declaration
public half4 zzxy { get; }
Property Value
zzxz
Declaration
public half4 zzxz { get; }
Property Value
zzy
Declaration
public half3 zzy { get; }
Property Value
zzyx
Declaration
public half4 zzyx { get; }
Property Value
zzyy
Declaration
public half4 zzyy { get; }
Property Value
zzyz
Declaration
public half4 zzyz { get; }
Property Value
zzz
Declaration
public half3 zzz { get; }
Property Value
zzzx
Declaration
public half4 zzzx { get; }
Property Value
zzzy
Declaration
public half4 zzzy { get; }
Property Value
zzzz
Declaration
public half4 zzzz { get; }
Property Value
Methods
Equals(Object)
Returns true if the half3 is equal to a given half3, false otherwise.
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Equals(half3)
Returns true if the half3 is equal to a given half3, false otherwise.
Declaration
public bool Equals(half3 rhs)
Parameters
Type |
Name |
Description |
half3 |
rhs |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Returns a hash code for the half3.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Returns a string representation of the half3.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Returns a string representation of the half3 using a specified format and culture-specific format information.
Declaration
public string ToString(string format, IFormatProvider formatProvider)
Parameters
Type |
Name |
Description |
System.String |
format |
|
System.IFormatProvider |
formatProvider |
|
Returns
Type |
Description |
System.String |
|
Operators
Equality(half, half3)
Returns the result of a componentwise equality operation on a half value and a half3 vector.
Declaration
public static bool3 operator ==(half lhs, half3 rhs)
Parameters
Returns
Equality(half3, half)
Returns the result of a componentwise equality operation on a half3 vector and a half value.
Declaration
public static bool3 operator ==(half3 lhs, half rhs)
Parameters
Returns
Equality(half3, half3)
Returns the result of a componentwise equality operation on two half3 vectors.
Declaration
public static bool3 operator ==(half3 lhs, half3 rhs)
Parameters
Returns
Explicit(Double to half3)
Explicitly converts a single double value to a half3 vector by converting it to half and assigning it to every component.
Declaration
public static explicit operator half3(double v)
Parameters
Type |
Name |
Description |
System.Double |
v |
|
Returns
Explicit(Single to half3)
Explicitly converts a single float value to a half3 vector by converting it to half and assigning it to every component.
Declaration
public static explicit operator half3(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Returns
Explicit(double3 to half3)
Explicitly converts a double3 vector to a half3 vector by componentwise conversion.
Declaration
public static explicit operator half3(double3 v)
Parameters
Returns
Explicit(float3 to half3)
Explicitly converts a float3 vector to a half3 vector by componentwise conversion.
Declaration
public static explicit operator half3(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Implicit(half to half3)
Implicitly converts a single half value to a half3 vector by assigning it to every component.
Declaration
public static implicit operator half3(half v)
Parameters
Type |
Name |
Description |
half |
v |
|
Returns
Inequality(half, half3)
Returns the result of a componentwise not equal operation on a half value and a half3 vector.
Declaration
public static bool3 operator !=(half lhs, half3 rhs)
Parameters
Returns
Inequality(half3, half)
Returns the result of a componentwise not equal operation on a half3 vector and a half value.
Declaration
public static bool3 operator !=(half3 lhs, half rhs)
Parameters
Returns
Inequality(half3, half3)
Returns the result of a componentwise not equal operation on two half3 vectors.
Declaration
public static bool3 operator !=(half3 lhs, half3 rhs)
Parameters
Returns