Characteristic Locus
Inherited Members object.Equals(object, object) object.GetType() object.ReferenceEquals(object, object)
Namespace Meadow.Foundation.Graphics
Assembly MicroGraphics.dll

Syntax

public struct Point3d

Constructors

Point3d(int, int, int)

Create a new Point3d struct

Declaration
public Point3d(int x = 0, int y = 0, int z = 0)

Parameters

Type Name Description
int x

X value

int y

Y value

int z

Z value

Properties

Empty

Create an empty / zero Point3d struct

Declaration
public static Point3d Empty { get; }

Property Value

Type Description
Point3d

IsEmpty

Is the struct empty / zero?

Declaration
public bool IsEmpty { get; }

Property Value

Type Description
bool

Length

Length

Declaration
public double Length { get; }

Property Value

Type Description
double

X

The X value

Declaration
public int X { readonly get; set; }

Property Value

Type Description
int

Y

The Y value

Declaration
public int Y { readonly get; set; }

Property Value

Type Description
int

Z

The Z value

Declaration
public int Z { readonly get; set; }

Property Value

Type Description
int

Methods

Equals(object)

Indicates whether this instance is equal to the specified object

Declaration
public override bool Equals(object obj)

Parameters

Type Name Description
object obj

The object instance to compare to

Returns

Type Description
bool

True if both instances are equal, false otherwise

Overrides

GetHashCode()

Returns the hash code for this instance

Declaration
public override int GetHashCode()

Returns

Type Description
int

An int that represents the hash code for this instance

Overrides

Offset(Point3d)

Offset the current value

Declaration
public void Offset(Point3d point3d)

Parameters

Type Name Description
Point3d point3d

The point3d value to offset

Offset(int, int, int)

Offset the Point3d values

Declaration
public void Offset(int x, int y, int z)

Parameters

Type Name Description
int x

X offset amount

int y

Y offset amount

int z

Z offset amount

ToString()

String representation of the Point3d values

Declaration
public override string ToString()

Returns

Type Description
string

The string

Overrides

Operators

operator +(Point3d, Point3d)

Translates the specified Point by the specified Size.

Declaration
public static Point3d operator +(Point3d point3d, Point3d amount3d)

Parameters

Type Name Description
Point3d point3d

The Point3d instance to translate.

Point3d amount3d

The Point3d instance to translate point with.

Returns

Type Description
Point3d

A new Point3d instance translated by size.

operator ==(Point3d, Point3d)

Compares two instances for equality

Declaration
public static bool operator ==(Point3d left, Point3d right)

Parameters

Type Name Description
Point3d left

The first instance

Point3d right

The second instance

Returns

Type Description
bool

True if left is equal to right, false otherwise

operator !=(Point3d, Point3d)

Compares two instances for inequality

Declaration
public static bool operator !=(Point3d left, Point3d right)

Parameters

Type Name Description
Point3d left

The first instance

Point3d right

The second instance

Returns

Type Description
bool

True if left is not equal to right, false otherwise

operator -(Point3d, Point3d)

Subtract the specified Point by another Point3d values

Declaration
public static Point3d operator -(Point3d point3d, Point3d amount3d)

Parameters

Type Name Description
Point3d point3d

The Point3d instance to translate

Point3d amount3d

The amount to subtract

Returns

Type Description
Point3d

A new Point3d instance translated by the amount