Esempio n. 1
0
func MatGetFloat(ih *Ihandle, name string, lin int, col int) float64 {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	return float64(C.IupMatGetFloat(ih.C(), cName, C.int(lin), C.int(col)))
}
Esempio n. 2
0
func (m *IupMatrix) MatGetFloat(name string, lin, col int) float32 {
	cname := NewCS(name)
	defer FreeCS(cname)
	return float32(C.IupMatGetFloat(toNative(m), cname, C.int(lin), C.int(col)))
}