Class Plate
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Plate geometry composed by four vertexes, used primarly to be converted in triangles with GetTriangles(Plate, in Color?, bool).
public class Plate
- Inheritance
-
Plate
- Inherited Members
- Extension Methods
Constructors
Plate(in Vector3, in Vector3, in Vector3, in Vector3)
Create a plate with given four points.
public Plate(in Vector3 p1, in Vector3 p2, in Vector3 p3, in Vector3 p4)
Parameters
Properties
Center
Mean point of the plate.
public Vector3 Center { get; }
Property Value
P1
First plate point.
public Vector3 P1 { get; }
Property Value
P2
Second plate point.
public Vector3 P2 { get; }
Property Value
P3
Third plate point.
public Vector3 P3 { get; }
Property Value
P4
Fourth plate point.
public Vector3 P4 { get; }
Property Value
Methods
Invert()
Create a new plate with point P1, P2, P3, P4 sequence reversed to P4. P3, P2, P1.
This is useful to invert normals of plate generated triangles (GetTriangles(Plate, in Color?, bool)).
public Plate Invert()
Returns
Move(in Vector3)
Create a new plate moved by the given delta vector.
public Plate Move(in Vector3 delta)
Parameters
delta
Vector3Delta vector.
Returns
- Plate
Moved plate.