9 #ifndef CMZN_FIELDTRIGONOMETRY_HPP__
10 #define CMZN_FIELDTRIGONOMETRY_HPP__
12 #include "zinc/fieldtrigonometry.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
20 class FieldSin :
public Field
32 explicit FieldSin(cmzn_field_id field_id) : Field(field_id)
43 class FieldCos :
public Field
55 explicit FieldCos(cmzn_field_id field_id) : Field(field_id)
66 class FieldTan :
public Field
78 explicit FieldTan(cmzn_field_id field_id) : Field(field_id)
89 class FieldAsin :
public Field
101 explicit FieldAsin(cmzn_field_id field_id) : Field(field_id)
108 FieldAsin() : Field(0)
112 class FieldAcos :
public Field
124 explicit FieldAcos(cmzn_field_id field_id) : Field(field_id)
131 FieldAcos() : Field(0)
135 class FieldAtan :
public Field
147 explicit FieldAtan(cmzn_field_id field_id) : Field(field_id)
154 FieldAtan() : Field(0)
158 class FieldAtan2 :
public Field
174 explicit FieldAtan2(cmzn_field_id field_id) : Field(field_id)
179 FieldAtan2() : Field(0)
183 const Field& sourceField2);
189 return FieldSin(cmzn_fieldmodule_create_field_sin(
id, sourceField.
getId()));
194 return FieldCos(cmzn_fieldmodule_create_field_cos(
id, sourceField.
getId()));
199 return FieldTan(cmzn_fieldmodule_create_field_tan(
id, sourceField.
getId()));
204 return FieldAsin(cmzn_fieldmodule_create_field_asin(
id, sourceField.
getId()));
209 return FieldAcos(cmzn_fieldmodule_create_field_acos(
id, sourceField.
getId()));
214 return FieldAtan(cmzn_fieldmodule_create_field_atan(
id, sourceField.
getId()));
219 return FieldAtan2(cmzn_fieldmodule_create_field_atan2(
id, sourceField1.
getId(),
220 sourceField2.
getId()));
FieldSin createFieldSin(const Field &sourceField)
Definition: fieldtrigonometry.hpp:187
FieldCos createFieldCos(const Field &sourceField)
Definition: fieldtrigonometry.hpp:192
A field where the components are the arccosine value (using radians) of the components of the source_...
Definition: fieldtrigonometry.hpp:120
A field where the components are the sine value (using radians) of the components of the source_field...
Definition: fieldtrigonometry.hpp:28
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
A field where the components are the arctangent value (using radians) of the components of the source...
Definition: fieldtrigonometry.hpp:143
FieldAsin createFieldAsin(const Field &sourceField)
Definition: fieldtrigonometry.hpp:202
A field where the components are the cosine value (using radians) of the components of the source_fie...
Definition: fieldtrigonometry.hpp:51
cmzn_field_id getId() const
Definition: field.hpp:98
A field where the components are the trigonometric tangent value (using radians) of the components of...
Definition: fieldtrigonometry.hpp:74
A field where the components are calculated using the atan2 c function, so that the angle returned (i...
Definition: fieldtrigonometry.hpp:170
FieldTan createFieldTan(const Field &sourceField)
Definition: fieldtrigonometry.hpp:197
FieldAtan2 createFieldAtan2(const Field &sourceField1, const Field &sourceField2)
Definition: fieldtrigonometry.hpp:217
FieldAtan createFieldAtan(const Field &sourceField)
Definition: fieldtrigonometry.hpp:212
A field where the components are the arcsine value (using radians) of the components of the source_fi...
Definition: fieldtrigonometry.hpp:97
FieldAcos createFieldAcos(const Field &sourceField)
Definition: fieldtrigonometry.hpp:207