MCPcopy Index your code
hub / github.com/g3n/engine / decFloatValue

Method decFloatValue

loader/collada/library_lights.go:390–400  ·  view source on GitHub ↗
(start xml.StartElement, cdata []byte)

Source from the content-addressed store, hash-verified

388}
389
390func (d *Decoder) decFloatValue(start xml.StartElement, cdata []byte) (*FloatValue, error) {
391
392 fv := new(FloatValue)
393 fv.Sid = findAttrib(start, "sid").Value
394 v, err := strconv.ParseFloat(string(cdata), 32)
395 if err != nil {
396 return nil, err
397 }
398 fv.Value = float32(v)
399 return fv, nil
400}
401
402func (d *Decoder) decLightColor(start xml.StartElement, cdata []byte, lc *LightColor) error {
403

Callers 2

decPointMethod · 0.95
decSpotMethod · 0.95

Calls 1

findAttribFunction · 0.85

Tested by

no test coverage detected