Safe Haskell | Safe-Inferred |
---|

# Documentation

A 4-dimensional vector.

V4 a a a a |

Monad V4 | |

Functor V4 | |

Typeable1 V4 | |

Applicative V4 | |

Foldable V4 | |

Traversable V4 | |

Distributive V4 | |

Representable V4 | |

Metric V4 | |

R2 V4 | |

R3 V4 | |

R4 V4 | |

Eq a => Eq (V4 a) | |

(Num (V4 a), Fractional a) => Fractional (V4 a) | |

(Typeable (V4 a), Data a) => Data (V4 a) | |

Num a => Num (V4 a) | |

(Eq (V4 a), Ord a) => Ord (V4 a) | |

Read a => Read (V4 a) | |

Show a => Show (V4 a) | |

Storable a => Storable (V4 a) | |

(Num (V4 a), Epsilon a) => Epsilon (V4 a) |

vector :: Num a => V3 a -> V4 aSource

Convert a 3-dimensional affine vector into a 4-dimensional homogeneous vector.

point :: Num a => V3 a -> V4 aSource

Convert a 3-dimensional affine point into a 4-dimensional homogeneous vector.