Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
Position is a three-dimensional vector.
public class Position : Disposable, IDisposable, ICloneable
- Inheritance
-
- Implements
-
System.IDisposable
System.ICloneable
Constructors
Declaration
Declaration
public Position(float x, float y, float z = 0)
Parameters
Type |
Name |
Description |
float |
x |
The x component.
|
float |
y |
The y component.
|
float |
z |
The z component(optional).
|
Declaration
public Position(Position2D position2d)
Parameters
Type |
Name |
Description |
Position2D |
position2d |
Position2D to create this vector from.
|
Properties
View Source
this[uint]
The const array subscript operator overload. Should be 0, 1, or 2.
Declaration
public float this[uint index] { get; }
Parameters
Type |
Name |
Description |
uint |
index |
The subscript index.
|
Property Value
Type |
Description |
float |
The float at the given index.
|
Declaration
public static Position One { get; }
Property Value
View Source
ParentOriginBottom
ParentOrigin constants. It's 1.0.
Declaration
public static float ParentOriginBottom { get; }
Property Value
View Source
ParentOriginBottomCenter
ParentOrigin constants: 0.5, 1.0, 0.5.
Declaration
public static Position ParentOriginBottomCenter { get; }
Property Value
View Source
ParentOriginBottomLeft
ParentOrigin constants: 0.0f, 1.0f, 0.5f.
Declaration
public static Position ParentOriginBottomLeft { get; }
Property Value
View Source
ParentOriginBottomRight
ParentOrigin constants: 1.0, 1.0, 0.5.
Declaration
public static Position ParentOriginBottomRight { get; }
Property Value
View Source
ParentOriginCenter
ParentOrigin constants: 0.0, 0.5, 0.5
Declaration
public static Position ParentOriginCenter { get; }
Property Value
View Source
ParentOriginCenterLeft
ParentOrigin constants: 0.0, 0.5, 0.5.
Declaration
public static Position ParentOriginCenterLeft { get; }
Property Value
View Source
ParentOriginCenterRight
ParentOrigin constants: 1.0, 0.5, 0.5.
Declaration
public static Position ParentOriginCenterRight { get; }
Property Value
View Source
ParentOriginLeft
ParentOrigin constants. It's 0.0.
Declaration
public static float ParentOriginLeft { get; }
Property Value
View Source
ParentOriginMiddle
ParentOrigin constants. It's 0.5.
Declaration
public static float ParentOriginMiddle { get; }
Property Value
View Source
ParentOriginRight
ParentOrigin constants. It's 1.0.
Declaration
public static float ParentOriginRight { get; }
Property Value
View Source
ParentOriginTop
ParentOrigin constants. It's 0.0.
Declaration
public static float ParentOriginTop { get; }
Property Value
View Source
ParentOriginTopCenter
ParentOrigin constants: 0.5, 0.0, 0.5.
Declaration
public static Position ParentOriginTopCenter { get; }
Property Value
View Source
ParentOriginTopLeft
ParentOrigin constants: 0.0, 0.0, 0.5.
Declaration
public static Position ParentOriginTopLeft { get; }
Property Value
View Source
ParentOriginTopRight
ParentOrigin constants: 1.0, 0.0, 0.5.
Declaration
public static Position ParentOriginTopRight { get; }
Property Value
View Source
PivotPointBottom
PivotPoint constants: 1.0.
Declaration
public static float PivotPointBottom { get; }
Property Value
View Source
PivotPointBottomCenter
PivotPoint constants: 0.5, 1.0, 0.5
Declaration
public static Position PivotPointBottomCenter { get; }
Property Value
View Source
PivotPointBottomLeft
PivotPoint constants: 0.0, 1.0, 0.5.
Declaration
public static Position PivotPointBottomLeft { get; }
Property Value
View Source
PivotPointBottomRight
PivotPoint constants: 1.0, 1.0, 0.5.
Declaration
public static Position PivotPointBottomRight { get; }
Property Value
View Source
PivotPointCenter
PivotPoint constants: 0.5, 0.5, 0.5.
Declaration
public static Position PivotPointCenter { get; }
Property Value
View Source
PivotPointCenterLeft
PivotPoint constants: 0.0, 0.5, 0.5.
Declaration
public static Position PivotPointCenterLeft { get; }
Property Value
View Source
PivotPointCenterRight
PivotPoint constants: 1.0, 0.5, 0.5.
Declaration
public static Position PivotPointCenterRight { get; }
Property Value
Declaration
public static float PivotPointLeft { get; }
Property Value
View Source
PivotPointMiddle
PivotPoint constants: 0.5.
Declaration
public static float PivotPointMiddle { get; }
Property Value
Declaration
public static float PivotPointRight { get; }
Property Value
Declaration
public static float PivotPointTop { get; }
Property Value
View Source
PivotPointTopCenter
PivotPoint constants: 0.5, 0.0, 0.5.
Declaration
public static Position PivotPointTopCenter { get; }
Property Value
View Source
PivotPointTopLeft
PivotPoint constants: 0.0, 0.0, 0.5.
Declaration
public static Position PivotPointTopLeft { get; }
Property Value
View Source
PivotPointTopRight
PivotPoint constants: 1.0, 0.0, 0.5.
Declaration
public static Position PivotPointTopRight { get; }
Property Value
Declaration
public float X { get; set; }
Property Value
Declaration
public float Y { get; set; }
Property Value
Declaration
public float Z { get; set; }
Property Value
Declaration
public static Position Zero { get; }
Property Value
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 |
bool |
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 |
bool |
Returns true if the two vectors are equal, otherwise false.
|
View Source
GetHashCode()
Gets the the hash code of this Position.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
The Hash Code.
|
Overrides
object.GetHashCode()
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 |
bool |
Returns true if the two vectors are not equal, otherwise false.
|
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.
|
Declaration
public static Position operator /(Position arg1, float arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to divide.
|
float |
arg2 |
The float value to scale the vector by.
|
Returns
Type |
Description |
Position |
The vector containing the result of scaling.
|
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.
|
View Source
implicit operator Vector3(Position)
Converts a position instance to a Vector3 instance.
Declaration
public static implicit operator Vector3(Position Position)
Parameters
Returns
View Source
implicit operator Position(Vector3)
Converts a Vector3 instance to a position instance.
Declaration
public static implicit operator Position(Vector3 vec)
Parameters
Returns
View Source
operator *(Position, float)
The multiplication operator.
Declaration
public static Position operator *(Position arg1, float arg2)
Parameters
Type |
Name |
Description |
Position |
arg1 |
The vector to multiply
|
float |
arg2 |
The float value to scale the vector.
|
Returns
Type |
Description |
Position |
The vector containing the result of scaling.
|
View Source
operator *(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.
|
View Source
operator -(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.
|
View Source
operator -(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.
|
Implements
System.IDisposable
System.ICloneable