38#ifndef DRAIN_TRANSFORM_SVG
39#define DRAIN_TRANSFORM_SVG
42#include "drain/UniTuple.h"
60 return (*
this == 0.0);
70 Transform<N> & operator=(
const std::initializer_list<T> & x){
77 void toStream(std::ostream & ostr)
const override {
107 typedef double coord_t;
119 return (rotate.empty() && scale.empty() && translate.empty() && matrix.empty()) ;
123 void setTranslate(
const coord_t & x,
const coord_t & y){
129 void setTranslateX(
const coord_t & x){
136 void setTranslateY(
const coord_t & y){
152 Translate(
double x=0.0,
double y=0.0) : x(++next()=x), y(++next()=y){
176 void toStream(std::ostream & ostr)
const;
tuplebase_t & assignSequence(T &sequence, bool LENIENT=false)
Proposed for tuples only; derived classes should not shadow this.
Definition TupleBase.h:287
virtual void toStreamFormatted(std::ostream &ostr, char separator=',') const
Definition TupleBase.h:331
Tuple of N elements of type T.
Definition UniTuple.h:65