Class TransformModifier
Changes the world space positioning of the grid by a linear transform,
leaving everything else unchanged.
Inheritance
System.Object
TransformModifier
Assembly: Sylves.dll
public class TransformModifier : BaseModifier, IGrid
Constructors
Declaration
public TransformModifier(IGrid underlying, Matrix4x4 transform)
Parameters
Properties
Declaration
public Matrix4x4 Transform { get; }
Property Value
Methods
Declaration
public override bool FindCell(Matrix4x4 matrix, out Cell cell, out CellRotation rotation)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool FindCell(Vector3 position, out Cell cell)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override Vector3 GetCellCenter(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
Declaration
public override Vector3 GetCellCorner(Cell cell, CellCorner corner)
Parameters
Returns
Overrides
Declaration
public override IEnumerable<Cell> GetCellsIntersectsApprox(Vector3 min, Vector3 max)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<Cell> |
|
Overrides
Declaration
public override Deformation GetDeformation(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
Declaration
public override IDualMapping GetDual()
Returns
Overrides
Declaration
public override void GetMeshData(Cell cell, out MeshData meshData, out Matrix4x4 transform)
Parameters
Overrides
Declaration
public override void GetPolygon(Cell cell, out Vector3[] vertices, out Matrix4x4 transform)
Parameters
Overrides
Declaration
public override IEnumerable<(Vector3, Vector3, Vector3, CellDir)> GetTriangleMesh(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
Declaration
public override TRS GetTRS(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
Declaration
public override IEnumerable<RaycastInfo> Raycast(Vector3 origin, Vector3 direction, float maxDistance = InfinityF)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Vector3 |
direction |
|
System.Single |
maxDistance |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<RaycastInfo> |
|
Overrides
Declaration
protected override IGrid Rebind(IGrid underlying)
Parameters
Type |
Name |
Description |
IGrid |
underlying |
|
Returns
Overrides
Implements