Struct UIVector3
Definition
- Assembly:
- Tizen.NUI.dll
Defines a value type of vector3.
public struct UIVector3 : IEquatable<UIVector3>
- Implements
-
IEquatable<><UIVector3>
Constructors
View SourceUIVector3(float, float, float)
Initializes a new instance of the UIVector3 struct.
Declaration
public UIVector3(float x, float y, float z)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The x value. |
| float | y | The y value. |
| float | z | The z value. |
UIVector3(float, float)
Initializes a new instance of the UIVector3 struct.
Declaration
public UIVector3(float x, float y)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | The x value. |
| float | y | The y value. |
Fields
View SourceZero
The zero vector3.
Declaration
public static readonly UIVector3 Zero
Field Value
| Type | Description |
|---|---|
| UIVector3 |
Properties
View SourceDepth
Gets the depth component of the vector3.
Declaration
public float Depth { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Height
Gets the height component of the vector3.
Declaration
public float Height { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
IsZero
Declaration
public readonly bool IsZero { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Width
Gets the width component of the vector3.
Declaration
public float Width { get; init; }
Property Value
| Type | Description |
|---|---|
| float |
X
Gets the x component of the vector3.
Declaration
public float X { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Y
Gets the y component of the vector3.
Declaration
public float Y { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Z
Gets the z component of the vector3.
Declaration
public float Z { readonly get; init; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceEquals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(UIVector3)
Whether this is equivalent to other.
Declaration
public bool Equals(UIVector3 other)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator +(UIVector3, UIVector3)
Declaration
public static UIVector3 operator +(UIVector3 left, UIVector3 right)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | left | The left operand. |
| UIVector3 | right | The right operand. |
Returns
| Type | Description |
|---|---|
| UIVector3 | A new UIVector3 with the added values. |
operator ==(UIVector3, UIVector3)
Compares two UIVector3 for equality.
Declaration
public static bool operator ==(UIVector3 operand1, UIVector3 operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | operand1 | The first operand object. |
| UIVector3 | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are equal, otherwise false. |
implicit operator UIVector3(UIVector2)
Converts the UIVector2 to UIVector3 class implicitly.
Declaration
public static implicit operator UIVector3(UIVector2 uiVector2)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector2 | uiVector2 | A UIVector2 to be converted to UIVector3 |
Returns
| Type | Description |
|---|---|
| UIVector3 |
implicit operator Vector3(UIVector3)
Converts the UIVector3 to Vector3 class implicitly.
Declaration
public static implicit operator Vector3(UIVector3 uiVector3)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | uiVector3 | A UIVector3 to be converted to Vector3 |
Returns
| Type | Description |
|---|---|
| Vector3 |
operator !=(UIVector3, UIVector3)
Compares two UIVector3 for inequality.
Declaration
public static bool operator !=(UIVector3 operand1, UIVector3 operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | operand1 | The first operand object. |
| UIVector3 | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are not equal, otherwise false. |
operator -(UIVector3, UIVector3)
Declaration
public static UIVector3 operator -(UIVector3 left, UIVector3 right)
Parameters
| Type | Name | Description |
|---|---|---|
| UIVector3 | left | The left operand. |
| UIVector3 | right | The right operand. |
Returns
| Type | Description |
|---|---|
| UIVector3 | A new UIVector3 with the subtracted values. |