XdkWrl: SFFloat Class Reference

Home | Hierarchy | Members | Alphabetical | Related Pages

# SFFloat Class Reference
[Field Types]

`#include <sffloat.h>`

List of all members.

## Public Member Functions
| SFFloat ()
| SFFloat (const float b)
SFFloat & | operator= (const float b)
SFFloat & | operator= (const SFFloat b)
| operator float () const
float | operator== (const SFFloat &b)
## Static Public Member Functions
static const char * | typeName ()
static FieldTypeId | typeId ()
## Friends
std::ostream & | operator<< (std::ostream &s, const SFFloat &f)

## Detailed Description

Represents a float value. Below is included the documentation for this field type from the ISO standard.

## 5.4 SFFloat and MFFloat

The SFFloat field or event specifies one single-precision floating point number. MFFloat specifies zero or more single-precision floating point numbers. SFFloats and MFFloats are written to the VRML file in ISO C floating point format (see 2.[ISOC]). For example:

        fooFloat [ 3.1415926, 12.5e-3, .0001 ]

is an MFFloat field, fooFloat, containing three floating point values.

The initial value of an SFFloat eventOut is 0.0. The initial value of an MFFloat eventOut is [ ].

## Constructor & Destructor Documentation

SFFloat | ( |  | ) | `[inline]`

Creates a SFFloat with default value 0.0f.

SFFloat | ( | const float | b | ) | `[inline]`

Creates a SFFloat with value `b`.

## Member Function Documentation

SFFloat & operator= | ( | const float | b | ) | `[inline]`

SFFloat & operator= | ( | const SFFloat | b | ) | `[inline]`

operator float | ( |  | ) | const`[inline]`

float operator== | ( | const SFFloat & | b | ) | `[inline]`

const char * typeName | ( |  | ) | `[inline, static]`

FieldTypeId typeId | ( |  | ) | `[inline, static]`

## Friends And Related Function Documentation

std::ostream& operator<< | ( | std::ostream & | s,
|  | const SFFloat & | f |
| ) |  |  | `[friend]`

Generated on 5 Jan 2007 with version 1.5.1. |