Class Point3D
Defines an x-, y-, and z-coordinate in 3-D space.
Inheritance
Namespace: Telerik.Windows.Media.Media3D
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public sealed class Point3D : ValueType
Constructors
Point3D(Double, Double, Double)
Initializes a new instance of the Point3D structure.
Declaration
public Point3D(double x, double y, double z)
Parameters
System.Double
x
The X value of the new Point3D structure. |
System.Double
y
The Y value of the new Point3D structure. |
System.Double
z
The Z value of the new Point3D structure. |
Properties
X
Gets or sets the x-coordinate of this Point3D structure.
Declaration
public double X { get; set; }
Property Value
System.Double
|
Y
Gets or sets the y-coordinate of this Point3D structure.
Declaration
public double Y { get; set; }
Property Value
System.Double
|
Z
Gets or sets the z-coordinate of this Point3D structure.
Declaration
public double Z { get; set; }
Property Value
System.Double
|
Methods
Add(Point3D, Vector3D)
Adds a Point3D structure to a Vector3D and returns the result as a Point3D structure.
Declaration
public static Point3D Add(Point3D point, Vector3D vector)
Parameters
Point3D
point
The Point3D structure to add. |
Vector3D
vector
The Vector3D structure to add. |
Returns
Point3D
The sum of point and vector. |
Equals(Object)
Determines whether the specified Object is a Point3D 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 Point3D 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 Point3D structure and if it is also identical to this Point3D structure; otherwise, false. |
Equals(Point3D)
Compares two Point3D structures for equality.
Declaration
public bool Equals(Point3D point)
Parameters
Point3D
point
The instance of Point3D to compare to this instance. |
Returns
System.Boolean
true if instances are equal; otherwise, false. |
Equals(Point3D, Point3D)
Compares two Point3D structures for equality.
Declaration
public static bool Equals(Point3D point1, Point3D point2)
Parameters
Point3D
point1
The first Point3D structure to compare. |
Point3D
point2
The second Point3D structure to compare. |
Returns
System.Boolean
true if the X, Y, and Z values for point1 and point2 are equal; otherwise, false. |
Remarks
Two Point3D 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 Point3D structure.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this Point3D structure. |
Multiply(Point3D, Matrix3D)
Transforms the specified Point3D structure by the specified Matrix3D structure.
Declaration
public static Point3D Multiply(Point3D point, Matrix3D matrix)
Parameters
Point3D
point
The Point3D structure to transform. |
Matrix3D
matrix
The Matrix3D structure to use for the transformation. |
Returns
Point3D
|
Offset(Double, Double, Double)
Changes the X, Y, and Z values of this Point3D structure by the specified amounts.
Declaration
public void Offset(double offsetX, double offsetY, double offsetZ)
Parameters
System.Double
offsetX
The amount to change the X coordinate of this Point3D structure. |
System.Double
offsetY
The amount to change the Y coordinate of this Point3D structure. |
System.Double
offsetZ
The amount to change the Z coordinate of this Point3D structure. |
Parse(String)
Converts a String representation of a 3-D point into the equivalent Point3D structure.
Declaration
public static Point3D Parse(string source)
Parameters
System.String
source
The String representation of the 3-D point. |
Returns
Point3D
The equivalent Point3D structure. |
Subtract(Point3D, Point3D)
Subtracts a Point3D structure from a Point3D structure and returns the result as a Vector3D structure.
Declaration
public static Vector3D Subtract(Point3D point1, Point3D point2)
Parameters
Point3D
point1
The Point3D structure on which to perform subtraction. |
Point3D
point2
The Point3D structure to subtract from point1. |
Returns
Vector3D
A Vector3D structure that represents the difference between point1 and point2. |
Subtract(Point3D, Vector3D)
Subtracts a Vector3D structure from a Point3D structure and returns the result as a Point3D structure.
Declaration
public static Point3D Subtract(Point3D point, Vector3D vector)
Parameters
Point3D
point
The Point3D structure from which to subtract vector. |
Vector3D
vector
The Vector3D structure to subtract from point. |
Returns
Point3D
A changed Point3D structure, the result of subtracting vector from point. |
ToString()
Creates a String representation of this Point3D structure.
Declaration
public override string ToString()
Returns
System.String
A String containing the X, Y, and Z values of this Point3D structure. |
ToString(IFormatProvider)
Creates a String representation of this Point3D 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 Point3D structure. |
Operators
Addition(Point3D, Vector3D)
Adds a Point3D structure to a Vector3D and returns the result as a Point3D structure.
Declaration
public static Point3D operator +(Point3D point, Vector3D vector)
Parameters
Point3D
point
The Point3D structure to add. |
Vector3D
vector
The Vector3D structure to add. |
Returns
Point3D
The sum of point and vector. |
Equality(Point3D, Point3D)
Compares two Point3D structures for equality.
Declaration
public static bool operator ==(Point3D point1, Point3D point2)
Parameters
Point3D
point1
The first Point3D structure to compare. |
Point3D
point2
The second Point3D structure to compare. |
Returns
System.Boolean
true if the X, Y, and Z values for point1 and point2 are equal; otherwise, false. |
Remarks
Two Point3D 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.
Explicit(Point3D to Vector3D)
Converts a Point3D structure into a Vector3D structure.
Declaration
public static explicit operator Vector3D(Point3D point)
Parameters
Point3D
point
The point to convert. |
Returns
Vector3D
The result of converting point. |
Inequality(Point3D, Point3D)
Compares two Point3D structures for inequality.
Declaration
public static bool operator !=(Point3D point1, Point3D point2)
Parameters
Point3D
point1
The first Point3D structure to compare. |
Point3D
point2
The second Point3D structure to compare. |
Returns
System.Boolean
true if the X, Y, and Z coordinates of point1 and point2 are different; otherwise, false. |
Remarks
Two Point3D structures are not equal if the values of their X, Y, and Z properties are different. 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.
Multiply(Point3D, Matrix3D)
Transforms the specified Point3D structure by the specified Matrix3D structure.
Declaration
public static Point3D operator *(Point3D point, Matrix3D matrix)
Parameters
Point3D
point
The Point3D structure to transform. |
Matrix3D
matrix
The Matrix3D structure to use for the transformation. |
Returns
Point3D
|
Subtraction(Point3D, Point3D)
Subtracts a Point3D structure from a Point3D structure and returns the result as a Vector3D structure.
Declaration
public static Vector3D operator -(Point3D point1, Point3D point2)
Parameters
Point3D
point1
The Point3D structure on which to perform subtraction. |
Point3D
point2
The Point3D structure to subtract from point1. |
Returns
Vector3D
A Vector3D structure that represents the difference between point1 and point2. |
Subtraction(Point3D, Vector3D)
Subtracts a Vector3D structure from a Point3D structure and returns the result as a Point3D structure.
Declaration
public static Point3D operator -(Point3D point, Vector3D vector)
Parameters
Point3D
point
The Point3D structure from which to subtract vector. |
Vector3D
vector
The Vector3D structure to subtract from point. |
Returns
Point3D
A changed Point3D structure, the result of subtracting vector from point. |