Class Size3D
Data structure used to describe the size of a three-dimensional object.
Inheritance
Namespace: Telerik.Windows.Media.Media3D
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public sealed class Size3D : ValueType
Constructors
Size3D(Double, Double, Double)
Initializes a new instance of the Size3D structure.
Declaration
public Size3D(double x, double y, double z)
Parameters
System.Double
x
The X value of the new Size3D structure. |
System.Double
y
The Y value of the new Size3D structure. |
System.Double
z
The Z value of the new Size3D structure. |
Properties
Empty
Gets a value that represents an empty Size3D structure.
Declaration
public static Size3D Empty { get; }
Property Value
Size3D
|
Remarks
A Size3D structure with X, Y, and Z values set to 0 is not empty. An empty Size3D structure has X, Y, and Z values set to negative infinity. This is the only time a Size3D structure can have negative values.
IsEmpty
Gets a value that indicates whether this Size3D structure is empty.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
Remarks
A Size3D structure with X, Y, and Z values set to 0 is not empty. An empty Size3D structure has X, Y, and Z values set to negative infinity. This is the only time a Size3D structure can have negative values.
X
Gets or sets the x-value of this Size3D structure.
Declaration
public double X { get; set; }
Property Value
System.Double
|
Y
Gets or sets the y-value of this Size3D structure.
Declaration
public double Y { get; set; }
Property Value
System.Double
|
Z
Gets or sets the z-value of this Size3D structure.
Declaration
public double Z { get; set; }
Property Value
System.Double
|
Methods
Equals(Object)
Determines whether the specified Object is a Size3D structure and if so, whether the X, Y, and Z properties of the specified Object are equal to the X, Y, and Z properties of this Size3D structure.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The Object to compare. |
Returns
System.Boolean
true if o (the passed Object) is a Size3D structure and if it is also identical to this Size3D structure; otherwise, false. |
Equals(Size3D)
Compares two Size3D structures for equality.
Declaration
public bool Equals(Size3D size)
Parameters
Size3D
size
The instance of Size3D to compare to this instance. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Equals(Size3D, Size3D)
Compares two Size3D structures for equality.
Declaration
public static bool Equals(Size3D size1, Size3D size2)
Parameters
Size3D
size1
The first Size3D structure to compare. |
Size3D
size2
The second Size3D structure to compare. |
Returns
System.Boolean
true if the X, Y, and Z values for size1 and size2 are equal; otherwise, false. |
Remarks
Two Size3D structures are equal if the values of their X, Y, and Z properties are the same. Because the value of Doubles can lose precision when you perform arithmetic operations on them, a comparison between two Doubles that are logically equal might fail.
GetHashCode()
Gets a hash code for this Size3D structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this Size3D structure. |
Parse(String)
Converts a String representation of a 3-D size into the equivalent Size3D structure.
Declaration
public static Size3D Parse(string source)
Parameters
System.String
source
The String representation of the 3-D size. |
Returns
Size3D
The equivalent Size3D structure. |
ToString()
Creates a String representation of this Size3D structure.
Declaration
public override string ToString()
Returns
System.String
A String containing the X, Y, and Z values of this Size3D structure. |
ToString(IFormatProvider)
Creates a String representation of this Size3D structure.
Declaration
public string ToString(IFormatProvider provider)
Parameters
System.IFormatProvider
provider
The culture-specific formatting information. |
Returns
System.String
A String containing the X, Y, and Z values of this Size3D structure. |
Operators
Equality(Size3D, Size3D)
Compares two Size3D structures for equality. Two Size3D structures are equal if the values of their X, Y, and Z properties are the same. Note: Because the value of Doubles can lose precision when arithmetic operations are performed on them, a comparison between two Doubles that are logically equal might fail.
Declaration
public static bool operator ==(Size3D size1, Size3D size2)
Parameters
Size3D
size1
The first Size3D structure to compare. |
Size3D
size2
The second Size3D structure to compare. |
Returns
System.Boolean
true if the X, Y, and Z components of size1 and size2 are equal; otherwise, false. |
Explicit(Size3D to Point3D)
Converts this Size3D structure into a Point3D structure.
Declaration
public static explicit operator Point3D(Size3D size)
Parameters
Size3D
size
The size to convert. |
Returns
Point3D
The result of converting size. |
Explicit(Size3D to Vector3D)
Converts this Size3D structure into a Vector3D structure.
Declaration
public static explicit operator Vector3D(Size3D size)
Parameters
Size3D
size
The size to convert. |
Returns
Vector3D
The result of converting size. |
Inequality(Size3D, Size3D)
Compares two Size3D structures for inequality. Two Size3D structures are not equal if the values of their X, Y and Z properties are different. Note: Because the value of Doubles can lose precision when arithmetic operations are performed on them, a comparison between two Doubles that are logically equal might fail.
Declaration
public static bool operator !=(Size3D size1, Size3D size2)
Parameters
Size3D
size1
The first Size3D structure to compare. |
Size3D
size2
The second Size3D structure to compare. |
Returns
System.Boolean
true if the X, Y and Z coordinates of size1 and size2 are different; otherwise, false. |