Struct float3
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Syntax
[Serializable]
public struct float3 : IEquatable<float3>, IFormattable
Constructors
float3(Boolean)
Constructs a float3 vector from a single bool value by converting it to float and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Boolean |
v |
|
float3(Double)
Constructs a float3 vector from a single double value by converting it to float and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Double |
v |
|
float3(Int32)
Constructs a float3 vector from a single int value by converting it to float and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
v |
|
float3(Single)
Constructs a float3 vector from a single float value by assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.Single |
v |
|
float3(Single, Single, Single)
Constructs a float3 vector from three float values.
Declaration
public float3(float x, float y, float z)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
z |
|
float3(Single, float2)
Constructs a float3 vector from a float value and a float2 vector.
Declaration
public float3(float x, float2 yz)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
float2 |
yz |
|
float3(UInt32)
Constructs a float3 vector from a single uint value by converting it to float and assigning it to every component.
Declaration
Parameters
Type |
Name |
Description |
System.UInt32 |
v |
|
float3(bool3)
Constructs a float3 vector from a bool3 vector by componentwise conversion.
Declaration
Parameters
Type |
Name |
Description |
bool3 |
v |
|
float3(double3)
Constructs a float3 vector from a double3 vector by componentwise conversion.
Declaration
Parameters
float3(float2, Single)
Constructs a float3 vector from a float2 vector and a float value.
Declaration
public float3(float2 xy, float z)
Parameters
Type |
Name |
Description |
float2 |
xy |
|
System.Single |
z |
|
float3(float3)
Constructs a float3 vector from a float3 vector.
Declaration
public float3(float3 xyz)
Parameters
Type |
Name |
Description |
float3 |
xyz |
|
float3(int3)
Constructs a float3 vector from a int3 vector by componentwise conversion.
Declaration
Parameters
Type |
Name |
Description |
int3 |
v |
|
float3(uint3)
Constructs a float3 vector from a uint3 vector by componentwise conversion.
Declaration
Parameters
Type |
Name |
Description |
uint3 |
v |
|
Fields
x
Declaration
Field Value
Type |
Description |
System.Single |
|
y
Declaration
Field Value
Type |
Description |
System.Single |
|
z
Declaration
Field Value
Type |
Description |
System.Single |
|
zero
Declaration
public static readonly float3 zero
Field Value
Properties
Item[Int32]
Returns the float element at a specified index.
Declaration
public float this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Single |
|
xx
Declaration
public float2 xx { get; }
Property Value
xxx
Declaration
public float3 xxx { get; }
Property Value
xxxx
Declaration
public float4 xxxx { get; }
Property Value
xxxy
Declaration
public float4 xxxy { get; }
Property Value
xxxz
Declaration
public float4 xxxz { get; }
Property Value
xxy
Declaration
public float3 xxy { get; }
Property Value
xxyx
Declaration
public float4 xxyx { get; }
Property Value
xxyy
Declaration
public float4 xxyy { get; }
Property Value
xxyz
Declaration
public float4 xxyz { get; }
Property Value
xxz
Declaration
public float3 xxz { get; }
Property Value
xxzx
Declaration
public float4 xxzx { get; }
Property Value
xxzy
Declaration
public float4 xxzy { get; }
Property Value
xxzz
Declaration
public float4 xxzz { get; }
Property Value
xy
Declaration
public float2 xy { get; set; }
Property Value
xyx
Declaration
public float3 xyx { get; }
Property Value
xyxx
Declaration
public float4 xyxx { get; }
Property Value
xyxy
Declaration
public float4 xyxy { get; }
Property Value
xyxz
Declaration
public float4 xyxz { get; }
Property Value
xyy
Declaration
public float3 xyy { get; }
Property Value
xyyx
Declaration
public float4 xyyx { get; }
Property Value
xyyy
Declaration
public float4 xyyy { get; }
Property Value
xyyz
Declaration
public float4 xyyz { get; }
Property Value
xyz
Declaration
public float3 xyz { get; set; }
Property Value
xyzx
Declaration
public float4 xyzx { get; }
Property Value
xyzy
Declaration
public float4 xyzy { get; }
Property Value
xyzz
Declaration
public float4 xyzz { get; }
Property Value
xz
Declaration
public float2 xz { get; set; }
Property Value
xzx
Declaration
public float3 xzx { get; }
Property Value
xzxx
Declaration
public float4 xzxx { get; }
Property Value
xzxy
Declaration
public float4 xzxy { get; }
Property Value
xzxz
Declaration
public float4 xzxz { get; }
Property Value
xzy
Declaration
public float3 xzy { get; set; }
Property Value
xzyx
Declaration
public float4 xzyx { get; }
Property Value
xzyy
Declaration
public float4 xzyy { get; }
Property Value
xzyz
Declaration
public float4 xzyz { get; }
Property Value
xzz
Declaration
public float3 xzz { get; }
Property Value
xzzx
Declaration
public float4 xzzx { get; }
Property Value
xzzy
Declaration
public float4 xzzy { get; }
Property Value
xzzz
Declaration
public float4 xzzz { get; }
Property Value
yx
Declaration
public float2 yx { get; set; }
Property Value
yxx
Declaration
public float3 yxx { get; }
Property Value
yxxx
Declaration
public float4 yxxx { get; }
Property Value
yxxy
Declaration
public float4 yxxy { get; }
Property Value
yxxz
Declaration
public float4 yxxz { get; }
Property Value
yxy
Declaration
public float3 yxy { get; }
Property Value
yxyx
Declaration
public float4 yxyx { get; }
Property Value
yxyy
Declaration
public float4 yxyy { get; }
Property Value
yxyz
Declaration
public float4 yxyz { get; }
Property Value
yxz
Declaration
public float3 yxz { get; set; }
Property Value
yxzx
Declaration
public float4 yxzx { get; }
Property Value
yxzy
Declaration
public float4 yxzy { get; }
Property Value
yxzz
Declaration
public float4 yxzz { get; }
Property Value
yy
Declaration
public float2 yy { get; }
Property Value
yyx
Declaration
public float3 yyx { get; }
Property Value
yyxx
Declaration
public float4 yyxx { get; }
Property Value
yyxy
Declaration
public float4 yyxy { get; }
Property Value
yyxz
Declaration
public float4 yyxz { get; }
Property Value
yyy
Declaration
public float3 yyy { get; }
Property Value
yyyx
Declaration
public float4 yyyx { get; }
Property Value
yyyy
Declaration
public float4 yyyy { get; }
Property Value
yyyz
Declaration
public float4 yyyz { get; }
Property Value
yyz
Declaration
public float3 yyz { get; }
Property Value
yyzx
Declaration
public float4 yyzx { get; }
Property Value
yyzy
Declaration
public float4 yyzy { get; }
Property Value
yyzz
Declaration
public float4 yyzz { get; }
Property Value
yz
Declaration
public float2 yz { get; set; }
Property Value
yzx
Declaration
public float3 yzx { get; set; }
Property Value
yzxx
Declaration
public float4 yzxx { get; }
Property Value
yzxy
Declaration
public float4 yzxy { get; }
Property Value
yzxz
Declaration
public float4 yzxz { get; }
Property Value
yzy
Declaration
public float3 yzy { get; }
Property Value
yzyx
Declaration
public float4 yzyx { get; }
Property Value
yzyy
Declaration
public float4 yzyy { get; }
Property Value
yzyz
Declaration
public float4 yzyz { get; }
Property Value
yzz
Declaration
public float3 yzz { get; }
Property Value
yzzx
Declaration
public float4 yzzx { get; }
Property Value
yzzy
Declaration
public float4 yzzy { get; }
Property Value
yzzz
Declaration
public float4 yzzz { get; }
Property Value
zx
Declaration
public float2 zx { get; set; }
Property Value
zxx
Declaration
public float3 zxx { get; }
Property Value
zxxx
Declaration
public float4 zxxx { get; }
Property Value
zxxy
Declaration
public float4 zxxy { get; }
Property Value
zxxz
Declaration
public float4 zxxz { get; }
Property Value
zxy
Declaration
public float3 zxy { get; set; }
Property Value
zxyx
Declaration
public float4 zxyx { get; }
Property Value
zxyy
Declaration
public float4 zxyy { get; }
Property Value
zxyz
Declaration
public float4 zxyz { get; }
Property Value
zxz
Declaration
public float3 zxz { get; }
Property Value
zxzx
Declaration
public float4 zxzx { get; }
Property Value
zxzy
Declaration
public float4 zxzy { get; }
Property Value
zxzz
Declaration
public float4 zxzz { get; }
Property Value
zy
Declaration
public float2 zy { get; set; }
Property Value
zyx
Declaration
public float3 zyx { get; set; }
Property Value
zyxx
Declaration
public float4 zyxx { get; }
Property Value
zyxy
Declaration
public float4 zyxy { get; }
Property Value
zyxz
Declaration
public float4 zyxz { get; }
Property Value
zyy
Declaration
public float3 zyy { get; }
Property Value
zyyx
Declaration
public float4 zyyx { get; }
Property Value
zyyy
Declaration
public float4 zyyy { get; }
Property Value
zyyz
Declaration
public float4 zyyz { get; }
Property Value
zyz
Declaration
public float3 zyz { get; }
Property Value
zyzx
Declaration
public float4 zyzx { get; }
Property Value
zyzy
Declaration
public float4 zyzy { get; }
Property Value
zyzz
Declaration
public float4 zyzz { get; }
Property Value
zz
Declaration
public float2 zz { get; }
Property Value
zzx
Declaration
public float3 zzx { get; }
Property Value
zzxx
Declaration
public float4 zzxx { get; }
Property Value
zzxy
Declaration
public float4 zzxy { get; }
Property Value
zzxz
Declaration
public float4 zzxz { get; }
Property Value
zzy
Declaration
public float3 zzy { get; }
Property Value
zzyx
Declaration
public float4 zzyx { get; }
Property Value
zzyy
Declaration
public float4 zzyy { get; }
Property Value
zzyz
Declaration
public float4 zzyz { get; }
Property Value
zzz
Declaration
public float3 zzz { get; }
Property Value
zzzx
Declaration
public float4 zzzx { get; }
Property Value
zzzy
Declaration
public float4 zzzy { get; }
Property Value
zzzz
Declaration
public float4 zzzz { get; }
Property Value
Methods
Equals(Object)
Returns true if the float3 is equal to a given float3, 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(float3)
Returns true if the float3 is equal to a given float3, false otherwise.
Declaration
public bool Equals(float3 rhs)
Parameters
Type |
Name |
Description |
float3 |
rhs |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
GetHashCode()
Returns a hash code for the float3.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Returns a string representation of the float3.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Returns a string representation of the float3 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 |
|
Implements
System.IFormattable.ToString(System.String, System.IFormatProvider)
Operators
Addition(Single, float3)
Returns the result of a componentwise addition operation on a float value and a float3 vector.
Declaration
public static float3 operator +(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Addition(float3, Single)
Returns the result of a componentwise addition operation on a float3 vector and a float value.
Declaration
public static float3 operator +(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Addition(float3, float3)
Returns the result of a componentwise addition operation on two float3 vectors.
Declaration
public static float3 operator +(float3 lhs, float3 rhs)
Parameters
Returns
Decrement(float3)
Returns the result of a componentwise decrement operation on a float3 vector.
Declaration
public static float3 operator --(float3 val)
Parameters
Type |
Name |
Description |
float3 |
val |
|
Returns
Division(Single, float3)
Returns the result of a componentwise division operation on a float value and a float3 vector.
Declaration
public static float3 operator /(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Division(float3, Single)
Returns the result of a componentwise division operation on a float3 vector and a float value.
Declaration
public static float3 operator /(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Division(float3, float3)
Returns the result of a componentwise division operation on two float3 vectors.
Declaration
public static float3 operator /(float3 lhs, float3 rhs)
Parameters
Returns
Equality(Single, float3)
Returns the result of a componentwise equality operation on a float value and a float3 vector.
Declaration
public static bool3 operator ==(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Equality(float3, Single)
Returns the result of a componentwise equality operation on a float3 vector and a float value.
Declaration
public static bool3 operator ==(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Equality(float3, float3)
Returns the result of a componentwise equality operation on two float3 vectors.
Declaration
public static bool3 operator ==(float3 lhs, float3 rhs)
Parameters
Returns
Explicit(Boolean to float3)
Explicitly converts a single bool value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static explicit operator float3(bool v)
Parameters
Type |
Name |
Description |
System.Boolean |
v |
|
Returns
Explicit(Double to float3)
Explicitly converts a single double value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static explicit operator float3(double v)
Parameters
Type |
Name |
Description |
System.Double |
v |
|
Returns
Explicit(bool3 to float3)
Explicitly converts a bool3 vector to a float3 vector by componentwise conversion.
Declaration
public static explicit operator float3(bool3 v)
Parameters
Type |
Name |
Description |
bool3 |
v |
|
Returns
Explicit(double3 to float3)
Explicitly converts a double3 vector to a float3 vector by componentwise conversion.
Declaration
public static explicit operator float3(double3 v)
Parameters
Returns
GreaterThan(Single, float3)
Returns the result of a componentwise greater than operation on a float value and a float3 vector.
Declaration
public static bool3 operator>(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
GreaterThan(float3, Single)
Returns the result of a componentwise greater than operation on a float3 vector and a float value.
Declaration
public static bool3 operator>(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
GreaterThan(float3, float3)
Returns the result of a componentwise greater than operation on two float3 vectors.
Declaration
public static bool3 operator>(float3 lhs, float3 rhs)
Parameters
Returns
GreaterThanOrEqual(Single, float3)
Returns the result of a componentwise greater or equal operation on a float value and a float3 vector.
Declaration
public static bool3 operator >=(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
GreaterThanOrEqual(float3, Single)
Returns the result of a componentwise greater or equal operation on a float3 vector and a float value.
Declaration
public static bool3 operator >=(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
GreaterThanOrEqual(float3, float3)
Returns the result of a componentwise greater or equal operation on two float3 vectors.
Declaration
public static bool3 operator >=(float3 lhs, float3 rhs)
Parameters
Returns
Implicit(Int32 to float3)
Implicitly converts a single int value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static implicit operator float3(int v)
Parameters
Type |
Name |
Description |
System.Int32 |
v |
|
Returns
Implicit(Single to float3)
Implicitly converts a single float value to a float3 vector by assigning it to every component.
Declaration
public static implicit operator float3(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Returns
Implicit(UInt32 to float3)
Implicitly converts a single uint value to a float3 vector by converting it to float and assigning it to every component.
Declaration
public static implicit operator float3(uint v)
Parameters
Type |
Name |
Description |
System.UInt32 |
v |
|
Returns
Implicit(float3 to Vector3)
Declaration
public static implicit operator Vector3(float3 v)
Parameters
Type |
Name |
Description |
float3 |
v |
|
Returns
Implicit(int3 to float3)
Implicitly converts a int3 vector to a float3 vector by componentwise conversion.
Declaration
public static implicit operator float3(int3 v)
Parameters
Type |
Name |
Description |
int3 |
v |
|
Returns
Implicit(uint3 to float3)
Implicitly converts a uint3 vector to a float3 vector by componentwise conversion.
Declaration
public static implicit operator float3(uint3 v)
Parameters
Type |
Name |
Description |
uint3 |
v |
|
Returns
Implicit(Vector3 to float3)
Declaration
public static implicit operator float3(Vector3 v)
Parameters
Type |
Name |
Description |
Vector3 |
v |
|
Returns
Increment(float3)
Returns the result of a componentwise increment operation on a float3 vector.
Declaration
public static float3 operator ++(float3 val)
Parameters
Type |
Name |
Description |
float3 |
val |
|
Returns
Inequality(Single, float3)
Returns the result of a componentwise not equal operation on a float value and a float3 vector.
Declaration
public static bool3 operator !=(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Inequality(float3, Single)
Returns the result of a componentwise not equal operation on a float3 vector and a float value.
Declaration
public static bool3 operator !=(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Inequality(float3, float3)
Returns the result of a componentwise not equal operation on two float3 vectors.
Declaration
public static bool3 operator !=(float3 lhs, float3 rhs)
Parameters
Returns
LessThan(Single, float3)
Returns the result of a componentwise less than operation on a float value and a float3 vector.
Declaration
public static bool3 operator <(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
LessThan(float3, Single)
Returns the result of a componentwise less than operation on a float3 vector and a float value.
Declaration
public static bool3 operator <(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
LessThan(float3, float3)
Returns the result of a componentwise less than operation on two float3 vectors.
Declaration
public static bool3 operator <(float3 lhs, float3 rhs)
Parameters
Returns
LessThanOrEqual(Single, float3)
Returns the result of a componentwise less or equal operation on a float value and a float3 vector.
Declaration
public static bool3 operator <=(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
LessThanOrEqual(float3, Single)
Returns the result of a componentwise less or equal operation on a float3 vector and a float value.
Declaration
public static bool3 operator <=(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
LessThanOrEqual(float3, float3)
Returns the result of a componentwise less or equal operation on two float3 vectors.
Declaration
public static bool3 operator <=(float3 lhs, float3 rhs)
Parameters
Returns
Modulus(Single, float3)
Returns the result of a componentwise modulus operation on a float value and a float3 vector.
Declaration
public static float3 operator %(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Modulus(float3, Single)
Returns the result of a componentwise modulus operation on a float3 vector and a float value.
Declaration
public static float3 operator %(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Modulus(float3, float3)
Returns the result of a componentwise modulus operation on two float3 vectors.
Declaration
public static float3 operator %(float3 lhs, float3 rhs)
Parameters
Returns
Multiply(Single, float3)
Returns the result of a componentwise multiplication operation on a float value and a float3 vector.
Declaration
public static float3 operator *(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Multiply(float3, Single)
Returns the result of a componentwise multiplication operation on a float3 vector and a float value.
Declaration
public static float3 operator *(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Multiply(float3, float3)
Returns the result of a componentwise multiplication operation on two float3 vectors.
Declaration
public static float3 operator *(float3 lhs, float3 rhs)
Parameters
Returns
Subtraction(Single, float3)
Returns the result of a componentwise subtraction operation on a float value and a float3 vector.
Declaration
public static float3 operator -(float lhs, float3 rhs)
Parameters
Type |
Name |
Description |
System.Single |
lhs |
|
float3 |
rhs |
|
Returns
Subtraction(float3, Single)
Returns the result of a componentwise subtraction operation on a float3 vector and a float value.
Declaration
public static float3 operator -(float3 lhs, float rhs)
Parameters
Type |
Name |
Description |
float3 |
lhs |
|
System.Single |
rhs |
|
Returns
Subtraction(float3, float3)
Returns the result of a componentwise subtraction operation on two float3 vectors.
Declaration
public static float3 operator -(float3 lhs, float3 rhs)
Parameters
Returns
UnaryNegation(float3)
Returns the result of a componentwise unary minus operation on a float3 vector.
Declaration
public static float3 operator -(float3 val)
Parameters
Type |
Name |
Description |
float3 |
val |
|
Returns
UnaryPlus(float3)
Returns the result of a componentwise unary plus operation on a float3 vector.
Declaration
public static float3 operator +(float3 val)
Parameters
Type |
Name |
Description |
float3 |
val |
|
Returns