Table of Contents

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

x float
y float
z float

Fields

X

The x

public readonly float X

Field Value

float

Y

The y

public readonly float Y

Field Value

float

Z

The z

public readonly float Z

Field Value

float

Methods

Equals(Point3D)

Equalses the specified other.

public bool Equals(Point3D other)

Parameters

other Point3D

The other.

Returns

bool

Equals(object?)

Equalses the specified object.

public override bool Equals(object? obj)

Parameters

obj object

The object.

Returns

bool

GetHashCode()

Gets the hash code.

public override int GetHashCode()

Returns

int

Operators

operator ==(Point3D, Point3D)

Implements the operator op_Equality.

public static bool operator ==(Point3D left, Point3D right)

Parameters

left Point3D

The left.

right Point3D

The right.

Returns

bool

The result of the operator.

operator !=(Point3D, Point3D)

Implements the operator op_Inequality.

public static bool operator !=(Point3D left, Point3D right)

Parameters

left Point3D

The left.

right Point3D

The right.

Returns

bool

The result of the operator.