C# Class R3.Geometry.Tile

ファイルを表示 Open project: roice3/Honeycombs Class Usage Examples

Public Methods

Method Description
Clone ( ) : Tile
IncludeAfterMobius ( Mobius m ) : bool

ZZZ - needs to be part of performance setting? Returns true if the tile should be included after a Mobius transformation will be applied. If the tile is not be included, this method avoids applying the mobious transform to the entire tile.

Reflect ( Segment s ) : void
Tile ( ) : System.Collections.Generic
Tile ( Polygon boundary, Polygon drawn, Geometry geometry ) : System.Collections.Generic
Transform ( Isometry i ) : void
Transform ( Mobius m ) : void

Apply a Mobius transform to us.

Private Methods

Method Description
ShrinkTile ( Tile &tile, double shrinkFactor ) : void

This will trim back the tile using an equidistant curve. It assumes the tile is at the origin.

ShrinkTileCorrect ( Tile &tile, double shrinkFactor ) : void

A correct implementation of shrink tile. hmmmm, is "scaling" even well defined in non-E geometries? Am I really looking for an equidistant curve? Sadly, even if I figure out what is best, I fear changing out usage of the incorrect one below in MagicTile, because of the possibility of breaking existing puzzles.

Method Details

Clone() public method

public Clone ( ) : Tile
return Tile

IncludeAfterMobius() public method

ZZZ - needs to be part of performance setting? Returns true if the tile should be included after a Mobius transformation will be applied. If the tile is not be included, this method avoids applying the mobious transform to the entire tile.
public IncludeAfterMobius ( Mobius m ) : bool
m R3.Math.Mobius
return bool

Reflect() public method

public Reflect ( Segment s ) : void
s Segment
return void

Tile() public method

public Tile ( ) : System.Collections.Generic
return System.Collections.Generic

Tile() public method

public Tile ( Polygon boundary, Polygon drawn, Geometry geometry ) : System.Collections.Generic
boundary Polygon
drawn Polygon
geometry Geometry
return System.Collections.Generic

Transform() public method

public Transform ( Isometry i ) : void
i R3.Math.Isometry
return void

Transform() public method

Apply a Mobius transform to us.
public Transform ( Mobius m ) : void
m R3.Math.Mobius
return void