Class Polygon3D
Represents chart polygon to create any shapes in 3D.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class Polygon3D
Constructors
Polygon3D()
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D()
Polygon3D(Vector3D, Vector3D, Vector3D)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D v1, Vector3D v2, Vector3D v3)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | v1 | The v1. |
Vector3D | v2 | The v2. |
Vector3D | v3 | The v3. |
Polygon3D(Vector3D, Double)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D normal, double d)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | normal | The normal. |
System.Double | d | The d. |
Polygon3D(Vector3D[])
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D[] points)
Parameters
Type | Name | Description |
---|---|---|
Vector3D[] | points | The points. |
Polygon3D(Vector3D[], Polygon3D)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D[] points, Polygon3D polygon)
Parameters
Type | Name | Description |
---|---|---|
Vector3D[] | points | The points. |
Polygon3D | polygon | The plane. |
Polygon3D(Vector3D[], Int32)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D[] points, int index)
Parameters
Type | Name | Description |
---|---|---|
Vector3D[] | points | The points. |
System.Int32 | index | The Index. |
Polygon3D(Vector3D[], DependencyObject, Int32, Brush, Double, Brush)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D[] points, DependencyObject tag, int index, Brush stroke, double strokeThickness, Brush fill)
Parameters
Type | Name | Description |
---|---|---|
Vector3D[] | points | The Points. |
System.Windows.DependencyObject | tag | The Tag |
System.Int32 | index | The Index |
System.Windows.Media.Brush | stroke | The Stroke |
System.Double | strokeThickness | The Stroke Thickness |
System.Windows.Media.Brush | fill | The Fill |
Polygon3D(Vector3D[], DependencyObject, Int32, Brush, Double, Brush, String)
Initializes a new instance of the Polygon3D class.
Declaration
public Polygon3D(Vector3D[] points, DependencyObject tag, int index, Brush stroke, double strokeThickness, Brush fill, string name)
Parameters
Type | Name | Description |
---|---|---|
Vector3D[] | points | The Points |
System.Windows.DependencyObject | tag | The Tag |
System.Int32 | index | The Index |
System.Windows.Media.Brush | stroke | The Stroke |
System.Double | strokeThickness | The StrokeThickness |
System.Windows.Media.Brush | fill | The Fill Color |
System.String | name | The Name |
Fields
d
The constant of plane.
Declaration
protected double d
Field Value
Type |
---|
System.Double |
Epsilon
The epsilon.
Declaration
public const double Epsilon = 1E-05
Field Value
Type |
---|
System.Double |
normal
The normal of plane.
Declaration
protected Vector3D normal
Field Value
Type |
---|
Vector3D |
VectorPoints
Points of polygon.
Declaration
protected Vector3D[] VectorPoints
Field Value
Type |
---|
Vector3D[] |
Properties
A
Gets the A component.
Declaration
public double A { get; }
Property Value
Type | Description |
---|---|
System.Double | The A component. |
B
Gets the B component.
Declaration
public double B { get; }
Property Value
Type | Description |
---|---|
System.Double | The B component. |
C
Gets the C component.
Declaration
public double C { get; }
Property Value
Type | Description |
---|---|
System.Double | The C component. |
D
Gets the D component.
Declaration
public double D { get; }
Property Value
Type | Description |
---|---|
System.Double | The D component. |
Element
Gets or sets the element.
Declaration
public UIElement Element { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.UIElement | The element. |
Normal
Gets the normal.
Declaration
public Vector3D Normal { get; }
Property Value
Type | Description |
---|---|
Vector3D | The normal. |
Points
Gets the points of polygon.
Declaration
public virtual Vector3D[] Points { get; }
Property Value
Type | Description |
---|---|
Vector3D[] | The points. |
Methods
CalcNormal(Vector3D, Vector3D, Vector3D)
Calculates the normal.
Declaration
protected void CalcNormal(Vector3D vector1, Vector3D vector2, Vector3D vector3)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | vector1 | The First Vector. |
Vector3D | vector2 | The Second Vector. |
Vector3D | vector3 | The Third Vector. |
GetPoint(Vector3D, Vector3D)
Gets the point of intersect ray with plane.
Declaration
public Vector3D GetPoint(Vector3D position, Vector3D ray)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | position | The position. |
Vector3D | ray | The ray. |
Returns
Type | Description |
---|---|
Vector3D | Returns Vector3D instance. |
GetPoint(Double, Double)
Gets the point on the plane.
Declaration
public Vector3D GetPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x. |
System.Double | y | The y. |
Returns
Type | Description |
---|---|
Vector3D | Returns Vector3D instance. |
Test()
Tests this instance to the existing.
Declaration
public bool Test()
Returns
Type | Description |
---|---|
System.Boolean | Indicates whether Normal of Plane is valid or Not. |
Transform(Matrix3D)
Transforms by the specified Matrix3D.
Declaration
public virtual void Transform(Matrix3D matrix)
Parameters
Type | Name | Description |
---|---|---|
Matrix3D | matrix | The 3D Matrix |