Idris2Doc : Data.NumIdr.Transform.Point

Data.NumIdr.Transform.Point

(source)

Definitions

recordPoint : Nat->Type->Type
  A point is a wrapper around the basic vector type, intended to be used with
`Transform`. These contain the exact same information as a vector, but
behave differently when transforms are applied to them.

Totality: total
Visibility: export
Constructor: 
MkPoint : Vectorna->Pointna

Projection: 
.vec : Pointna->Vectorna

Hints:
Applicative (Pointn)
Castab=>Cast (Pointna) (Pointnb)
Foldable (Pointn)
Functor (Pointn)
Monad (Pointn)
Numa=>Mult (Matrixmna) (Pointna) (Pointma)
Numa=>Mult (Transformtyna) (Pointna) (Pointna)
Showa=>Show (Pointna)
Traversable (Pointn)
Zippable (Pointn)
fromVector : Vectorna->Pointna
  Construct a point from a vector.

Totality: total
Visibility: export
toVector : Pointna->Vectorna
  Convert a point to a vector.

Totality: total
Visibility: export
point : Vectna->Pointna
  Construct a point given its coordinates.

Totality: total
Visibility: export
origin : Numa=>Pointna
  The origin point.

Totality: total
Visibility: export
index : Finn->Pointna->a
  Index the point at the given coordinate.

Totality: total
Visibility: export
(!!) : Pointna->Finn->a
  Index the point at the given coordinate.

This is the operator form of `index`.

Totality: total
Visibility: export
Fixity Declarations:
infixl operator, level 10
infixl operator, level 10
infixl operator, level 10
indexNB : Nat->Pointna->Maybea
  Index the point at the given coordinate, returning `Nothing` if the index
is out of bounds.

Totality: total
Visibility: export
(!?) : Pointna->Nat->Maybea
  Index the point at the given coordinate, returning `Nothing` if the index
is out of bounds.

This is the operator form of `indexNB`.

Totality: total
Visibility: export
Fixity Declarations:
infixl operator, level 10
infixl operator, level 10
infixl operator, level 10
toVect : Pointna->Vectna
  Return a `Vect` of the coordinates in the point.

Totality: total
Visibility: export
.x : Point (1+n) a->a
  Return the x-coordinate (the first value) of the vector.

Totality: total
Visibility: export
.y : Point (2+n) a->a
  Return the y-coordinate (the second value) of the vector.

Totality: total
Visibility: export
.z : Point (3+n) a->a
  Return the z-coordinate (the third value) of the vector.

Totality: total
Visibility: export
(+.) : Numa=>Vectorna->Pointna->Pointna
  Add a vector to a point.

Totality: total
Visibility: export
Fixity Declaration: infixr operator, level 8
(.+) : Numa=>Pointna->Vectorna->Pointna
  Add a point to a vector.

Totality: total
Visibility: export
Fixity Declaration: infixl operator, level 8
(-.) : Nega=>Pointna->Pointna->Vectorna
  Subtract two points to get the vector between them.

Totality: total
Visibility: export
Fixity Declaration: infixl operator, level 8