Struct Point3D

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

The Point3D is a struct that defines a 3D point.

C#
Copy
public struct Point3D : IEquatable<Point3D>
Implements

Fields

View Source

X

The X-coordinate of a 3D point.

Declaration
C#
Copy
public int X
Field Value
Type Description
System.Int32
API Level: preview
View Source

Y

The Y-coordinate of a 3D point.

Declaration
C#
Copy
public int Y
Field Value
Type Description
System.Int32
API Level: preview
View Source

Z

The Z-coordinate of a 3D point.

Declaration
C#
Copy
public int Z
Field Value
Type Description
System.Int32
API Level: preview

Methods

View Source

Equals(Point3D)

Indicates whether this instance and a Point3D object are equal.

Declaration
C#
Copy
public bool Equals(Point3D other)
Parameters
Type Name Description
Point3D other

The Point3D to compare with the current instance.

Returns
Type Description
Boolean

true if the object and this instance are of the same type and represent the same value. otherwise, false.

API Level: preview
View Source

Equals(Object)

Indicates whether this instance and a specified object are equal.

Declaration
C#
Copy
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj

The object to compare with the current instance.

Returns
Type Description
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
View Source

GetHashCode()

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.ValueType.GetHashCode()
API Level: preview
View Source

ToString()

A human-readable representation of Point3D.

Declaration
C#
Copy
public override string ToString()
Returns
Type Description
System.String

The string is formatted as "{{X={0} Y={1} Z={2}}}".

Overrides
API Level: preview

Operators

View Source

Equality(Point3D, Point3D)

Whether both Point3Ds are equal.

Declaration
C#
Copy
public 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
Boolean

True if both Point3Ds have equal values.

API Level: preview
View Source

Inequality(Point3D, Point3D)

Whether both Point3Ds are not equal.

Declaration
C#
Copy
public 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
Boolean

True if both Point3Ds do not have equal values.

API Level: preview

Implements