MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_power

Method parse_power

perro_source/core/perro_particle_math/src/lib.rs:450–459  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

448 self.ops.push(Op::Param);
449 return Ok(());
450 }
451
452 if self.eat(b'(') {
453 let argc = self.parse_args()?;
454 let op = match (ident.as_str(), argc) {
455 ("sin", 1) => Op::Sin,
456 ("cos", 1) => Op::Cos,
457 ("tan", 1) => Op::Tan,
458 ("abs", 1) => Op::Abs,
459 ("sqrt", 1) => Op::Sqrt,
460 ("min", 2) => Op::Min,
461 ("max", 2) => Op::Max,
462 ("clamp", 3) => Op::Clamp,

Callers 1

parse_termMethod · 0.80

Calls 4

parse_unaryMethod · 0.80
eatMethod · 0.80
skip_wsMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected