Struct Point3D
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Point3D is a struct that defines a 3D point.
C#Copypublic struct Point3D : IEquatable<Point3D>
- Implements
Fields
Declaration
C#Copypublic int X
Field Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic int Y
Field Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic int Z
Field Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Methods
Declaration
C#Copypublic bool Equals(Point3D other)
Parameters
Type | Name | Description |
---|---|---|
Point3D | other | The Point3D to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the object and this instance are of the same type and represent the same value. otherwise, false. |
API Level: preview
Declaration
C#Copypublic override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the object and this instance are of the same type and represent the same value, otherwise false. |
Overrides
System.ValueType.Equals(System.Object)
API Level: preview
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
API Level: preview
Declaration
C#Copypublic override string ToString()
Returns
Type | Description |
---|---|
System.String | The string is formatted as "{{X={0} Y={1} Z={2}}}". |
Overrides
System.ValueType.ToString()
API Level: preview
Operators
Declaration
C#Copypublic static bool operator ==(Point3D p1, Point3D p2)
Parameters
Type | Name | Description |
---|---|---|
Point3D | p1 | A Point3D on the left hand side. |
Point3D | p2 | A Point3D on the right hand side. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Point3Ds have equal values. |
API Level: preview
Declaration
C#Copypublic static bool operator !=(Point3D p1, Point3D p2)
Parameters
Type | Name | Description |
---|---|---|
Point3D | p1 | A Point3D on the left hand side. |
Point3D | p2 | A Point3D on the right hand side. |
Returns
Type | Description |
---|---|
System.Boolean | True if both Point3Ds do not have equal values. |