Struct Point3d
Represents a 3D integer value
Assembly: MicroGraphics.dll
View Source
public struct Point3d
Properties
Empty
Create an empty / zero Point3d struct
View Source
public static Point3d Empty { get; }
X
The X value
View Source
public int X { readonly get; set; }
Y
The Y value
View Source
public int Y { readonly get; set; }
Z
The Z value
View Source
public int Z { readonly get; set; }
Length
Length
View Source
public double Length { get; }
IsEmpty
Is the struct empty / zero?
View Source
public bool IsEmpty { get; }
Methods
Offset(int, int, int)
Offset the Point3d values
View Source
public void Offset(int x, int y, int z)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | X offset amount |
System.Int32 | y | Y offset amount |
System.Int32 | z | Z offset amount |
Offset(Point3d)
Offset the current value
View Source
public void Offset(Point3d point3d)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.Point3d | point3d | The point3d value to offset |
Equals(object)
Indicates whether this instance is equal to the specified object
View Source
public override bool Equals(object obj)
Returns
System.Boolean
: True if both instances are equal, false otherwise
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object instance to compare to |
GetHashCode()
Returns the hash code for this instance
View Source
public override int GetHashCode()
Returns
System.Int32
: An int that represents the hash code for this instance### ToString()
String representation of the Point3d values
View Source
public override string ToString()
Returns
System.String
: The string