RegularPolygon

io.github.scala_tessella.tessella.RegularPolygon
opaque object RegularPolygon

Methods to deal with regular polygons in a tiling

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Polygon

Companion object for Polygon

Companion object for Polygon

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Polygon.type
object PolygonOrdering extends Ordering[Polygon]

Polygons ordered by ascending number of sides

Polygons ordered by ascending number of sides

Attributes

Supertypes
trait Ordering[Polygon]
trait PartialOrdering[Polygon]
trait Equiv[Polygon]
trait Serializable
trait Comparator[Polygon]
class Object
trait Matchable
class Any
Show all
Self type
object PolygonsMaxOrdering extends Ordering[Seq[Polygon]]

Sequence of polygons ordered by ascending max number of sides

Sequence of polygons ordered by ascending max number of sides

Attributes

Supertypes
trait Ordering[Seq[Polygon]]
trait PartialOrdering[Seq[Polygon]]
trait Equiv[Seq[Polygon]]
trait Serializable
trait Comparator[Seq[Polygon]]
class Object
trait Matchable
class Any
Show all
Self type
object PolygonsSeqOrdering extends Ordering[Seq[Polygon]]

Sequence of polygons ordered by ascending number of sides

Sequence of polygons ordered by ascending number of sides

Attributes

Supertypes
trait Ordering[Seq[Polygon]]
trait PartialOrdering[Seq[Polygon]]
trait Equiv[Seq[Polygon]]
trait Serializable
trait Comparator[Seq[Polygon]]
class Object
trait Matchable
class Any
Show all
Self type
object Vertex extends Accuracy

Companion object for Vertex

Companion object for Vertex

Attributes

Supertypes
trait Accuracy
class Object
trait Matchable
class Any
Self type
Vertex.type
object VertexSizeOrdering extends Ordering[Vertex]

Vertices ordered by size first, then by contained polygons.

Vertices ordered by size first, then by contained polygons.

Attributes

Supertypes
trait Ordering[Vertex]
trait PartialOrdering[Vertex]
trait Equiv[Vertex]
trait Serializable
trait Comparator[Vertex]
class Object
trait Matchable
class Any
Show all
Self type

Types

opaque type Polygon

Unit regular polygon of given number of sides

Unit regular polygon of given number of sides

Attributes

opaque type Vertex

Sequence of adjacent regular polygons around a vertex

Sequence of adjacent regular polygons around a vertex

Attributes

Extensions

Extensions

extension (polygons: Vector[Polygon])

Measure of the sum of each interior angles joined at a vertex.

Measure of the sum of each interior angles joined at a vertex.

Attributes

extension (polygons: Vertex)
def alpha: Radian

Calculates internal angle

Calculates internal angle

Attributes

def fillings: List[Vertex]

All the fillable vertices that could be added to form a full vertex.

All the fillable vertices that could be added to form a full vertex.

Attributes

def fullContainers: List[Vertex]

All full vertices containing the vertex

All full vertices containing the vertex

Attributes

def isContainedIn(container: Vertex): Boolean

Checks if contained in another

Checks if contained in another

Attributes

def isFillable: Boolean

Checks if vertex is fillable

Checks if vertex is fillable

Attributes

def isFull: Boolean

Checks if vertex is full

Checks if vertex is full

Attributes

def isFullMinor: Boolean

Checks if full and reduced to its minor version

Checks if full and reduced to its minor version

Attributes

def isLessThanFull: Boolean

Checks if vertex is less than full

Checks if vertex is less than full

Attributes

Note

it might be less than full, but not fillable because no polygon is fitting

def isPartial: Boolean

Checks if vertex is fillable or less than full

Checks if vertex is fillable or less than full

Attributes

def isRemainderOf(internal: Vertex, full: Vertex): Boolean

Checks if remainder of an internal vertex to form a full one

Checks if remainder of an internal vertex to form a full one

Attributes

def isSameFull(that: Vertex): Boolean

Checks if two full vertices are the same, their minor versions identical

Checks if two full vertices are the same, their minor versions identical

Attributes

def isValid: Boolean

Checks if valid

Checks if valid

Attributes

def toPolygons: Vector[Polygon]

Attributes

Returns

the underlying sequence of ordered polygons

extension (sides: Polygon)
def alpha: Radian

Measure of each interior angle.

Measure of each interior angle.

Attributes

def area: Double

Measure of the area with unit side.

Measure of the area with unit side.

Attributes

def toSides: Int

Attributes

Returns

the underlying number of sides

extension (vertices: Vector[Vertex])
def areFull: Boolean

Checks if all vertices in the sequence are full

Checks if all vertices in the sequence are full

Attributes

Only vertices not contained in others.

Only vertices not contained in others.

Attributes