Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
Position is a three-dimensional vector.
public class Position : Disposable, IDisposable
- Inheritance
-
- Implements
-
System.IDisposable
Constructors
Declaration
API Level: 3
Declaration
public Position(float x, float y, float z = 0F)
Parameters
Type |
Name |
Description |
System.Single |
x |
The x component.
|
System.Single |
y |
The y component.
|
System.Single |
z |
The z component(optional).
|
API Level: 3
Declaration
public Position(Position2D position2d)
Parameters
Type |
Name |
Description |
Position2D |
position2d |
Position2D to create this vector from.
|
API Level: 3
Properties
View Source
Item[UInt32]
The const array subscript operator overload. Should be 0, 1, or 2.
Declaration
public float this[uint index] { get; }
Parameters
Type |
Name |
Description |
System.UInt32 |
index |
The subscript index.
|
Property Value
Type |
Description |
System.Single |
The float at the given index.
|
API Level: 3
Declaration
public static Position One { get; }
Property Value
API Level: 3
View Source
ParentOriginBottom
ParentOrigin constants. It's 1.0.
Declaration
public static float ParentOriginBottom { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
ParentOriginBottomCenter
ParentOrigin constants: 0.5, 1.0, 0.5.
Declaration
public static Position ParentOriginBottomCenter { get; }
Property Value
API Level: 3
View Source
ParentOriginBottomLeft
ParentOrigin constants: 0.0f, 1.0f, 0.5f.
Declaration
public static Position ParentOriginBottomLeft { get; }
Property Value
API Level: 3
View Source
ParentOriginBottomRight
ParentOrigin constants: 1.0, 1.0, 0.5.
Declaration
public static Position ParentOriginBottomRight { get; }
Property Value
API Level: 3
View Source
ParentOriginCenter
ParentOrigin constants: 0.0, 0.5, 0.5
Declaration
public static Position ParentOriginCenter { get; }
Property Value
API Level: 3
View Source
ParentOriginCenterLeft
ParentOrigin constants: 0.0, 0.5, 0.5.
Declaration
public static Position ParentOriginCenterLeft { get; }
Property Value
API Level: 3
View Source
ParentOriginCenterRight
ParentOrigin constants: 1.0, 0.5, 0.5.
Declaration
public static Position ParentOriginCenterRight { get; }
Property Value
API Level: 3
View Source
ParentOriginLeft
ParentOrigin constants. It's 0.0.
Declaration
public static float ParentOriginLeft { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
ParentOriginMiddle
ParentOrigin constants. It's 0.5.
Declaration
public static float ParentOriginMiddle { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
ParentOriginRight
ParentOrigin constants. It's 1.0.
Declaration
public static float ParentOriginRight { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
ParentOriginTop
ParentOrigin constants. It's 0.0.
Declaration
public static float ParentOriginTop { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
ParentOriginTopCenter
ParentOrigin constants: 0.5, 0.0, 0.5.
Declaration
public static Position ParentOriginTopCenter { get; }
Property Value
API Level: 3
View Source
ParentOriginTopLeft
ParentOrigin constants: 0.0, 0.0, 0.5.
Declaration
public static Position ParentOriginTopLeft { get; }
Property Value
API Level: 3
View Source
ParentOriginTopRight
ParentOrigin constants: 1.0, 0.0, 0.5.
Declaration
public static Position ParentOriginTopRight { get; }
Property Value
API Level: 3
View Source
PivotPointBottom
PivotPoint constants: 1.0.
Declaration
public static float PivotPointBottom { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
PivotPointBottomCenter
PivotPoint constants: 0.5, 1.0, 0.5
Declaration
public static Position PivotPointBottomCenter { get; }
Property Value
API Level: 3
View Source
PivotPointBottomLeft
PivotPoint constants: 0.0, 1.0, 0.5.
Declaration
public static Position PivotPointBottomLeft { get; }
Property Value
API Level: 3
View Source
PivotPointBottomRight
PivotPoint constants: 1.0, 1.0, 0.5.
Declaration
public static Position PivotPointBottomRight { get; }
Property Value
API Level: 3
View Source
PivotPointCenter
PivotPoint constants: 0.5, 0.5, 0.5.
Declaration
public static Position PivotPointCenter { get; }
Property Value
API Level: 3
View Source
PivotPointCenterLeft
PivotPoint constants: 0.0, 0.5, 0.5.
Declaration
public static Position PivotPointCenterLeft { get; }
Property Value
API Level: 3
View Source
PivotPointCenterRight
PivotPoint constants: 1.0, 0.5, 0.5.
Declaration
public static Position PivotPointCenterRight { get; }
Property Value
API Level: 3
Declaration
public static float PivotPointLeft { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
PivotPointMiddle
PivotPoint constants: 0.0.
Declaration
public static float PivotPointMiddle { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public static float PivotPointRight { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public static float PivotPointTop { get; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
View Source
PivotPointTopCenter
PivotPoint constants: 0.5, 0.0, 0.5.
Declaration
public static Position PivotPointTopCenter { get; }
Property Value
API Level: 3
View Source
PivotPointTopLeft
PivotPoint constants: 0.0, 0.0, 0.5.
Declaration
public static Position PivotPointTopLeft { get; }
Property Value
API Level: 3
View Source
PivotPointTopRight
PivotPoint constants: 1.0, 0.0, 0.5.
Declaration
public static Position PivotPointTopRight { get; }
Property Value
API Level: 3
Declaration
public float X { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public float Y { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public float Z { get; set; }
Property Value
Type |
Description |
System.Single |
|
API Level: 3
Declaration
public static Position Zero { get; }
Property Value
API Level: 3
Methods
View Source
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(Object obj)
Parameters
Type |
Name |
Description |
Tizen.System.Object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
System.Boolean |
true if the specified object is equal to the current object; otherwise, false.
|
View Source
EqualTo(Position)
Compares if rhs is equal to.
Declaration
public bool EqualTo(Position rhs)
Parameters
Type |
Name |
Description |
Position |
rhs |
The vector to compare.
|
Returns
Type |
Description |
System.Boolean |
Returns true if the two vectors are equal, otherwise false.
|
API Level: 3
View Source
GetHashCode()
Gets the the hash code of this Position.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
The Hash Code.
|
Overrides
System.Object.GetHashCode()
API Level: 6
View Source
NotEqualTo(Position)
Compares if rhs is not equal to.
Declaration
public bool NotEqualTo(Position rhs)
Parameters
Type |
Name |
Description |
Position |
rhs |
The vector to compare.
|
Returns
Type |
Description |
System.Boolean |
Returns true if the two vectors are not equal, otherwise false.
|
API Level: 3
Operators
Declaration
public static Position operator +(Position arg1, Position arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to add.
|
Position |
arg2 |
The vector to add.
|
Returns
Type |
Description |
Position |
The vector containing the result of the addition.
|
API Level: 3
Declaration
public static Position operator /(Position arg1, float arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to divide.
|
System.Single |
arg2 |
The float value to scale the vector by.
|
Returns
Type |
Description |
Position |
The vector containing the result of scaling.
|
API Level: 3
Declaration
public static Position operator /(Position arg1, Position arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to divide.
|
Position |
arg2 |
The vector to divide.
|
Returns
Type |
Description |
Position |
The vector containing the result of the division.
|
API Level: 3
View Source
Implicit(Position to Vector3)
Converts a position instance to a Vector3 instance.
Declaration
public static implicit operator Vector3(Position Position)
Parameters
Returns
API Level: 3
View Source
Implicit(Vector3 to Position)
Converts a Vector3 instance to a position instance.
Declaration
public static implicit operator Position(Vector3 vec)
Parameters
Returns
API Level: 3
View Source
Multiply(Position, Single)
The multiplication operator.
Declaration
public static Position operator *(Position arg1, float arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to multiply
|
System.Single |
arg2 |
The float value to scale the vector.
|
Returns
Type |
Description |
Position |
The vector containing the result of scaling.
|
API Level: 3
View Source
Multiply(Position, Position)
The multiplication operator.
Declaration
public static Position operator *(Position arg1, Position arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to multiply.
|
Position |
arg2 |
The vector to multiply.
|
Returns
Type |
Description |
Position |
The vector containing the result of the multiplication.
|
API Level: 3
View Source
Subtraction(Position, Position)
The subtraction operator.
Declaration
public static Position operator -(Position arg1, Position arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to subtract.
|
Position |
arg2 |
The vector to subtract.
|
Returns
Type |
Description |
Position |
The vector containing the result of the subtraction.
|
API Level: 3
View Source
UnaryNegation(Position)
The unary negation operator.
Declaration
public static Position operator -(Position arg1)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to negate.
|
Returns
Type |
Description |
Position |
The vector containg the negation.
|
API Level: 3
Implements
System.IDisposable