Struct Point3D
- Namespace
- DotCompute.Abstractions.Types
- Assembly
- DotCompute.Abstractions.dll
Simple 3D point structure for demonstration.
public readonly struct Point3D : IEquatable<Point3D>
- Implements
- Inherited Members
Constructors
Point3D(float, float, float)
Simple 3D point structure for demonstration.
public Point3D(float x, float y, float z)
Parameters
Fields
X
The x
public readonly float X
Field Value
Y
The y
public readonly float Y
Field Value
Z
The z
public readonly float Z
Field Value
Methods
Equals(Point3D)
Equalses the specified other.
public bool Equals(Point3D other)
Parameters
otherPoint3DThe other.
Returns
Equals(object?)
Equalses the specified object.
public override bool Equals(object? obj)
Parameters
objobjectThe object.
Returns
GetHashCode()
Gets the hash code.
public override int GetHashCode()
Returns
Operators
operator ==(Point3D, Point3D)
Implements the operator op_Equality.
public static bool operator ==(Point3D left, Point3D right)
Parameters
Returns
- bool
The result of the operator.
operator !=(Point3D, Point3D)
Implements the operator op_Inequality.
public static bool operator !=(Point3D left, Point3D right)
Parameters
Returns
- bool
The result of the operator.