Table of Contents

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

p1 Vector3

First point.

p2 Vector3

Second point.

p3 Vector3

Third point.

p4 Vector3

Fourth point.

Properties

Center

Mean point of the plate.

public Vector3 Center { get; }

Property Value

Vector3

P1

First plate point.

public Vector3 P1 { get; }

Property Value

Vector3

P2

Second plate point.

public Vector3 P2 { get; }

Property Value

Vector3

P3

Third plate point.

public Vector3 P3 { get; }

Property Value

Vector3

P4

Fourth plate point.

public Vector3 P4 { get; }

Property Value

Vector3

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

Plate

Move(in Vector3)

Create a new plate moved by the given delta vector.

public Plate Move(in Vector3 delta)

Parameters

delta Vector3

Delta vector.

Returns

Plate

Moved plate.