Show / Hide Table of Contents

Class NGonPrismCellType

Cell type for a regular polygon with n sides extended in the z-axis to a prism.

The canonical shape (for use with deformations) is the shape for the corresponding NGonCellType, extended to +-0.5 along the z-axis.

Inheritance
System.Object
NGonPrismCellType
Implements
ICellType
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class NGonPrismCellType : Object, ICellType

Properties

N

Declaration
public int N { get; }
Property Value
Type Description
System.Int32

ReflectX

Declaration
public CellRotation ReflectX { get; }
Property Value
Type Description
CellRotation

ReflectY

Declaration
public CellRotation ReflectY { get; }
Property Value
Type Description
CellRotation

RotateCCW

Declaration
public CellRotation RotateCCW { get; }
Property Value
Type Description
CellRotation

RotateCW

Declaration
public CellRotation RotateCW { get; }
Property Value
Type Description
CellRotation

Methods

CircumcircleDiameterToSideLength(Single)

Declaration
public float CircumcircleDiameterToSideLength(float diameter)
Parameters
Type Name Description
System.Single diameter
Returns
Type Description
System.Single

CircumcircleToIncircle(Single)

Declaration
public float CircumcircleToIncircle(float diameter)
Parameters
Type Name Description
System.Single diameter
Returns
Type Description
System.Single

Format(CellCorner)

Declaration
public string Format(CellCorner corner)
Parameters
Type Name Description
CellCorner corner
Returns
Type Description
System.String

Format(CellDir)

Declaration
public string Format(CellDir dir)
Parameters
Type Name Description
CellDir dir
Returns
Type Description
System.String

Format(CellRotation)

Declaration
public string Format(CellRotation rotation)
Parameters
Type Name Description
CellRotation rotation
Returns
Type Description
System.String

FromMatrix(Matrix4x4)

Declaration
public Nullable<CellRotation> FromMatrix(Matrix4x4 matrix)
Parameters
Type Name Description
Matrix4x4 matrix
Returns
Type Description
System.Nullable<CellRotation>

Get(Int32)

Declaration
public static ICellType Get(int n)
Parameters
Type Name Description
System.Int32 n
Returns
Type Description
ICellType

GetCellCorners()

Declaration
public IEnumerable<CellCorner> GetCellCorners()
Returns
Type Description
System.Collections.Generic.IEnumerable<CellCorner>

GetCellDirs()

Declaration
public IEnumerable<CellDir> GetCellDirs()
Returns
Type Description
System.Collections.Generic.IEnumerable<CellDir>

GetCornerPosition(CellCorner)

Declaration
public Vector3 GetCornerPosition(CellCorner corner)
Parameters
Type Name Description
CellCorner corner
Returns
Type Description
Vector3

GetIdentity()

Declaration
public CellRotation GetIdentity()
Returns
Type Description
CellRotation

GetMatrix(CellRotation)

Declaration
public Matrix4x4 GetMatrix(CellRotation cellRotation)
Parameters
Type Name Description
CellRotation cellRotation
Returns
Type Description
Matrix4x4

GetRotations(Boolean)

Declaration
public IList<CellRotation> GetRotations(bool includeReflections = false)
Parameters
Type Name Description
System.Boolean includeReflections
Returns
Type Description
System.Collections.Generic.IList<CellRotation>

IncircleToCircumcircle(Single)

Declaration
public float IncircleToCircumcircle(float diameter)
Parameters
Type Name Description
System.Single diameter
Returns
Type Description
System.Single

Invert(CellDir)

Declaration
public Nullable<CellDir> Invert(CellDir dir)
Parameters
Type Name Description
CellDir dir
Returns
Type Description
System.Nullable<CellDir>

Invert(CellRotation)

Declaration
public CellRotation Invert(CellRotation a)
Parameters
Type Name Description
CellRotation a
Returns
Type Description
CellRotation

Multiply(CellRotation, CellRotation)

Declaration
public CellRotation Multiply(CellRotation a, CellRotation b)
Parameters
Type Name Description
CellRotation a
CellRotation b
Returns
Type Description
CellRotation

Rotate(CellCorner, CellRotation)

Declaration
public CellCorner Rotate(CellCorner corner, CellRotation rotation)
Parameters
Type Name Description
CellCorner corner
CellRotation rotation
Returns
Type Description
CellCorner

Rotate(CellDir, CellRotation)

Declaration
public CellDir Rotate(CellDir dir, CellRotation rotation)
Parameters
Type Name Description
CellDir dir
CellRotation rotation
Returns
Type Description
CellDir

Rotate(CellDir, CellRotation, out CellDir, out Connection)

Declaration
public void Rotate(CellDir dir, CellRotation rotation, out CellDir resultDir, out Connection connection)
Parameters
Type Name Description
CellDir dir
CellRotation rotation
CellDir resultDir
Connection connection

SideLengthToCircumcircleDiameter(Single)

Declaration
public float SideLengthToCircumcircleDiameter(float sideLength)
Parameters
Type Name Description
System.Single sideLength
Returns
Type Description
System.Single

TryGetRotation(CellDir, CellDir, Connection, out CellRotation)

Declaration
public bool TryGetRotation(CellDir fromDir, CellDir toDir, Connection connection, out CellRotation rotation)
Parameters
Type Name Description
CellDir fromDir
CellDir toDir
Connection connection
CellRotation rotation
Returns
Type Description
System.Boolean

Implements

ICellType
In This Article
Back to top Generated by DocFX